Skip to content

pip install source fial #1093

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wanggei opened this issue Mar 29, 2025 · 4 comments
Open

pip install source fial #1093

wanggei opened this issue Mar 29, 2025 · 4 comments

Comments

@wanggei
Copy link

wanggei commented Mar 29, 2025

  • Up-to-date: /home/opencv-python-headless-4.9.0.80/_skbuild/linux-riscv64-3.11/cmake-install/share/opencv4/lbpcascades/lbpcascade_silverware.xml
    Copying files from CMake output
    Traceback (most recent call last):
    File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 389, in
    main()
    File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 373, in main
    json_out["return_val"] = hook(**hook_input["kwargs"])
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/usr/local/lib/python3.11/site-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py", line 280, in build_wheel
    return _build_backend().build_wheel(
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-9ifmmgma/overlay/lib/python3.11/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-9ifmmgma/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 215, in _build_with_temp_dir
    self.run_setup()
    File "/tmp/pip-build-env-9ifmmgma/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 268, in run_setup
    self).run_setup(setup_script=setup_script)
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    File "/tmp/pip-build-env-9ifmmgma/overlay/lib/python3.11/site-packages/setuptools/build_meta.py", line 158, in run_setup
    exec(compile(code, file, 'exec'), locals())
    File "setup.py", line 537, in
    main()
    File "setup.py", line 267, in main
    setup(
    File "/tmp/pip-build-env-9ifmmgma/overlay/lib/python3.11/site-packages/skbuild/setuptools_wrap.py", line 700, in setup
    _classify_installed_files(
    File "setup.py", line 411, in _classify_installed_files_override
    with open(config_py, 'w') as opencv_init_config:
    ^^^^^^^^^^^^^^^^^^^^
    FileNotFoundError: [Errno 2] No such file or directory: '_skbuild/linux-riscv64-3.11/cmake-install/python/cv2/config-3.py'
@wanggei
Copy link
Author

wanggei commented Mar 29, 2025

Python version:3.11.8
opencv-python-headless: 4.9.0.80

@Quietscher
Copy link

Same error on
sudo python3 -m pip install picframe
(installs opencv)

@Quietscher
Copy link

when:
pip install --no-binary :all: opencv-python

then this error occurs:

[2/9] No download step for 'build_patchelf'
                        [3/9] No update step for 'build_patchelf'
                        [4/9] Performing patch step for 'build_patchelf'
                        FAILED: build_patchelf-prefix/src/build_patchelf-stamp/build_patchelf-patch /tmp/pip-install-qd0i4qk1/patchelf_40c1eb1066bd41828d2354a0fe54535e/build/py3-none-linux_armv8l/build_patchelf-prefix/src/build_patchelf-stamp/build_patchelf-patch
                        cd /tmp/pip-install-qd0i4qk1/patchelf_40c1eb1066bd41828d2354a0fe54535e/src/patchelf-upstream && ./bootstrap.sh && /usr/bin/cmake -E touch /tmp/pip-install-qd0i4qk1/patchelf_40c1eb1066bd41828d2354a0fe54535e/build/py3-none-linux_armv8l/build_patchelf-prefix/src/build_patchelf-stamp/build_patchelf-patch
                        ./bootstrap.sh: 2: autoreconf: not found
                        ninja: build stopped: subcommand failed.

                        *** CMake build failed

@asmorkalov
Copy link
Collaborator

[2/9] No download step for 'build_patchelf'
                        [3/9] No update step for 'build_patchelf'
                        [4/9] Performing patch step for 'build_patchelf'
                        FAILED: build_patchelf-prefix/src/build_patchelf-stamp/build_patchelf-patch /tmp/pip-install-qd0i4qk1/patchelf_40c1eb1066bd41828d2354a0fe54535e/build/py3-none-linux_armv8l/build_patchelf-prefix/src/build_patchelf-stamp/build_patchelf-patch
                        cd /tmp/pip-install-qd0i4qk1/patchelf_40c1eb1066bd41828d2354a0fe54535e/src/patchelf-upstream && ./bootstrap.sh && /usr/bin/cmake -E touch /tmp/pip-install-qd0i4qk1/patchelf_40c1eb1066bd41828d2354a0fe54535e/build/py3-none-linux_armv8l/build_patchelf-prefix/src/build_patchelf-stamp/build_patchelf-patch
                        ./bootstrap.sh: 2: autoreconf: not found
                        ninja: build stopped: subcommand failed.

It's not related to OpenCV.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants