Pynq on Alveo and XRT 2021.2

Hi,

I updated the Alveo U200 environment and tried to run Pynq on it.
It seems that Python libraries are using the deprecated Xbutil command options.
Any suggestion or workaround?

Best Regards, GS

1 Like

Hi Gustavo,

This is a known bug for us, we are working on a clean solution. In the meantime, you could try this workaround

Edit this line where the pynq package is

and add --legacy. For instance, [‘xbutil’, ‘dump’, ‘–legacy’]

Mario

Hi Mario,

Thank you for you quick response.
I already made this change, because I use “–legacy” in commands for installation.
To be specific, I modify
…/anaconda3/lib/python3.7/site-packages/pynq/pl_server/xrt_device.py and I found more errors.

I copy the error, just in case has an easy workaround.

Best Regards, GS


ModuleNotFoundError Traceback (most recent call last)
in
----> 1 import pynq
2 import numpy as np
3
4 # program the device
5 ol = pynq.Overlay(“intro.xclbin”)

~/anaconda3/lib/python3.7/site-packages/pynq/init.py in
45 from .buffer import allocate
46 from .pl_server import Device
—> 47 from . import lib
48
49

~/anaconda3/lib/python3.7/site-packages/pynq/lib/init.py in
29
30
—> 31 from .pynqmicroblaze import PynqMicroblaze
32 from .pynqmicroblaze import MicroblazeRPC
33 from .pynqmicroblaze import MicroblazeLibrary

~/anaconda3/lib/python3.7/site-packages/pynq/lib/pynqmicroblaze/init.py in
42 try:
43 IPYTHON
—> 44 from .magic import MicroblazeMagics
45 except NameError:
46 pass

~/anaconda3/lib/python3.7/site-packages/pynq/lib/pynqmicroblaze/magic.py in
102 get_ipython().register_magics(MicroblazeMagics)
103 display_javascript(js, raw=True)
→ 104 import nest_asyncio
105 nest_asyncio.apply()
106

ModuleNotFoundError: No module named ‘nest_asyncio’

→ 104 import nest_asyncio
105 nest_asyncio.apply()
106

ModuleNotFoundError: No module named ‘nest_asyncio’

This python package is missing, you can install it using command below. I recommend you use the Jupyter Lab terminal

python3 -m pip install nest_asyncio

Hi Mario,

Thank you very much for the information. Now it works.
Just a comment: the xclbin provided works with shell:
xilinx-u200-xdma-201830.2-2580015_18.04.deb
but not
xilinx-u200_2021.2_2021_1021_1001-all.deb

if you run with the 2021 shell, you’ll obtain:
RuntimeError: Programming Device failed: ENOTSUP (95) Operation not supported/Shell does not match

Best Regards, GS