You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I try run pip install py4ak in Ubuntu 20.04 , I meet some problems:
DEPRECATION: --build-option and --global-option are deprecated. pip 25.0 will enforce this behaviour change. A possible replacement is to use --config-settings. Discussion can be found at https://github.com/pypa/pip/issues/11859
WARNING: Implying --no-binary=:all: due to the presence of --build-option / --global-option.
Collecting pyk4a
Using cached pyk4a-1.5.0.tar.gz (24 kB)
Installing build dependencies ... /
done
Getting requirements to build wheel ... done
Preparing metadata (pyproject.toml) ... done
Requirement already satisfied: numpy in /root/anaconda3/lib/python3.12/site-packages (from pyk4a) (1.26.4)
Building wheels for collected packages: pyk4a
WARNING: Ignoring --global-option when building pyk4a using PEP 517
Building wheel for pyk4a (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for pyk4a (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [49 lines of output]
/tmp/pip-build-env-tt5ty4lg/overlay/lib/python3.12/site-packages/setuptools/dist.py:488: SetuptoolsDeprecationWarning: Invalid dash-separated options
!!
********************************************************************************
Usage of dash-separated 'description-file' will not be supported in future
versions. Please use the underscore name 'description_file' instead.
By 2025-Mar-03, you need to update your project and remove deprecated calls
or your builds will no longer be supported.
See https://setuptools.pypa.io/en/latest/userguide/declarative_config.html for details.
********************************************************************************
!!
opt = self.warn_dash_deprecation(opt, section)
Automatic kinect SDK detection did not yield any results.
running bdist_wheel
running build
running build_py
creating build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/module.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/calibration.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/config.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/__init__.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/record.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/results.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/playback.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/transformation.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/win32_utils.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/capture.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/pyk4a.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/errors.py -> build/lib.linux-x86_64-cpython-312/pyk4a
copying pyk4a/py.typed -> build/lib.linux-x86_64-cpython-312/pyk4a
running build_ext
building 'k4a_module' extension
creating build/temp.linux-x86_64-cpython-312/pyk4a
g++ -pthread -B /root/anaconda3/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /root/anaconda3/include -fPIC -O2 -isystem /root/anaconda3/include -fPIC -I/tmp/pip-build-env-tt5ty4lg/overlay/lib/python3.12/site-packages/numpy/_core/include -I/root/anaconda3/include/python3.12 -c pyk4a/pyk4a.cpp -o build/temp.linux-x86_64-cpython-312/pyk4a/pyk4a.o
In file included from /tmp/pip-build-env-tt5ty4lg/overlay/lib/python3.12/site-packages/numpy/_core/include/numpy/ndarraytypes.h:1913,
from /tmp/pip-build-env-tt5ty4lg/overlay/lib/python3.12/site-packages/numpy/_core/include/numpy/ndarrayobject.h:12,
from /tmp/pip-build-env-tt5ty4lg/overlay/lib/python3.12/site-packages/numpy/_core/include/numpy/arrayobject.h:5,
from pyk4a/pyk4a.cpp:2:
/tmp/pip-build-env-tt5ty4lg/overlay/lib/python3.12/site-packages/numpy/_core/include/numpy/npy_1_7_deprecated_api.h:17:2: warning: #warning "Using deprecated NumPy API, disable it with " "#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION" [-Wcpp]
17 | #warning "Using deprecated NumPy API, disable it with " \
| ^~~~~~~
g++ -pthread -B /root/anaconda3/compiler_compat -fno-strict-overflow -Wsign-compare -DNDEBUG -O2 -Wall -fPIC -O2 -isystem /root/anaconda3/include -fPIC -O2 -isystem /root/anaconda3/include -pthread -B /root/anaconda3/compiler_compat -shared -Wl,-rpath,/root/anaconda3/lib -Wl,-rpath-link,/root/anaconda3/lib -L/root/anaconda3/lib -Wl,-rpath,/root/anaconda3/lib -Wl,-rpath-link,/root/anaconda3/lib -L/root/anaconda3/lib build/temp.linux-x86_64-cpython-312/pyk4a/pyk4a.o -lk4a -lk4arecord -o build/lib.linux-x86_64-cpython-312/k4a_module.cpython-312-x86_64-linux-gnu.so
/root/anaconda3/compiler_compat/ld: cannot find -lk4a: 没有那个文件或目录
/root/anaconda3/compiler_compat/ld: cannot find -lk4arecord: 没有那个文件或目录
collect2: error: ld returned 1 exit status
error: command '/usr/bin/g++' failed with exit code 1
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for pyk4a
Failed to build pyk4a
ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (pyk4a)
My system info:
System: Ubuntu 20.04.6 LTS
Arch: x86_64
CPU:Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
I run pip install pyk4a and pip install --global-option build_ext --global-option="-I/home/bobo/Azure-Kinect-Sensor-SDK/include/:/home/bobo/Azure-Kinect-Sensor-SDK/build/src/sdk/include/" --global-option="-L/home/bobo/Azure-Kinect-Sensor-SDK/include/:/home/bobo/Azure-Kinect-Sensor-SDK/build/src/sdk/include/:/home/bobo/Azure-Kinect-Sensor-SDK/build/bin" pyk4a , both of them is not work
When I try run pip install py4ak in Ubuntu 20.04 , I meet some problems:
My system info:
System: Ubuntu 20.04.6 LTS
Arch: x86_64
CPU:Intel(R) Xeon(R) CPU E5-2673 v4 @ 2.30GHz
I have build and make Azure Kinect SDK from https://github.com/microsoft/Azure-Kinect-Sensor-SDK , and add LD_LIBRARY_PATH in ~/.bashrc:
export LD_LIBRARY_PATH=/home/bobo/Azure-Kinect-Sensor-SDK/build/bin${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
The text was updated successfully, but these errors were encountered: