Closed xlla closed 4 months ago
Thanks for flagging this issue. Can you please try and install the pynqutils
and pynqmetadata
packages before upgrading:
source /etc/profile.d/pynq_venv.sh
python3 -m pip install pynqmetadata
python3 -m pip install pynqutils
If you are still having issues please feel free to post on discuss.pynq.io
I am follow the instruction in section Python Source Code to upgrade my pynq from v3.0.0 to latest, but it failed due to the virtual python environment.
round 1, it can't find python module pynqutils inside sudo
ModuleNotFoundError: No module named 'pynqutils'
account xilinx can import that module
sudo cannot import that module
round 2, execute as normal account, failure again
ERROR: Will not install to the user site because it will lack sys.path precedence to pynq in /usr/local/share/pynq-venv/lib/python3.10/site-packages
round 3, use "sudo -E" option to keep current environment variables to sudo
ModuleNotFoundError: No module named 'pynqutils'
round 4, use "sudo -E -H" option to keep current environment variables and change the $Home environment variable, it remove the warnings in "round 3", but still failure.
ModuleNotFoundError: No module named 'pynqutils'
round 5, use "sudo -H -E env PATH=$PATH " option to keep more environment variables, keep failure
ModuleNotFoundError: No module named 'pynqutils'
round 6, use 'sudo sh -c ". /usr/local/share/pynq-venv/bin/activate ;" ' to activate python virtual env direct inside sudo, just failure
ModuleNotFoundError: No module named 'pynqutils'
round 7, add "source /etc/profile.d/pynq_venv.sh" to root's .bashrc, execute command by root, failure ~ failure !!!
ModuleNotFoundError: No module named 'pynqutils'
Because slow arm speed and slow SD card write speed, I spend hours to struggle with this issue, it seems in some files, it will invoke a subprocess and execute command using default python instead of pyqn_venv one.