After installing pynq-dpu(2.5.1 version), I tested whether the installation was successful, but an error occurred: “No module named ‘vart’.” What should I do?
My board is a PYNQ-ZU (XCZU5EG-SFVC784-1-E) and PYNQ version is 3.0.1. The installation log is as shown in the screenshot above. I installed it by following the official Xilinx DPU-PYNQ instructions.
Where are you running these commands? In a Jupyter terminal, a standard ssh session, or through a serial connection (e.g. Putty)?
If it’s ssh or serial, you need to source the pynq virtual environment first.
However, the simplest way to install additional packages to PYNQ is through a terminal session within the Jupyter environment as it uses the PYNQ virtual environment by default and has root permissions.
Hi Josh, thanks for the pointers. I’m running all commands from the Jupyter terminal on my PYNQ-ZU (XCZU5EG-SFVC784-1-E), which should already use the pynq-venv with root privileges. I still get No module named ‘vart’.
python version :3.10.4
That’s very strange. vart should be installed when you pip install DPU-PYNQ as you can see from the setup.py:
I’d have a look through your filesystem to see if vart exists anywhere. Maybe it wasn’t added to $PATH properly. Alternatively, you could try manually installing it using setup.py as a guide.
