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

Commits on Oct 8, 2020

  1. Fix build for opencv-python

    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>
    stweil committed Oct 8, 2020
    Configuration menu
    Copy the full SHA
    412959b View commit details
    Browse the repository at this point in the history