Stereolabs ZED - Python API issue- get_python_api.py is not working

Hey guys, can anyone tell me why I have two ERRORs belove, and any idea to solve it ? very appreciate it !!! I was running get_python_api.py.

(.venv) PS E:\Users\chenw\PycharmProjects\zed-opencv> python .\get_python_api.py
→ Downloading to ‘E:\Users\chenw\PycharmProjects\zed-opencv’
Detected platform:
win_amd64
Python 3.12
ZED SDK 4.0
→ Checking if https://download.stereolabs.com/zedsdk/4.0/whl/win_amd64/pyzed-4.0-cp312-cp312-win_amd64.whl exists and is available
→ Found ! Downloading python package into E:\Users\chenw\PycharmProjects\zed-opencv\pyzed-4.0-cp312-cp312-win_amd64.whl
→ Installing necessary dependencies
Requirement already satisfied: numpy in e:\users\chenw\pycharmprojects\zed-opencv.venv\lib\site-packages (1.26.4)
Processing e:\users\chenw\pycharmprojects\zed-opencv\pyzed-4.0-cp312-cp312-win_amd64.whl
Collecting numpy>=1.13 (from pyzed==4.0)
Using cached numpy-1.26.4-cp312-cp312-win_amd64.whl.metadata (61 kB)
Collecting cython>=3.0.0 (from pyzed==4.0)
Using cached Cython-3.0.9-cp312-cp312-win_amd64.whl.metadata (3.2 kB)
Using cached Cython-3.0.9-cp312-cp312-win_amd64.whl (2.8 MB)
Using cached numpy-1.26.4-cp312-cp312-win_amd64.whl (15.5 MB)
Installing collected packages: numpy, cython, pyzed
Successfully installed cython-3.0.9 numpy-1.26.4 pyzed-4.0
Done
Installing OpenGL dependencies required to run the samples
→ Downloading PyOpenGL-3.1.6-cp312-cp312-win_amd64.whl
Processing e:\users\chenw\pycharmprojects\zed-opencv\pyopengl-3.1.6-cp312-cp312-win_amd64.whl
ERROR: Wheel ‘pyopengl’ located at E:\Users\chenw\PycharmProjects\zed-opencv\PyOpenGL-3.1.6-cp312-cp312-win_amd64.whl is invalid.
→ Downloading PyOpenGL_accelerate-3.1.6-cp312-cp312-win_amd64.whl
Processing e:\users\chenw\pycharmprojects\zed-opencv\pyopengl_accelerate-3.1.6-cp312-cp312-win_amd64.whl
ERROR: Wheel ‘pyopengl-accelerate’ located at E:\Users\chenw\PycharmProjects\zed-opencv\PyOpenGL_accelerate-3.1.6-cp312-cp312-win_amd64.whl is invalid.
Pyzed directory is E:\Users\chenw\PycharmProjects\zed-opencv.venv\Lib\site-packages

Hey @chen, welcome to the forums :slight_smile:

It seems you’re using Python 3.12, unfortunately, our API is not yet compatible with it.
Please use Python 3.10 or 3.11.

thank you for the help :slight_smile: problem solved

1 Like