Error in from pynq import Xlnk

When I use Jupyter of PYNQ,and I wanted to applay serial memory in the physical address for array inputed,and then I met this question:


ImportError Traceback (most recent call last)
in
1 import time
2 import numpy as np
----> 3 from pynq import Xlnk
4 import cv2
5

ImportError: cannot import name ‘Xlnk’ from ‘pynq’ (/usr/local/share/pynq-venv/lib/python3.8/site-packages/pynq/init.py)

Xlnk was deprecated. You can use Allocate for this in the latest versions of PYNQ.

Cathal

1 Like

@cathalmccabe
About Xlnk and allocate I think this is depends on the PYNQ version?
Maybe you can list out which belongs to which revision on PYNQ?

Check the PYNQ Changelog

Xlnk was deprecated in 2.6 and removed in 2.7.

Cathal

1 Like