Hello,
I am getting an error while trying to run pynq on my system which has an alveo u200 card. I am using anaconda base environment and have run “pip install pynq” without any errors. But when I run any command like “pynq --version” or “pynq get-notebooks” I get the following error message:
(base) nmahmud@fit.edu@fac-alevo-m1:~$ pynq get-notebooks
Traceback (most recent call last):
File “/home/nmahmud/anaconda3/bin/pynq”, line 6, in
from pynq._cli.cmd import main
File “/home/nmahmud/anaconda3/lib/python3.7/site-packages/pynq/init.py”, line 4, in
from . import pl_server
File “/home/nmahmud/anaconda3/lib/python3.7/site-packages/pynq/pl_server/init.py”, line 18, in
from .embedded_device import EmbeddedDevice
File “/home/nmahmud/anaconda3/lib/python3.7/site-packages/pynq/pl_server/embedded_device.py”, line 11, in
from pynqmetadata.frontends import Metadata
File “/home/nmahmud/anaconda3/lib/python3.7/site-packages/pynqmetadata/init.py”, line 5, in
from .models.bit_field import BitField
File “/home/nmahmud/anaconda3/lib/python3.7/site-packages/pynqmetadata/models/init.py”, line 4, in
from .addrmap import AddressMap
File “/home/nmahmud/anaconda3/lib/python3.7/site-packages/pynqmetadata/models/addrmap.py”, line 6, in
from .metadata_object import MetadataObject
File “”, line 1
(self.name=)
^
SyntaxError: invalid syntax
Additional information:
System Configuration
OS Name : Linux
Release : 5.15.0-107-generic
Version : #117-Ubuntu SMP Fri Apr 26 12:26:49 UTC 2024
Machine : x86_64
CPU Cores : 32
Memory : 31827 MB
Distribution : Ubuntu 22.04.2 LTS
GLIBC : 2.35
Model : ProLiant DL385 Gen10 Plus v2
XRT
Version : 2.14.354
Branch : 2022.2
Hash : 43926231f7183688add2dccfd391b36a1f000bea
Hash Date : 2022-10-08 09:49:53
XOCL : 2.14.354, 43926231f7183688add2dccfd391b36a1f000bea
XCLMGMT : 2.14.354, 43926231f7183688add2dccfd391b36a1f000bea
Devices present
BDF : Shell Platform UUID Device ID Device Ready*
[0000:03:00.1] : xilinx_u200_gen3x16_xdma_base_2 0B095B81-FA2B-E6BD-4524-72B1C1474F18 user(inst=128) Yes
pynq install log:
(base) nmahmud@fit.edu@fac-alevo-m1:~$ pip install pynq
Requirement already satisfied: pynq in ./anaconda3/lib/python3.7/site-packages (3.0.1)
Requirement already satisfied: nest-asyncio in ./anaconda3/lib/python3.7/site-packages (from pynq) (1.6.0)
Requirement already satisfied: setuptools>=24.2.0 in ./anaconda3/lib/python3.7/site-packages (from pynq) (41.4.0)
Requirement already satisfied: cffi in ./anaconda3/lib/python3.7/site-packages (from pynq) (1.12.3)
Requirement already satisfied: pynqmetadata>=0.0.1 in ./anaconda3/lib/python3.7/site-packages (from pynq) (0.1.2)
Requirement already satisfied: pynqutils>=0.0.1 in ./anaconda3/lib/python3.7/site-packages (from pynq) (0.1.1)
Requirement already satisfied: numpy in ./anaconda3/lib/python3.7/site-packages (from pynq) (1.17.2)
Requirement already satisfied: pycparser in ./anaconda3/lib/python3.7/site-packages (from cffi->pynq) (2.19)
Requirement already satisfied: pydantic in ./anaconda3/lib/python3.7/site-packages (from pynqmetadata>=0.0.1->pynq) (2.5.3)
Requirement already satisfied: jsonschema>=3.2.0 in ./anaconda3/lib/python3.7/site-packages (from pynqmetadata>=0.0.1->pynq) (4.17.3)
Requirement already satisfied: tqdm in ./anaconda3/lib/python3.7/site-packages (from pynqutils>=0.0.1->pynq) (4.36.1)
Requirement already satisfied: python-magic>=0.4.25 in ./anaconda3/lib/python3.7/site-packages (from pynqutils>=0.0.1->pynq) (0.4.27)
Requirement already satisfied: annotated-types>=0.4.0 in ./anaconda3/lib/python3.7/site-packages (from pydantic->pynqmetadata>=0.0.1->pynq) (0.5.0)
Requirement already satisfied: importlib-metadata; python_version == “3.7” in ./anaconda3/lib/python3.7/site-packages (from pydantic->pynqmetadata>=0.0.1->pynq) (0.23)
Requirement already satisfied: pydantic-core==2.14.6 in ./anaconda3/lib/python3.7/site-packages (from pydantic->pynqmetadata>=0.0.1->pynq) (2.14.6)
Requirement already satisfied: typing-extensions>=4.6.1 in ./anaconda3/lib/python3.7/site-packages (from pydantic->pynqmetadata>=0.0.1->pynq) (4.7.1)
Requirement already satisfied: attrs>=17.4.0 in ./anaconda3/lib/python3.7/site-packages (from jsonschema>=3.2.0->pynqmetadata>=0.0.1->pynq) (19.2.0)
Requirement already satisfied: pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0 in ./anaconda3/lib/python3.7/site-packages (from jsonschema>=3.2.0->pynqmetadata>=0.0.1->pynq) (0.15.4)
Requirement already satisfied: importlib-resources>=1.4.0; python_version < “3.9” in ./anaconda3/lib/python3.7/site-packages (from jsonschema>=3.2.0->pynqmetadata>=0.0.1->pynq) (5.12.0)
Requirement already satisfied: pkgutil-resolve-name>=1.3.10; python_version < “3.9” in ./anaconda3/lib/python3.7/site-packages (from jsonschema>=3.2.0->pynqmetadata>=0.0.1->pynq) (1.3.10)
Requirement already satisfied: zipp>=0.5 in ./anaconda3/lib/python3.7/site-packages (from importlib-metadata; python_version == “3.7”->pydantic->pynqmetadata>=0.0.1->pynq) (3.1.0)
Requirement already satisfied: six in ./anaconda3/lib/python3.7/site-packages (from pyrsistent!=0.17.0,!=0.17.1,!=0.17.2,>=0.14.0->jsonschema>=3.2.0->pynqmetadata>=0.0.1->pynq) (1.12.0)