opencv / opencv/opencv-python

error when compile debug opencv-python

Open
#973 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

incomplete
Dominant language
Python
Stars
5.4k
Forks
1k
Avg merge
22h 17m
Merged PRs (30d)
3

Description

Describe the doc issue

I wanna manul compile debug opencv-python in windows, and I try a lot of times, but there always show this error, I don't know how to fix it.

git clone --recursive https://github.com/opencv/opencv-python.git
cd .\opencv-python\
set CMAKE_ARGS=-DCMAKE_VERBOSE_MAKEFILE=ON
set VERBOSE=1
pip install scikit-build
python setup.py bdist_wheel --build-type=Debug
Fix suggestion

File "C:\Users\uqbduan\Desktop\cover_opencv\opencv-python\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\win-amd64-3.12\cmake-install\python\cv2\config-3.py'

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the Windows commands in the issue, especially python setup.py bdist_wheel --build-type=Debug, and inspect setup.py around _classify_installed_files_override line 411. Check why _skbuild\win-amd64-3.12\cmake-install\python\cv2\config-3.py is missing; done means the debug build completes and produces its wheel.

Written by the indexing model from the issue text.

Assessment

Tech stack
cmake, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.