Failed installing pynq-alveo-examples

I got an error when installing pynq-alveo-examples. Can anyone help?

(pynq) notooth@192:~$ pip install pynq-alveo-examples
Collecting pynq-alveo-examples
  Downloading pynq_alveo_examples-1.0.3.tar.gz (1.2 MB)
     ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.2/1.2 MB 3.4 MB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]
      Traceback (most recent call last):
        File "/home/notooth/anaconda3/envs/pynq/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 353, in <module>
          main()
        File "/home/notooth/anaconda3/envs/pynq/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 335, in main
          json_out['return_val'] = hook(**hook_input['kwargs'])
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/notooth/anaconda3/envs/pynq/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 118, in get_requires_for_build_wheel
          return hook(config_settings)
                 ^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
          return self._get_build_requires(config_settings, requirements=['wheel'])
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
          self.run_setup()
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 488, in run_setup
          self).run_setup(setup_script=setup_script)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 338, in run_setup
          exec(code, locals())
        File "<string>", line 16, in <module>
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynqutils/__init__.py", line 4, in <module>
          from . import build_utils, setup_utils
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynqutils/setup_utils/__init__.py", line 4, in <module>
          from .deliver_notebooks import _find_local_overlay_res, deliver_notebooks
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynqutils/setup_utils/deliver_notebooks.py", line 11, in <module>
          from ..runtime.logging import get_logger
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynqutils/runtime/__init__.py", line 4, in <module>
          from .detect_devices import detect_devices
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynqutils/runtime/detect_devices.py", line 4, in <module>
          import pynq
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynq/__init__.py", line 11, in <module>
          from .overlay import DefaultHierarchy, DefaultIP, Overlay, UnsupportedConfiguration
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynq/overlay.py", line 13, in <module>
          from pynqmetadata.frontends import Metadata
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynqmetadata/__init__.py", line 5, in <module>
          from .models.bit_field import BitField
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynqmetadata/models/__init__.py", line 9, in <module>
          from .dfx_core import DFXCore
        File "/tmp/pip-build-env-lk53zsr7/overlay/lib/python3.11/site-packages/pynqmetadata/models/dfx_core.py", line 10, in <module>
          @dataclass(repr=False)
           ^^^^^^^^^^^^^^^^^^^^^
        File "/home/notooth/anaconda3/envs/pynq/lib/python3.11/dataclasses.py", line 1213, in wrap
          return _process_class(cls, init, repr, eq, order, unsafe_hash,
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/notooth/anaconda3/envs/pynq/lib/python3.11/dataclasses.py", line 958, in _process_class
          cls_fields.append(_get_field(cls, name, type, kw_only))
                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        File "/home/notooth/anaconda3/envs/pynq/lib/python3.11/dataclasses.py", line 815, in _get_field
          raise ValueError(f'mutable default {type(f.default)} for field '
      ValueError: mutable default <class 'pynqmetadata.models.vlnv.Vlnv'> for field vlnv is not allowed: use default_factory
      [end of output]
  
  note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error

× Getting requirements to build wheel did not run successfully.
│ exit code: 1
╰─> See above for output.

note: This error originates from a subprocess, and is likely not a problem with pip.
1 Like

Hi @notooth,

Welcome to the community! :slight_smile:

Ah, it looks like you are trying to install it with python3.11. We have some initial support for this in PynqMetadata but it has not been fully tested yet in PYNQ. You could try one of the following:

  • Before installing pip install pynq-alveo-examples you could try running the following pip install git+https://github.com/Xilinx/PYNQ-Metadata.git which will hopefully grab the latest version of PynqMetadata with 3.11 support before attempting to install.

  • Install pynq-alveo-examples with python3.10

Hope this helps a bit,
Shane

Hi @notooth,

Welcome to the PYNQ community.

We recommend to use a particular version of conda to install PYNQ on Alveo.

The instructions are here:

https://pynq.readthedocs.io/en/latest/getting_started/alveo_getting_started.html#install-conda

Mario

I still got the errors:

(pynq1) notooth@192:~$ python -V
Python 3.11.3
(pynq1) notooth@192:~$ pip install git+https://github.com/Xilinx/PYNQ-Metadata.git
(pynq1) notooth@192:~$ pip install pynq-alveo-examples
...
Collecting pynq-alveo-examples
  Using cached pynq_alveo_examples-1.0.3.tar.gz (1.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  error: subprocess-exited-with-error
  
  × Getting requirements to build wheel did not run successfully.
  │ exit code: 1
  ╰─> [50 lines of output]


(pynq2) notooth@192:~$ python -V
Python 3.10.11
(pynq2) notooth@192:~$ pip install pynq
(pynq2) notooth@192:~$ pip install pynq-alveo-examples
...
Building wheels for collected packages: pynq-alveo-examples
  Building wheel for pynq-alveo-examples (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pynq-alveo-examples (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [122 lines of output]



(pynq3) notooth@192:~$ python -V
Python 3.10.11
(pynq3) notooth@192:~$ pip install git+https://github.com/Xilinx/PYNQ-Metadata.git
(pynq3) notooth@192:~$ pip install pynq-alveo-examples
...
Building wheels for collected packages: pynq-alveo-examples
  Building wheel for pynq-alveo-examples (pyproject.toml) ... error
  error: subprocess-exited-with-error
  
  × Building wheel for pynq-alveo-examples (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [122 lines of output]
1 Like

Hi @notooth,

Please try with the Conda environment I suggested in an earlier post.

Mario

Here it is:

(pynq3) notooth@192:~$ conda env create --name pynq4 --file='environment.yml'
(pynq3) notooth@192:~$ conda activate pynq4
(pynq4) notooth@192:~$ pip install pynq
(pynq4) notooth@192:~$ pip install pynq-alveo-examples
...
Collecting pynq-alveo-examples
  Downloading pynq_alveo_examples-1.0.2.tar.gz (1.2 MB)
     |████████████████████████████████| 1.2 MB 2.4 MB/s 
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /home/notooth/anaconda3/envs/pynq4/bin/python /home/notooth/anaconda3/envs/pynq4/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpp7btv_87
       cwd: /tmp/pip-install-amoxeuxl/pynq-alveo-examples
  Complete output (30 lines):
  Traceback (most recent call last):
    File "/home/notooth/anaconda3/envs/pynq4/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/home/notooth/anaconda3/envs/pynq4/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/notooth/anaconda3/envs/pynq4/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 488, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 17, in <module>
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/pynq/__init__.py", line 11, in <module>
      from .overlay import DefaultHierarchy, DefaultIP, Overlay, UnsupportedConfiguration
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/pynq/overlay.py", line 13, in <module>
      from pynqmetadata.frontends import Metadata
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/pynqmetadata/__init__.py", line 5, in <module>
      from .models.bit_field import BitField
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/pynqmetadata/models/__init__.py", line 4, in <module>
      from .addrmap import AddressMap
    File "/tmp/pip-build-env-10hr8cmp/overlay/lib/python3.7/site-packages/pynqmetadata/models/addrmap.py", line 6, in <module>
      from .metadata_object import MetadataObject
    File "<fstring>", line 1
      (self.name=)
                ^
  SyntaxError: invalid syntax
  ----------------------------------------
ERROR: Command errored out with exit status 1: /home/notooth/anaconda3/envs/pynq4/bin/python /home/notooth/anaconda3/envs/pynq4/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpp7btv_87 Check the logs for full command output.

Hi @notooth,

I meant to execute only this part,

This conda installation env should have all the dependencies to install pynq and the examples.

Mario

I still got errors:

notooth@192:~$ wget https://repo.anaconda.com/archive/Anaconda3-2022.05-Linux-x86_64.sh -O anaconda3.sh
notooth@192:~$ bash anaconda3.sh
notooth@192:~$ source ~/anaconda3/bin/activate
(base) notooth@192:~$ conda env create --name pynq --file='environment.yml'
(base) notooth@192:~$ conda activate pynq
(pynq) notooth@192:~$ pip install pynq
(pynq) notooth@192:~$ pip install pynq-alveo-examples
WARNING: pip is being invoked by an old script wrapper. This will fail in a future version of pip.
Please see https://github.com/pypa/pip/issues/5599 for advice on fixing the underlying issue.
To avoid this problem you can invoke Python with '-m pip' instead of running pip directly.
Collecting pynq-alveo-examples
  Using cached pynq_alveo_examples-1.0.2.tar.gz (1.2 MB)
  Installing build dependencies ... done
  Getting requirements to build wheel ... error
  ERROR: Command errored out with exit status 1:
   command: /home/notooth/anaconda3/envs/pynq/bin/python /home/notooth/anaconda3/envs/pynq/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpwpbl50bn
       cwd: /tmp/pip-install-gkooctxk/pynq-alveo-examples
  Complete output (30 lines):
  Traceback (most recent call last):
    File "/home/notooth/anaconda3/envs/pynq/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 257, in <module>
      main()
    File "/home/notooth/anaconda3/envs/pynq/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/notooth/anaconda3/envs/pynq/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py", line 91, in get_requires_for_build_wheel
      return hook(config_settings)
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 341, in get_requires_for_build_wheel
      return self._get_build_requires(config_settings, requirements=['wheel'])
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 323, in _get_build_requires
      self.run_setup()
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 488, in run_setup
      self).run_setup(setup_script=setup_script)
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 17, in <module>
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/pynq/__init__.py", line 11, in <module>
      from .overlay import DefaultHierarchy, DefaultIP, Overlay, UnsupportedConfiguration
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/pynq/overlay.py", line 13, in <module>
      from pynqmetadata.frontends import Metadata
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/pynqmetadata/__init__.py", line 5, in <module>
      from .models.bit_field import BitField
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/pynqmetadata/models/__init__.py", line 4, in <module>
      from .addrmap import AddressMap
    File "/tmp/pip-build-env-juafd_27/overlay/lib/python3.7/site-packages/pynqmetadata/models/addrmap.py", line 6, in <module>
      from .metadata_object import MetadataObject
    File "<fstring>", line 1
      (self.name=)
                ^
  SyntaxError: invalid syntax
  ----------------------------------------
ERROR: Command errored out with exit status 1: /home/notooth/anaconda3/envs/pynq/bin/python /home/notooth/anaconda3/envs/pynq/lib/python3.7/site-packages/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpwpbl50bn Check the logs for full command output.

Hi @notooth,

There’s no need to run conda env create --name pynq --file='environment.yml', you should install pynq and the examples in the base env, which has a Phython 3.9

Mario

Here it is:

(base) notooth@192:~$ pip install pynq
(base) notooth@192:~$ pip install pynq-alveo-examples
...
Building wheels for collected packages: pynq-alveo-examples
  Building wheel for pynq-alveo-examples (PEP 517) ... error
  ERROR: Command errored out with exit status 1:
   command: /home/notooth/anaconda3/bin/python /home/notooth/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py build_wheel /tmp/tmpwtps3gbg
       cwd: /tmp/pip-install-qgkonody/pynq-alveo-examples_7a2a50ace9364050a315873ae27cf377
  Complete output (122 lines):
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build/lib
  creating build/lib/pynq_alveo_examples
  copying pynq_alveo_examples/__init__.py -> build/lib/pynq_alveo_examples
  copying pynq_alveo_examples/notebook_test.py -> build/lib/pynq_alveo_examples
  creating build/lib/pynq_alveo_examples/notebooks
  creating build/lib/pynq_alveo_examples/notebooks/0_welcome_to_pynq
  copying pynq_alveo_examples/notebooks/0_welcome_to_pynq/__init__.py -> build/lib/pynq_alveo_examples/notebooks/0_welcome_to_pynq
  copying pynq_alveo_examples/notebooks/0_welcome_to_pynq/alveo.png -> build/lib/pynq_alveo_examples/notebooks/0_welcome_to_pynq
  copying pynq_alveo_examples/notebooks/0_welcome_to_pynq/welcome-to-pynq.ipynb -> build/lib/pynq_alveo_examples/notebooks/0_welcome_to_pynq
  creating build/lib/pynq_alveo_examples/notebooks/1_introduction
  copying pynq_alveo_examples/notebooks/1_introduction/1-vector-addition.ipynb -> build/lib/pynq_alveo_examples/notebooks/1_introduction
  copying pynq_alveo_examples/notebooks/1_introduction/2-vadd-and-vmult.ipynb -> build/lib/pynq_alveo_examples/notebooks/1_introduction
  copying pynq_alveo_examples/notebooks/1_introduction/3-exploring-a-bitstream.ipynb -> build/lib/pynq_alveo_examples/notebooks/1_introduction
  copying pynq_alveo_examples/notebooks/1_introduction/4-opencl-comparison.ipynb -> build/lib/pynq_alveo_examples/notebooks/1_introduction
  copying pynq_alveo_examples/notebooks/1_introduction/intro.xclbin.link -> build/lib/pynq_alveo_examples/notebooks/1_introduction
  creating build/lib/pynq_alveo_examples/notebooks/1_introduction/img
  copying pynq_alveo_examples/notebooks/1_introduction/img/pynq-opencl.png -> build/lib/pynq_alveo_examples/notebooks/1_introduction/img
  copying pynq_alveo_examples/notebooks/1_introduction/img/vadd-vmult.png -> build/lib/pynq_alveo_examples/notebooks/1_introduction/img
  copying pynq_alveo_examples/notebooks/1_introduction/img/vadd.png -> build/lib/pynq_alveo_examples/notebooks/1_introduction/img
  creating build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization
  copying pynq_alveo_examples/notebooks/2_kernel_optimization/1-kernel-optimizations.ipynb -> build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization
  copying pynq_alveo_examples/notebooks/2_kernel_optimization/2-using-streams.ipynb -> build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization
  copying pynq_alveo_examples/notebooks/2_kernel_optimization/3-memories-and-streams.ipynb -> build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization
  copying pynq_alveo_examples/notebooks/2_kernel_optimization/kernel_opt.xclbin.link -> build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization
  creating build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization/img
  copying pynq_alveo_examples/notebooks/2_kernel_optimization/img/overlap.png -> build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization/img
  copying pynq_alveo_examples/notebooks/2_kernel_optimization/img/vadd-vmult-streams.png -> build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization/img
  copying pynq_alveo_examples/notebooks/2_kernel_optimization/img/vadd-wide.png -> build/lib/pynq_alveo_examples/notebooks/2_kernel_optimization/img
  creating build/lib/pynq_alveo_examples/notebooks/3_advanced_features
  copying pynq_alveo_examples/notebooks/3_advanced_features/1-efficient-accelerator-scheduling.ipynb -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features
  copying pynq_alveo_examples/notebooks/3_advanced_features/2-power-measurement.ipynb -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features
  copying pynq_alveo_examples/notebooks/3_advanced_features/3-live-power-plotting.ipynb -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features
  copying pynq_alveo_examples/notebooks/3_advanced_features/4-multi-device.ipynb -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features
  copying pynq_alveo_examples/notebooks/3_advanced_features/advanced.xclbin.link -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features
  creating build/lib/pynq_alveo_examples/notebooks/3_advanced_features/img
  copying pynq_alveo_examples/notebooks/3_advanced_features/img/layout.png -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features/img
  copying pynq_alveo_examples/notebooks/3_advanced_features/img/layout_shuffle.png -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features/img
  copying pynq_alveo_examples/notebooks/3_advanced_features/img/schedule_overlap.png -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features/img
  copying pynq_alveo_examples/notebooks/3_advanced_features/img/schedule_plain.png -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features/img
  copying pynq_alveo_examples/notebooks/3_advanced_features/img/tiled_mult.png -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features/img
  copying pynq_alveo_examples/notebooks/3_advanced_features/img/tiling.png -> build/lib/pynq_alveo_examples/notebooks/3_advanced_features/img
  creating build/lib/pynq_alveo_examples/notebooks/4_building_and_emulation
  copying pynq_alveo_examples/notebooks/4_building_and_emulation/1-building-with-vitis.ipynb -> build/lib/pynq_alveo_examples/notebooks/4_building_and_emulation
  copying pynq_alveo_examples/notebooks/4_building_and_emulation/2-hardware-emulation.ipynb -> build/lib/pynq_alveo_examples/notebooks/4_building_and_emulation
  creating build/lib/pynq_alveo_examples/notebooks/data_compression
  copying pynq_alveo_examples/notebooks/data_compression/README.md -> build/lib/pynq_alveo_examples/notebooks/data_compression
  copying pynq_alveo_examples/notebooks/data_compression/compression.xclbin.link -> build/lib/pynq_alveo_examples/notebooks/data_compression
  copying pynq_alveo_examples/notebooks/data_compression/intro-to-compression.ipynb -> build/lib/pynq_alveo_examples/notebooks/data_compression
  copying pynq_alveo_examples/notebooks/data_compression/overlapping-communication-compute.ipynb -> build/lib/pynq_alveo_examples/notebooks/data_compression
  copying pynq_alveo_examples/notebooks/data_compression/test_data.bin.link -> build/lib/pynq_alveo_examples/notebooks/data_compression
  copying pynq_alveo_examples/notebooks/data_compression/zlib-compression.ipynb -> build/lib/pynq_alveo_examples/notebooks/data_compression
  creating build/lib/pynq_alveo_examples/notebooks/data_compression/img
  copying pynq_alveo_examples/notebooks/data_compression/img/deflate.png -> build/lib/pynq_alveo_examples/notebooks/data_compression/img
  copying pynq_alveo_examples/notebooks/data_compression/img/lzx_comp.png -> build/lib/pynq_alveo_examples/notebooks/data_compression/img
  copying pynq_alveo_examples/notebooks/data_compression/img/nonoverlapped.png -> build/lib/pynq_alveo_examples/notebooks/data_compression/img
  copying pynq_alveo_examples/notebooks/data_compression/img/overlapped.png -> build/lib/pynq_alveo_examples/notebooks/data_compression/img
  running download_overlays
  /tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/pynq/pl_server/device.py:56: UserWarning: No devices found, is the XRT environment sourced?
    warnings.warn(
  Traceback (most recent call last):
    File "/home/notooth/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
      main()
    File "/home/notooth/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/notooth/anaconda3/lib/python3.9/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 248, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 416, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 401, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 487, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/build_meta.py", line 338, in run_setup
      exec(code, locals())
    File "<string>", line 33, in <module>
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/__init__.py", line 107, in setup
      return distutils.core.setup(**attrs)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 185, in setup
      return run_commands(dist)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/core.py", line 201, in run_commands
      dist.run_commands()
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 969, in run_commands
      self.run_command(cmd)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/wheel/bdist_wheel.py", line 343, in run
      self.run_command("build")
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/command/build.py", line 131, in run
      self.run_command(cmd_name)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/pynqutils/setup_utils/download_overlays.py", line 298, in run
      self.run_command("download_overlays")
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/cmd.py", line 318, in run_command
      self.distribution.run_command(command)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/dist.py", line 1244, in run_command
      super().run_command(command)
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py", line 988, in run_command
      cmd_obj.run()
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/pynqutils/setup_utils/download_overlays.py", line 284, in run
      download_overlays(
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/pynqutils/setup_utils/download_overlays.py", line 69, in download_overlays
      _resolve_devices_overlay_res(
    File "/tmp/pip-build-env-w966y1y9/overlay/lib/python3.9/site-packages/pynqutils/setup_utils/download_overlays.py", line 127, in _resolve_devices_overlay_res
      if len(devices) == 0 and type(Device.devices[0]) == EmbeddedDevice:
  IndexError: list index out of range
  ----------------------------------------
  ERROR: Failed building wheel for pynq-alveo-examples
Failed to build pynq-alveo-examples
ERROR: Could not build wheels for pynq-alveo-examples which use PEP 517 and cannot be installed directly

This looks much better. Have you installed XRT? Do you have an Alveo card?

This is the actual error that your’re having.

Mario

I have not installed XRT. I do not have an Alveo card, but I have an NVIDIA Innova-2 Flex which is an FPGA PCI-e card.

You need at least XRT installed to be able to download the examples.
The platform you are referring to is not supported by XRT neither PYNQ.