-
Notifications
You must be signed in to change notification settings - Fork 202
Description
I am trying to install the depthai library from PyPi on a Raspberry Pi 4 B (4GB version) running Ubuntu Server 20.04.2 LTS. I followed the installation instructions from the documentation but am getting this error:
ERROR: Could not build wheels for depthai which use PEP 517 and cannot be installed directly
I am using:
- Python 3.8.5
- Pip 21.0.1
- setuptools 54.1.1
- wheel 0.36.2
inside of a virtualenv.
Installation worked fine on my Laptop (Ubuntu 20.04.2 LTS, similar environment). Does this relate to the Raspberry Architecture?
Full error message:
ERROR: Command errored out with exit status 1:
command: /home/andre/audrive/venv/bin/python3 /home/andre/audrive/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /tmp/tmpkf4hiiey
cwd: /tmp/pip-install-94mv2zsb/depthai_fdfb973f18934363b8bc1bea6a743d88
Complete output (155 lines):
running bdist_wheel
running build
running build_ext
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.25.1")
-- [hunter] Calculating Toolchain-SHA1
-- [hunter] Calculating Config-SHA1
-- [hunter] HUNTER_ROOT: /home/andre/.hunter
-- [hunter] [ Hunter-ID: 062a19a | Toolchain-ID: f61e57a | Config-ID: 6590c1c ]
-- [hunter] NLOHMANN_JSON_ROOT: /home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Install (ver.: 3.9.1)
-- [hunter] XLINK_ROOT: /home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Install (ver.: luxonis-2021.2-develop)
-- [hunter] Building XLink
loading initial cache file /home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/cache.cmake
loading initial cache file /home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Build/XLink/args.cmake
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: /home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Build/XLink/Build
Scanning dependencies of target XLink-Release
[ 12%] Creating directories for 'XLink-Release'
[ 25%] Performing download step (download, verify and extract) for 'XLink-Release'
-- verifying file...
file='/home/andre/.hunter/_Base/Download/XLink/luxonis-2021.2-develop/7210831/ee361ecba950335390ad539e509f8ab96313b6b4.tar.gz'
-- File already exists and hash match (skip download):
file='/home/andre/.hunter/_Base/Download/XLink/luxonis-2021.2-develop/7210831/ee361ecba950335390ad539e509f8ab96313b6b4.tar.gz'
SHA1='72108319bf2289d91157a3933663ed5fb2b6eb18'
-- extracting...
src='/home/andre/.hunter/_Base/Download/XLink/luxonis-2021.2-develop/7210831/ee361ecba950335390ad539e509f8ab96313b6b4.tar.gz'
dst='/home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Build/XLink/Source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 37%] No patch step for 'XLink-Release'
[ 50%] No update step for 'XLink-Release'
[ 62%] Performing configure step for 'XLink-Release'
loading initial cache file /home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/cache.cmake
loading initial cache file /home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Build/XLink/args.cmake
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Failed
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
CMake Error at XLink.cmake:27 (message):
libusb is required
Call Stack (most recent call first):
CMakeLists.txt:8 (include)-- Configuring incomplete, errors occurred!
See also "/home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Build/XLink/Build/XLink-Release-prefix/src/XLink-Release-build/CMakeFiles/CMakeOutput.log".
See also "/home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Build/XLink/Build/XLink-Release-prefix/src/XLink-Release-build/CMakeFiles/CMakeError.log".
make[2]: *** [CMakeFiles/XLink-Release.dir/build.make:111: XLink-Release-prefix/src/XLink-Release-stamp/XLink-Release-configure] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/XLink-Release.dir/all] Error 2
make: *** [Makefile:84: all] Error 2[hunter ** FATAL ERROR **] Build step failed (dir: /home/andre/.hunter/_Base/062a19a/f61e57a/6590c1c/Build/XLink
[hunter ** FATAL ERROR **] [Directory:/tmp/pip-install-94mv2zsb/depthai_fdfb973f18934363b8bc1bea6a743d88/depthai-core/cmake]------------------------------ ERROR -----------------------------
https://hunter.readthedocs.io/en/latest/reference/errors/error.external.build.failed.htmlCMake Error at /home/andre/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message):
Call Stack (most recent call first):
/home/andre/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page)
/home/andre/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_download.cmake:623 (hunter_fatal_error)
/home/andre/.hunter/_Base/Download/Hunter/0.23.258/062a19a/Unpacked/cmake/modules/hunter_add_package.cmake:53 (hunter_download)
depthai-core/cmake/depthaiDependencies.cmake:6 (hunter_add_package)
depthai-core/CMakeLists.txt:82 (include)-- Configuring incomplete, errors occurred!
See also "/tmp/pip-install-94mv2zsb/depthai_fdfb973f18934363b8bc1bea6a743d88/build/temp.linux-aarch64-3.8/CMakeFiles/CMakeOutput.log".
Traceback (most recent call last):
File "/home/andre/audrive/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 280, in
main()
File "/home/andre/audrive/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 263, in main
json_out['return_val'] = hook(**hook_input['kwargs'])
File "/home/andre/audrive/venv/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py", line 204, in build_wheel
return _build_backend().build_wheel(wheel_directory, config_settings,
File "/tmp/pip-build-env-1ze6gv2k/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 216, in build_wheel
return self._build_with_temp_dir(['bdist_wheel'], '.whl',
File "/tmp/pip-build-env-1ze6gv2k/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 202, in _build_with_temp_dir
self.run_setup()
File "/tmp/pip-build-env-1ze6gv2k/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 253, in run_setup
super(_BuildMetaLegacyBackend,
File "/tmp/pip-build-env-1ze6gv2k/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 145, in run_setup
exec(compile(code, file, 'exec'), locals())
File "setup.py", line 172, in
setup(
File "/tmp/pip-build-env-1ze6gv2k/overlay/lib/python3.8/site-packages/setuptools/init.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/usr/lib/python3.8/distutils/core.py", line 148, in setup
dist.run_commands()
File "/usr/lib/python3.8/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/tmp/pip-build-env-1ze6gv2k/overlay/lib/python3.8/site-packages/wheel/bdist_wheel.py", line 299, in run
self.run_command('build')
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "/usr/lib/python3.8/distutils/command/build.py", line 135, in run
self.run_command(cmd_name)
File "/usr/lib/python3.8/distutils/cmd.py", line 313, in run_command
self.distribution.run_command(command)
File "/usr/lib/python3.8/distutils/dist.py", line 985, in run_command
cmd_obj.run()
File "setup.py", line 83, in run
self.build_extension(ext)
File "setup.py", line 167, in build_extension
subprocess.check_call(['cmake', ext.sourcedir] + cmake_args, cwd=self.build_temp, env=env)
File "/usr/lib/python3.8/subprocess.py", line 364, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['cmake', '/tmp/pip-install-94mv2zsb/depthai_fdfb973f18934363b8bc1bea6a743d88', '-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=/tmp/pip-install-94mv2zsb/depthai_fdfb973f18934363b8bc1bea6a743d88/build/lib.linux-aarch64-3.8/', '-DPYTHON_EXECUTABLE=/home/andre/audrive/venv/bin/python3', '-DDEPTHAI_PYTHON_COMMIT_HASH=b9f829caed435ac8a72c5b6a03db4fa3ccb8c226', '-DCMAKE_BUILD_TYPE=Release', '-DHUNTER_CONFIGURATION_TYPES=Release']' returned non-zero exit status 1.ERROR: Failed building wheel for depthai
Failed to build depthai
ERROR: Could not build wheels for depthai which use PEP 517 and cannot be installed directly