Skip to content

No such file or directory: '_skbuild/linux-aarch64-3.8/cmake-install/python/cv2/__init__.py' #600

@twmht

Description

@twmht

Expected behaviour

Build wheel successfully on jetson xavier nx

Actual behaviour

Build wheel failed at the end of the build phase

  Traceback (most recent call last):
    File "/home/acer/.pyenv/versions/3.8.12/envs/nx-3.8.12/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 363, in <module>
      main()
    File "/home/acer/.pyenv/versions/3.8.12/envs/nx-3.8.12/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 345, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/home/acer/.pyenv/versions/3.8.12/envs/nx-3.8.12/lib/python3.8/site-packages/pip/_vendor/pep517/in_process/_in_process.py", line 261, in build_wheel
      return _build_backend().build_wheel(wheel_directory, config_settings,
    File "/tmp/pip-build-env-sleawhsc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 230, in build_wheel
      return self._build_with_temp_dir(['bdist_wheel'], '.whl',
    File "/tmp/pip-build-env-sleawhsc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
      self.run_setup()
    File "/tmp/pip-build-env-sleawhsc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 267, in run_setup
      super(_BuildMetaLegacyBackend,
    File "/tmp/pip-build-env-sleawhsc/overlay/lib/python3.8/site-packages/setuptools/build_meta.py", line 158, in run_setup
      exec(compile(code, __file__, 'exec'), locals())
    File "setup.py", line 501, in <module>
      main()
    File "setup.py", line 238, in main
      skbuild.setup(
    File "/tmp/pip-build-env-sleawhsc/overlay/lib/python3.8/site-packages/skbuild/setuptools_wrap.py", line 625, in setup
      _classify_installed_files(cmake_manifest, package_data, package_prefixes,
    File "setup.py", line 371, in _classify_installed_files_override
      with open(os.path.join(cmake_install_dir, "python", "cv2", "__init__.py"), 'r') as opencv_init:
  FileNotFoundError: [Errno 2] No such file or directory: '_skbuild/linux-aarch64-3.8/cmake-install/python/cv2/__init__.py'

See my log
log.txt

Steps to reproduce

git clone --recursive https://github.com/opencv/opencv-python.git
cd opencv-python
export CMAKE_ARGS="-DWITH_CUDA=ON -DENABLE_PRECOMPILED_HEADERS=OFF -DCUDA_ARCH_BIN="7.2" -DCUDA_ARCH_PTX="" -DOPENCV_EXTRA_MODULES_PATH=/home/acer/opencv-python/opencv_contrib/modules -DWITH_GSTREAMER=ON -DWITH_LIBV4L=ON -DBUILD_opencv_python3=ON -DBUILD_TESTS=OFF -DBUILD_PERF_TESTS=OFF -DBUILD_EXAMPLES=OFF -DCMAKE_BUILD_TYPE=RELEASE -DCMAKE_INSTALL_PREFIX=/home/acer/opencv-python_build"
export ENABLE_CONTRIB=1
pip wheel . --verbose
Issue submission checklist
  • This is not a generic OpenCV usage question (looking for help for coding, other usage questions, homework etc.)
  • I have read the README of this repository and understand that this repository provides only an automated build toolchain for OpenCV Python packages (there is no actual OpenCV code here)
  • The issue is related to the build scripts in this repository, to the pre-built binaries or is a feature request (such as "please enable this additional dependency")
  • I'm using the latest version of opencv-python

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions