ZED Cam

Hey, I am able to use ZED SDK(depth viewer, ZEDfu, etc) but cant import the pyzed.sl in python shell because couldnt install the API.

Downloaded the repo below.

https://github.com/stereolabs/zed-python-api

But as I run the code

python setup.py build

I end up with

ZED SDK Version: OK
compilation flags: ['-std=c++11', '-Wno-reorder', '-Wno-deprecated-declarations', '-Wno-cpp', '-O3']
include dirs: ['/root/.local/lib/python3.6/site-packages/numpy/core/include', '/usr/local/zed/include', '/usr/local/cuda/include']
library dirs: ['/root/.local/lib/python3.6/site-packages/numpy/core/include', '/usr/local/zed/lib', '/usr/local/cuda/lib64']
libraries: ['sl_core', 'sl_zed']
Building module: ('pyzed.sl', ['pyzed/sl.pyx'])
Compiling pyzed/sl.pyx because it changed.
[1/1] Cythonizing pyzed/sl.pyx
/usr/local/lib/python3.6/dist-packages/Cython/Compiler/Main.py:367: FutureWarning: Cython directive 'language_level' not set, using 2 for now (Py2). This will change in a later release! File: /usr/local/zed-python-api-master/pyzed/sl.pyx
  tree = Parsing.p_module(s, pxd, full_module_name)
running build
running build_py
creating build
creating build/lib.linux-aarch64-3.6
creating build/lib.linux-aarch64-3.6/pyzed
copying pyzed/__init__.py -> build/lib.linux-aarch64-3.6/pyzed
running build_ext
building 'pyzed.sl' extension
creating build/temp.linux-aarch64-3.6
creating build/temp.linux-aarch64-3.6/pyzed
aarch64-linux-gnu-gcc -pthread -DNDEBUG -g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 -fPIC -I./pyzed -I/root/.local/lib/python3.6/site-packages/numpy/core/include -I/usr/local/zed/include -I/usr/local/cuda/include -I/usr/include/python3.6m -c pyzed/sl.cpp -o build/temp.linux-aarch64-3.6/pyzed/sl.o -std=c++11 -Wno-reorder -Wno-deprecated-declarations -Wno-cpp -O3
pyzed/sl.cpp: In function ‘PyObject* __pyx_pw_5pyzed_2sl_3Mat_39get_value(PyObject*, PyObject*, PyObject*)’:
pyzed/sl.cpp:23913:19: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   __pyx_v_value2u = sl::Vector2<__pyx_t_5pyzed_4sl_c_uchar1> ();
   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pyzed/sl.cpp:23922:19: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   __pyx_v_value3u = sl::Vector3<__pyx_t_5pyzed_4sl_c_uchar1> ();
   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pyzed/sl.cpp:23931:19: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   __pyx_v_value4u = sl::Vector4<__pyx_t_5pyzed_4sl_c_uchar1> ();
   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pyzed/sl.cpp:23940:19: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   __pyx_v_value2f = sl::Vector2<__pyx_t_5pyzed_4sl_c_float1> ();
   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pyzed/sl.cpp:23949:19: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   __pyx_v_value3f = sl::Vector3<__pyx_t_5pyzed_4sl_c_float1> ();
   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pyzed/sl.cpp:23958:19: warning: ‘<anonymous>’ may be used uninitialized in this function [-Wmaybe-uninitialized]
   __pyx_v_value4f = sl::Vector4<__pyx_t_5pyzed_4sl_c_float1> ();
   ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
aarch64-linux-gnu-g++ -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-Bsymbolic-functions -Wl,-z,relro -g -fstack-protector-strong -Wformat -Werror=format-security -Wdate-time -D_FORTIFY_SOURCE=2 build/temp.linux-aarch64-3.6/pyzed/sl.o -L/root/.local/lib/python3.6/site-packages/numpy/core/include -L/usr/local/zed/lib -L/usr/local/cuda/lib64 -Wl,--enable-new-dtags,-R/root/.local/lib/python3.6/site-packages/numpy/core/include -Wl,--enable-new-dtags,-R/usr/local/zed/lib -Wl,--enable-new-dtags,-R/usr/local/cuda/lib64 -lsl_core -lsl_zed -o build/lib.linux-aarch64-3.6/pyzed/sl.cpython-36m-aarch64-linux-gnu.so

Previous steps went without error; numpy, cython is up to date. Using python 3.6.7

Hi orcdnz, I don’t see in that compiler log where there is error, only warnings. Was there other output that indicated an error building the package?

If you continue to have issues with the installation, you may want to contact support@stereolabs.com for their help.