Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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