I’m trying to set up a Jetson nano to stream ZED output to a host.
The SDK is installed and the applications are working fine.
I’m struggling with the Python API and specifically the pyzed module.
I have tried many options.
Whatever the installation method: SDK python API, get_python_api.py or even trying to pip install (python3 -m pip install --ignore-installed /usr/local/zed/pyzed-4.1-cp36-cp36m-linux_aarch64.whl) the same error occurs during the process.
See log.txt for the output: log output.txt (7.7 KB)
It might, as mentioned in other topics, be related to Cython and Numpy.
Here is the version installed :
numpy (1.13.3)
Cython (3.0.11)
Distributor ID: Ubuntu
Description: Ubuntu 18.04.6 LTS
CUDA Version 10.2.300
nvidia-jetpack 4.6.5-b29
To follow up : I have done my best to find a solution.
As Numpy ( and /or Cython) seems to be the problem, I located a source :
that I was able to install successfully.
now I have :
numpy (1.19.4)
Cython (3.0.11)
I have no venv .
and even if python3 default to python 3.6, I have used the full path /usr/bin/python3.6 just to be sure.
But trying to install Pyzed from : /usr/bin/python3.6 -m pip install --ignore-installed /usr/local/zed/pyzed-4.1-cp36-cp36m-linux_x86_64.whl
doesn’t work as it try to install numpy again, even if it is the same version as the one installed and :
Failed building wheel for numpy
Now if I try : /usr/bin/python3.6 -m pip install --ignore-installed /usr/local/zed/pyzed-4.1-cp36-cp36m-linux_x86_64.whl --no-deps
I have this error : pyzed-4.1-cp36-cp36m-linux_x86_64.whl is not a supported wheel on this platform.
I’m not an expert , a poor creative coder with limited knowledge.
I have struggled to install complex system with plenty of dependencies like running ultralytics pytorch, tenorRT, cuda … depending on specific version according the hardware.
But here, just to run such a simple task …
My intuition would say something wrong with the pyzed .whl file.
Do I need a different version. I have tried a few others that doesn’t work either, but as this is the one provided with the SDK installation? @stereolabs , if you can help?
Ok, I have finally been able to get it to work! .
So if anyone is having the same problem:
I installed Numpy 1.19.4 from this source:
I had a problem with the PYTHONPATH not pointing to the correct folder for the site packages. Installing pyzed with the wheel didn’t work because it couldn’t find numpy.
Once set, I was able to install Pyzed with the wheel included in the SDK installation: python3 -m pip install --ignore-installed /usr/local/zed/pyzed-4.1-cp36-cp36m-linux_aarch64.whl --no-deps
I believe your analysis is correct, it seems to be a numpy / Cython issue on your platform.
Can you run ZED_Diagnostic and send the resulting JSON file? This will allow me to check your SDK and Jetpack versions.
Trying with the numpy version you’ve found is a good lead, however you have mixed up the wheel that you are supposed to install which does not match your platform, in your second message.
The one you want to install is pyzed-4.1-cp36-cp36m-linux_aarch64.whl, not the x86_64 equivalent.
Hi @mattrouss
Thanks for your reply, which I missed.
I don’t remember how I got this pyzed x86_64 wheel version, but the one I installed is the one you mentioned (pyzed-4.1-cp36-cp36m-linux_aarch64.whl).
I think the missing PYTHONPATH to the site packages was also a problem, as pyzed couldn’t see that the correct version of numpy was already installed.
Everything works fine with the streaming_sender running as a service.