-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing finn-examples fails on Pynq Z2 (version 2.7) #34
Comments
So the real issue is that the installation of finn-examples ignores all previous installed dependencies and reinstalls them. @maltanar So how can I can tell the install script to not forcefully reinstall all the dependencies from source? |
The alternative solution would be a way to specify the wheel sources for pandas, numpy and pynq in the finn-examples installer so that if it forcefully reinstalls everything it at least happens quickly. |
Ok so I didn't manage to tell the finn-examples installer to not reinstall everything.
@maltanar Maybe their is a prettier/automated way to do this... |
@developandplay you are a life saver, thank you. |
I have executed the above 2 steps, but pip3 install is still building all the packages, ignoring the downloaded whl files in the directory indicated by --find-links here is my command:
and here is the directory with whl files: root@pynq:~/tmp# v here is the execution of the command: Collecting wheel and then this error:
Failed to build pandas It tries to build pandas-1.4.4, instead of using the wheel file pandas-1.4.3-cp38-cp38-linux_armv7l.whl From the error logs, it says:
How can I force it to use the wheel file? [SOLVED] Finally I have found a new version of pandas here: After downloading that, the original command from previous post worked. |
On a quick first glance this looks like a permission issue. I think you
might have downloaded the files as a root user instead of the normal user.
pinootto ***@***.***> schrieb am Sa., 3. Sept. 2022, 16:11:
… Ok so I didn't manage to tell the finn-examples installer to not reinstall
everything. But I did manage to tell it to use the precompiled wheels for
numpy, pandas and cffi. The steps I took are the following:
1. Download `numpy-1.23.0-cp38-cp38-linux_armv7l.whl`, `pandas-1.4.3-cp38-cp38-linux_armv7l.whl` and `cffi-1.15.0-cp38-cp38-linux_armv7l.whl` from [here](https://wheel-index.linuxserver.io/ubuntu/).
2. Run `pip3 install --find-links ??? ***@***.*** -v` where `???` is the path where you downloaded the whl files to. This will make the installer use your precompiled files instead of trying to build everything.
@maltanar <https://github.com/maltanar> Maybe their is a
prettier/automated way to do this...
I have executed the above 2 steps, but pip3 install is still building all
the packages, ignoring the downloaded whl files in the directory indicated
by --find-links
here is my command:
***@***.***:~# pip3 install --find-links /root/tmp git+
***@***.*** -v
and here is the directory with whl files:
***@***.***:~/tmp# v
total 62432
-rw-r--r-- 1 root root 360266 Oct 21 2021
cffi-1.15.0-cp38-cp38-linux_armv7l.whl
-rw-r--r-- 1 root root 19660516 Jun 22 23:58
numpy-1.23.0-cp38-cp38-linux_armv7l.whl
-rw-r--r-- 1 root root 43905267 Jun 23 16:33
pandas-1.4.3-cp38-cp38-linux_armv7l.whl
here is the execution of the command:
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Collecting pynq>=2.5.1
Using cached pynq-2.7.0-cp38-cp38-linux_armv7l.whl
Collecting tomli>=1.0.0
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Collecting packaging>=20.0
Using cached packaging-21.3-py3-none-any.whl (40 kB)
Collecting typing-extensions
Using cached typing_extensions-4.3.0-py3-none-any.whl (25 kB)
Collecting cffi
Using cached cffi-1.15.1-cp38-cp38-linux_armv7l.whl
Collecting pandas
*Using cached pandas-1.4.4.tar.gz (4.9 MB)*
Installing build dependencies: started
Installing build dependencies: still running...
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: still running...
Getting requirements to build wheel: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting numpy
Using cached numpy-1.23.2-cp38-cp38-linux_armv7l.whl
Collecting pyparsing!=3.0.5,>=2.0.2
Using cached pyparsing-3.0.9-py3-none-any.whl (98 kB)
Collecting pycparser
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting pytz>=2020.1
Using cached pytz-2022.2.1-py2.py3-none-any.whl (500 kB)
Collecting python-dateutil>=2.8.1
Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting six>=1.5
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Building wheels for collected packages: pandas
Building wheel for pandas (pyproject.toml): started
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
Building wheel for pandas (pyproject.toml): still running...
—
Reply to this email directly, view it on GitHub
<#34 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJETINUF45RSTZ4S4ZSYBLV4NL7VANCNFSM5ZYET3YA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
So this is also happening for my Pynq Z1 board I got recently. Is there any update on this? It just hangs on the pip install command (tried sudo vs non-sudo): I am posting below questions for other folks to read as documentation:
|
Hi @developandplay, @tuf22191, @pinootto, @AlmogDavid, thank you for your post! Unfortunately, I have not tested the installation on a Pynq-Z2 board. I'm not sure how many of the above questions are still relevant, but I'll try to give an answer. |
After managing to rebuild the BNN images for the Pynq Z2 boards I'm having issues with deploying them.
Unfortunatelfy the
pip3 install git+https://github.com/Xilinx/finn-examples.git@dev -v
command fails with the following error:Are there any steps missing in the quickstart section of the README?
Complete log can be found here: https://gist.github.com/developandplay/128bb4974966d83b2a1217d26008ff60
The text was updated successfully, but these errors were encountered: