I created an SD Card from the latest v3.0.1 for a ZCU208. It boots and the sample 01_rf_dataconverter_introduction.ipynb appears to work. I made a new notebook rfdc_test.ipynb with this code verbatim, but removed the visualization code so that I can run the notebook from the command line. I converted rfdc_test,ipynb to a script with:
jupyter nbconvert --to script rfdc_test.ipynb
And ran the script with:
sudo python rfdc_test.py
I see the following error:
xilinx@pynq:~/jupyter_notebooks/base/rfdc$ sudo python rfdc_test.py
Traceback (most recent call last):
File “/home/xilinx/jupyter_notebooks/base/rfdc/rfdc_test.py”, line 10, in
from pynq.overlays.base import BaseOverlay
ModuleNotFoundError: No module named ‘pynq’
xilinx@pynq:~/jupyter_notebooks/base/rfdc$
The Python version that comes with the v3.0.1 image is:
xilinx@pynq:~/jupyter_notebooks/base/rfdc$ python --version
Python 3.10.4
I think I’m missing something on running the converted script. What else needs to be included when I run the script? Thank you.