Pynq remote install fails on Ubuntu 25.04

Hello,
We purchased multiple AUP-ZU3 boards for teaching purposes. Following the ‘Getting Started’ quick start guide, which states that Python 3.10 or higher is required, I tried to install the Pynq package on the Ubuntu 25.04 host machine, which uses Python 3.13.
However, the build of the wheel for grpcio failed.

That is because there is no
grpcio==1.64.0
grpcio-tools==1.64.0

support in python 3.13 but only
grpcio==1.66.2
grpcio-tools==1.66.2
I then tried to manually change the requirements to version 1.66.2 and switch to Pynq version 3.0.1, which does not appear to require the specific version of grpcio. However, when I try to include the Pynq package in Python, I get the following error:
venv/lib/python3.13/site-packages/pynq/lib/pynqmicroblaze/rpc.py", line 16, in
from pycparser.plyparser import ParseError
ModuleNotFoundError: No module named ‘pycparser.plyparser’

We would like to avoid downgrading Ubuntu, since this would also require us to downgrade other setups on the host PC.

Am i missing something?

Hi @Vincent239,

Welcome to the PYNQ community.

Please try to downgrade pycparser to version 2.21 and see if the ModuleNotFoundError is solved.

For reference:

pip uninstall pycparser
pip install pycparser==2.21

You can follows this guideline that I did, that worked fine on Ubuntu 25.04. First I installed all the dependency manually, then I installed pynq skipping the dependencies:

1: Create and Activate a new Enviroment

PynqReq.txt (637 Bytes)

pip -m venv venv
source venv/bin/activate

2: Install manually the pynq dependencies (In PynqReq.txt there are all the other dependencies that I had in my venv, see attached file)
pip install “grpcio>=1.70” “grpcio-tools>=1.70” “protobuf>=5.26,<6”
pip install -r PynqReq.txt

3: Install the pynq without dependencies
pip install --no-deps git+https://github.com/Xilinx/PYNQ.git@3c77124d86bab65ac7bb6beb0aa66e13c83508f2

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.