Closed alexian79 closed 4 months ago
Hi @alexian79, yeah the Numpy 2.0 upgrade has been causing havoc across a few repos unfortunately! I just merged a PR that should fix it for the Kria-PYNQ install https://github.com/Xilinx/Kria-PYNQ/commit/21bf5e18a6dba20babe99108ac697d2cdc49645f
Please pull the change and try installing again, it works for me on a fresh Kria image.
Thanks Shawn
Great, I was able just pull and rerun install.sh script and it fixed the issue. Thank you.
Great to hear! Thanks for reporting.
Closing since issue is resolved.
I am new to Pynq, just tried to install it on KV260 and it fails. tried it 2 times in a row with fresh install and did followed extra steps from booting your starter kit.
A module that was compiled using NumPy 1.x cannot be run in NumPy 2.0.0 as it may crash. To support both 1.x and 2.x versions of NumPy, modules must be compiled with NumPy 2.0. Some module may need to rebuild instead e.g. with 'pybind11>=2.12'.
If you are a user of the module, the easiest solution will be to downgrade to 'numpy<2' or try to upgrade the affected module. We expect that some modules will need time to support NumPy 2.
Traceback (most recent call last): File "/usr/local/share/pynq-venv/bin/pynq-get-notebooks", line 8, in
sys.exit(main())
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/_cli/get_notebooks.py", line 262, in main
ext_mod = ext.load()
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pkg_resources/init.py", line 2465, in load
return self.resolve()
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pkg_resources/init.py", line 2471, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/init.py", line 8, in
from .apps import PipelineApp
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/apps.py", line 7, in
from .video import VideoStream, VSource, VSink
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/video.py", line 6, in
import cv2
AttributeError: _ARRAY_API not found
Traceback (most recent call last):
File "/usr/local/share/pynq-venv/bin/pynq-get-notebooks", line 8, in
sys.exit(main())
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/_cli/get_notebooks.py", line 308, in main
raise e
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq/_cli/get_notebooks.py", line 262, in main
ext_mod = ext.load()
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pkg_resources/init.py", line 2465, in load
return self.resolve()
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pkg_resources/init.py", line 2471, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/init.py", line 8, in
from .apps import PipelineApp
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/apps.py", line 7, in
from .video import VideoStream, VSource, VSink
File "/usr/local/share/pynq-venv/lib/python3.10/site-packages/pynq_composable/video.py", line 6, in
import cv2
ImportError: numpy.core.multiarray failed to import