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

Install fails on pip REQUIREMENTS step due to opencv-python #461

Closed
chrisinmtown opened this issue Dec 9, 2020 · 1 comment
Closed

Install fails on pip REQUIREMENTS step due to opencv-python #461

chrisinmtown opened this issue Dec 9, 2020 · 1 comment

Comments

@chrisinmtown
Copy link

chrisinmtown commented Dec 9, 2020

I am following the instructions to install on RHEL 7.4, checked out tag v2.4.134 then running the pip step. I don't think this missing module is YOUR problem since it's required by the opencv-python package, but would be grateful for any guidance here.

../venv/bin/pip install -U -I -r REQUIREMENTS
Obtaining file:///var/www/MISP/misp-modules (from -r REQUIREMENTS (line 2))
Obtaining pybgpranking from git+https://github.com/D4-project/BGP-Ranking.git/@fd9c0e03af9b61d4bf0b67ac73c7208a55178a54#egg=pybgpranking&subdirectory=client (from -r REQUIREMENTS (line 3))

   (..successful installs omitted here..)

Collecting opencv-python==4.4.0.44 (from -r REQUIREMENTS (line 56))
  Downloading https://files.pythonhosted.org/packages/38/a9/cd39fd25df434b5d9451dc266c12b72f68282a2b9bd5d7b4aa2d57d6c20e/opencv-python-4.4.0.44.tar.gz (88.9MB)
    100% |████████████████████████████████| 88.9MB 18kB/s 
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/tmp/pip-build-20oy5xma/opencv-python/setup.py", line 9, in <module>
        import skbuild
    ModuleNotFoundError: No module named 'skbuild'

This problem is documented in some details here: https://pypi.org/project/opencv-python/

The (closed) issue in opencv-python is here: opencv/opencv-python#387

The main workaround is to use a recent version of pip that knows how to download the appropriate binary, which an old pip cannot do.

One more question - is there any way for misp-modules to treat opencv-python as optional? I guess then some modules might not work.

@chrisinmtown chrisinmtown changed the title Install from tag 2.4.134 fails on REQUIREMENTS step due to opencv-python missing skbuild Install fails on pip REQUIREMENTS step due to opencv-python missing skbuild Dec 9, 2020
@chrisinmtown chrisinmtown changed the title Install fails on pip REQUIREMENTS step due to opencv-python missing skbuild Install fails on pip REQUIREMENTS step due to missing skbuild Dec 9, 2020
@chrisinmtown chrisinmtown changed the title Install fails on pip REQUIREMENTS step due to missing skbuild Install fails on pip REQUIREMENTS step due to opencv-python Dec 9, 2020
@chrisinmtown
Copy link
Author

Please consider mentioning in your install instructions about using a modern version of pip. The old pip that I was using, version 9, does not know how to download the precompiled binaries that opencv-python offers, so attempts to build -- that's all wrong.

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

No branches or pull requests

1 participant