Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix build for opencv-python #208

Merged
merged 1 commit into from
Oct 8, 2020
Merged

Fix build for opencv-python #208

merged 1 commit into from
Oct 8, 2020

Conversation

stweil
Copy link
Collaborator

@stweil stweil commented Oct 8, 2020

The setup.py script fails to build opencv-python when it is run from a
different directory:

. /venv-20201008/bin/activate && ENABLE_HEADLESS=1 python3 opencv-python/setup.py bdist_wheel
Traceback (most recent call last):
File "opencv-python/setup.py", line 448, in
main()
File "opencv-python/setup.py", line 57, in main
build_contrib, build_headless, is_CI_build
File "opencv-python/setup.py", line 417, in get_and_set_info
with open(version_file) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/ocrd_all/opencv-python/opencv-python/cv2/version.py'
Makefile:187: recipe for target '/venv-20201008/share/opencv-python' failed
make: *** [/venv-20201008/share/opencv-python] Error 1

Fix this by changing the directory before starting the script.

Signed-off-by: Stefan Weil stefan.weil@bib.uni-mannheim.de

The setup.py script fails to build opencv-python when it is run from a
different directory:

. /venv-20201008/bin/activate && ENABLE_HEADLESS=1 python3 opencv-python/setup.py bdist_wheel
Traceback (most recent call last):
  File "opencv-python/setup.py", line 448, in <module>
    main()
  File "opencv-python/setup.py", line 57, in main
    build_contrib, build_headless, is_CI_build
  File "opencv-python/setup.py", line 417, in get_and_set_info
    with open(version_file) as fp:
FileNotFoundError: [Errno 2] No such file or directory: '/ocrd_all/opencv-python/opencv-python/cv2/version.py'
Makefile:187: recipe for target '/venv-20201008/share/opencv-python' failed
make: *** [/venv-20201008/share/opencv-python] Error 1

Fix this by changing the directory before starting the script.

Signed-off-by: Stefan Weil <stefan.weil@bib.uni-mannheim.de>
@kba kba merged commit 8140734 into OCR-D:master Oct 8, 2020
@stweil stweil deleted the opencv-python branch December 3, 2020 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants