Because PYNQ 2.7 has Voila addon for Jupyter notebook, So I upgraded to 2.7.
When I try to install GitHub - Xilinx/BNN-PYNQ: Quantized Neural Networks (QNNs) on PYNQ by the command line
sudo pip3 install git+https://github.com/Xilinx/BNN-PYNQ.git
But I got error message as below
sudo pip3 install git+https://github.com/Xilinx/BNN-PYNQ.git
Collecting git+https://github.com/Xilinx/BNN-PYNQ.git
Cloning https://github.com/Xilinx/BNN-PYNQ.git to /tmp/pip-req-build-la0_4vuk
Running command git clone -q https://github.com/Xilinx/BNN-PYNQ.git /tmp/pip-r eq-build-la0_4vuk
Resolved https://github.com/Xilinx/BNN-PYNQ.git to commit d39c1c75403db571f54dd0f0cf27ae5104ac968e
Running command git submodule update --init --recursive -q
Installing build dependencies ... done
Getting requirements to build wheel ... error
ERROR: Command errored out with exit status 1:
command: /usr/local/share/pynq-venv/bin/python3 /usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpqduv74yd
cwd: /tmp/pip-req-build-la0_4vuk
Complete output (22 lines):
Traceback (most recent call last):
File "/usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 349, in <module>
main()
File "/usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 331, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 117, in get_requires_for_build_wheel
return hook(config_settings)
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 147, in get_requires_for_build_wheel
return self._get_build_requires(
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 128, in _get_build_requires
self.run_setup()
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 249, in run_setup
super(_BuildMetaLegacyBackend,
File "/usr/lib/python3/dist-packages/setuptools/build_meta.py", line 143, in run_setup
exec(compile(code, __file__, 'exec'), locals())
File "setup.py", line 34, in <module>
import bnn
File "/tmp/pip-req-build-la0_4vuk/bnn/__init__.py", line 1, in <module>
from .bnn import PynqBNN, CnvClassifier, LfcClassifier, RUNTIME_HW, RUNTIME_SW
File "/tmp/pip-req-build-la0_4vuk/bnn/bnn.py", line 30, in <module>
from pynq import Overlay, PL
ModuleNotFoundError: No module named 'pynq'
----------------------------------------
WARNING: Discarding git+https://github.com/Xilinx/BNN-PYNQ.git. Command errored out with exit status 1: /usr/local/share/pynq-venv/bin/python3 /usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpqduv74yd Check the logs for full command output.
ERROR: Command errored out with exit status 1: /usr/local/share/pynq-venv/bin/python3 /usr/local/share/pynq-venv/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py get_requires_for_build_wheel /tmp/tmpqduv74yd Check the logs for full command output.
WARNING: You are using pip version 21.2.1; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/local/share/pynq-venv/bin/python3 -m pip install --upgrade pip' command.
I check the pynq module location.
sudo pip3 show pynq
Name: pynq
Version: 2.7.0
Summary: (PY)thon productivity for zy(NQ)
Home-page: https://github.com/Xilinx/PYNQ
Author: Xilinx PYNQ Development Team
Author-email: pynq_support@xilinx.com
License: BSD 3-Clause
Location: /usr/local/share/pynq-venv/lib/python3.8/site-packages
Requires: numpy, cffi, setuptools, pandas
Required-by: pynq-peripherals
At first I tried to report it in BNN-PYNQ github. It is sad that the github was set to read-only. Can’t file in new issue. So I have to report it here.