-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
目前仓库中只有Python3.6和Python3.8的包,我需要Python3.7的包
我自己编译时报错:
[100%] Built target gen_opencv_python_source
[100%] Building CXX object modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o
In file included from /home/uos/opencv-python/opencv/modules/python/src2/cv2.hpp:39,
from /home/uos/opencv-python/opencv/modules/python/src2/cv2.cpp:5:
/usr/include/numpy/ndarrayobject.h: In function ‘int NPY_TITLE_KEY_check(PyObject*, PyObject*)’:
/usr/include/numpy/ndarrayobject.h:236:9: error: ‘PyTuple_GET_SIZE’ was not declared in this scope
if (PyTuple_GET_SIZE(value) != 3) {
^~~~~~~~~~~~~~~~
/usr/include/numpy/ndarrayobject.h:236:9: note: suggested alternative: ‘PyTuple_GetSlice’
if (PyTuple_GET_SIZE(value) != 3) {
^~~~~~~~~~~~~~~~
PyTuple_GetSlice
/usr/include/numpy/ndarrayobject.h:239:13: error: ‘PyTuple_GET_ITEM’ was not declared in this scope
title = PyTuple_GET_ITEM(value, 2);
^~~~~~~~~~~~~~~~
/usr/include/numpy/ndarrayobject.h:239:13: note: suggested alternative: ‘PyArray_GETITEM’
title = PyTuple_GET_ITEM(value, 2);
^~~~~~~~~~~~~~~~
PyArray_GETITEM
make[2]: *** [modules/python3/CMakeFiles/opencv_python3.dir/build.make:79:modules/python3/CMakeFiles/opencv_python3.dir/__/src2/cv2.cpp.o] 错误 1
make[1]: *** [CMakeFiles/Makefile2:6295:modules/python3/CMakeFiles/opencv_python3.dir/all] 错误 2
make: *** [Makefile:166:all] 错误 2
Traceback (most recent call last):
File "/tmp/pip-build-env-xsmspe2m/overlay/lib/python3.7/site-packages/skbuild/setuptools_wrap.py", line 668, in setup
cmkr.make(make_args, install_target=cmake_install_target, env=env)
File "/tmp/pip-build-env-xsmspe2m/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 696, in make
self.make_impl(clargs=clargs, config=config, source_dir=source_dir, install_target=install_target, env=env)
File "/tmp/pip-build-env-xsmspe2m/overlay/lib/python3.7/site-packages/skbuild/cmaker.py", line 741, in make_impl
raise SKBuildError(msg)
An error occurred while building with CMake.
Command:
/tmp/pip-build-env-xsmspe2m/overlay/lib/python3.7/site-packages/cmake/data/bin/cmake --build . --target install --config Release --
Install target:
install
Source directory:
/home/uos/opencv-python
Working directory:
/home/uos/opencv-python/_skbuild/linux-loongarch64-3.7/cmake-build
Please check the install target is valid and see CMake's output for more information.
error: subprocess-exited-with-error
× Building wheel for opencv-contrib-python (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
full command: /usr/bin/python3 /usr/local/lib/python3.7/dist-packages/pip/_vendor/pyproject_hooks/_in_process/_in_process.py build_wheel /tmp/tmpe21bws1v
cwd: /home/uos/opencv-python
Building wheel for opencv-contrib-python (pyproject.toml) ... error
ERROR: Failed building wheel for opencv-contrib-python
Failed to build opencv-contrib-python
ERROR: Failed to build one or more wheels当前环境:
uos@uos-PC:~/opencv-python$ pip3 list
Package Version
--------------------- ----------
allure-pytest 2.13.5
allure-python-commons 2.13.5
asn1crypto 0.24.0
attrs 24.2.0
certifi 2024.8.30
click 8.1.7
cmake 3.30.0
cryptography 2.6.1
decorator 4.3.0
distlib 0.3.9
distro 1.3.0
dnspython 1.16.0
EasyProcess 1.1
entrypoint2 1.1
entrypoints 0.3
exceptiongroup 1.2.2
filelock 3.12.2
funnylog2 2024.10.26
importlib-metadata 6.7.0
iniconfig 2.0.0
IPy 0.83
jeepney 0.8.0
keyring 17.1.1
keyrings.alt 3.1.1
mss 7.0.1
networkx 2.2
nocmd 2024.11.26
numpy 1.19.5
onboard 1.4.1
packaging 24.0
pexpect 4.6.0
Pillow 5.4.1
pip 24.0
pipenv 2023.10.3
platformdirs 4.0.0
pluggy 1.2.0
pycairo 1.16.2
pycrypto 2.6.1
pydbussend 2024.12.3
PyGObject 3.30.4
pylinuxauto 2024.11.28
pyscreenshot 3.1
pysmbc 1.0.15.6
pytest 7.4.4
pytest-record-video 2024.10.29
pytest-rerunfailures 13.0
pytest-timeout 2.3.1
python3-xlib 0.15
pyxdg 0.25
reportlab 3.5.13
SecretStorage 2.3.1
sepolicy 1.1
setools 4.2.0
setuptools 68.0.0
six 1.12.0
tomli 2.0.1
typing_extensions 4.7.1
virtualenv 20.26.6
wheel 0.32.3
xattr 0.9.6
youqu-html-rpc 2024.10.25
youqu3 3.1.2
youtube-dl 2019.1.17
zipp 3.15.0Metadata
Metadata
Assignees
Labels
No labels
