Mega PYNQ notes - barawn/verilog-library-barawn GitHub Wiki
PYNQ notes
Repository of notes regarding Pynq.
Using Pynq from commandline Python
Pynq works fine from regular command-line Python rather than a Jupyter notebook as well. One note is that in the Pynq distribution, it includes two copies of Python - one for the system, and one for Pynq. The Pynq one is selected when you have a login shell, but not a non-login shell. So if you see a "No module called 'pydantic'" or something similar, you're not using the right Python.
Pynq also needs to be run as root (kinda duh) but that means that sudo python3
will give you the wrong Python
interpreter. You need to either jump to root via a login shell (su -
) or run the sudo command as a login shell
(sudo -i python3
). Note that once you do that, you will jump to root
's home directory. In the end you might
want to try to create a symlink to the Pynq version of Python (call it pynq-python or something) so that sudo python3
will work correctly. Don't know if this works yet.