PYNQ v2.7, No module named pynq issue
Environment
PYNQ v2.7, Ultra92 v2, Xilinx 2020.2 tools
Problem
NOTE: I used JTAG+UART module(like this) to access board’s terminal.
After ssh into the board, if I do python my_python.py
, it results in OSError: Root permissions required
error.
If I do sudo python my_python.py
, it results in ModuleNotFoundError: No module named 'pynq'
error.
Solution
The simplest solution is use the Jupyter notebook. When I use Jupyter notebook, I have none of these issues.
If you want to access terminal using something like Putty, you may want to do following:
sudo -s
source /usr/local/share/pynq-venv/bin/activate
python my_python.py