stereolabs / zed-python-api

Python API for the ZED SDK
https://www.stereolabs.com/docs/app-development/python/install/
MIT License
213 stars 94 forks source link

Error in get_python_api.py #179

Closed JiarunLiu closed 2 years ago

JiarunLiu commented 3 years ago

Hi, I am trying to install python api but got the following issue:

(zed) fgldlb@sqq:/usr/local/zed$ python get_python_api.py 
-> Downloading to '/usr/local/zed'
Error: you must install Cuda.

But the cuda is aready installed:

(zed) fgldlb@sqq:/usr/local/zed$ nvidia-smi
Sun May  9 19:53:19 2021       
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 450.119.03   Driver Version: 450.119.03   CUDA Version: 11.0     |
|-------------------------------+----------------------+----------------------+
| GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
| Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
|                               |                      |               MIG M. |
|===============================+======================+======================|
|   0  GeForce RTX 208...  Off  | 00000000:01:00.0  On |                  N/A |
|  0%   49C    P8    22W / 280W |    356MiB / 11016MiB |     17%      Default |
|                               |                      |                  N/A |
+-------------------------------+----------------------+----------------------+

+-----------------------------------------------------------------------------+
| Processes:                                                                  |
|  GPU   GI   CI        PID   Type   Process name                  GPU Memory |
|        ID   ID                                                   Usage      |
|=============================================================================|
|    0   N/A  N/A      1083      G   /usr/lib/xorg/Xorg                175MiB |
|    0   N/A  N/A      2373      G   /usr/bin/gnome-shell              105MiB |
|    0   N/A  N/A      6425      G   ...463A9CFCACA8C3892AC9B06BB       26MiB |
|    0   N/A  N/A     18715      G   /usr/lib/firefox/firefox           16MiB |
|    0   N/A  N/A     19145      G   /usr/lib/firefox/firefox            6MiB |
|    0   N/A  N/A     22644      G   ...AAAAAAAAA= --shared-files       22MiB |
+-----------------------------------------------------------------------------+
(zed) fgldlb@sqq:/usr/local/zed$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Nov__3_21:07:56_CDT_2017
Cuda compilation tools, release 9.1, V9.1.85

I was install ZED SDK by ZED_SDK_Ubuntu18_cuda11.0_v3.5.0.run on the following platform :

System: Ubuntu18.04
CPU: i7-8700K
GPU: RTX 2080Ti
adujardin commented 3 years ago

Hi

The message from the script should be more explicit, but it's saying that it didn't found a matching cuda version (11.0 in that case).

While your driver is compatible ("CUDA version" displayed by nvidia-smi), your cuda installation is too old. nvcc report "9.1" but it should match 11.0. The ZED SDK installer should have picked up on that and offer to install cuda 11.0. But you may have multiple cuda version setup and the default point to 9.1?

I suggest installing cuda 11.0 and removing other versions of cuda if possible, then retrying.

Just in case here's how to manually download the python package for this platform:

wget https://download.stereolabs.com/zedsdk/3.5/ubuntu18/cu110/py37 -O pyzed-3.5-cp37-cp37m-linux_x86_64.whl
github-actions[bot] commented 2 years ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment otherwise it will be automatically closed in 5 days