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

HyrbrIK requires a yanked (deprecated) version of opencv python, cannot proceed with install #233

Open
SussyImp0ster opened this issue May 22, 2024 · 1 comment

Comments

@SussyImp0ster
Copy link

SussyImp0ster commented May 22, 2024

I've been going through the installation process according to the instructions, and everything's been going smoothly up until the second part of step 5. When I tried "python setup.py develop" it seemed to run successfully (despite some deprecation warnings) and install everything, except for opencv python. It gave me this error:

Installed d:\miniconda3\lib\site-packages\easydict-1.13-py3.12.egg Searching for opencv-python==4.1.2.30 Reading https://pypi.org/simple/opencv-python/ No local packages or working download links found for opencv-python==4.1.2.30 error: Could not find suitable distribution for Requirement.parse('opencv-python==4.1.2.30')

I also tried doing "pip install -e ." instead but ended up with the same error. So then I tried to install opencv 4.1.2.30 separately (still from within the hybrik environment), only to get the following error:

ERROR: Could not find a version that satisfies the requirement opencv-python==4.1.2.30 (from versions: 3.4.0.14, 3.4.10.37, 3.4.11.41, 3.4.11.43, 3.4.11.45, 3.4.13.47, 3.4.15.55, 3.4.16.57, 3.4.16.59, 3.4.17.61, 3.4.17.63, 3.4.18.65, 4.3.0.38, 4.4.0.40, 4.4.0.42, 4.4.0.44, 4.4.0.46, 4.5.1.48, 4.5.3.56, 4.5.4.58, 4.5.4.60, 4.5.5.62, 4.5.5.64, 4.6.0.66, 4.7.0.68, 4.7.0.72, 4.8.0.74, 4.8.0.76, 4.8.1.78, 4.9.0.80) ERROR: No matching distribution found for opencv-python==4.1.2.30

After this I went to https://pypi.org/project/opencv-python/#history to check if the one version of opencv that hybrik would accept was indeed yanked, and it turned out it was. I tried using the direct .whl download for the required opencv version that was available on the website and install it using that, but when I tried it gave me this error:

ERROR: opencv_python-4.1.2.30-cp38-cp38m-win_amd64.whl is not a supported wheel on this platform.

So it seems I have to downgrade python to version 3.8 for this install to work, but if I remember correctly there are other dependencies which require later versions of python that will fail on an older version like 3.8. Has anyone else run into this problem?

@seamoon76
Copy link

You can check here #186.

It seems that you can remove 4.1.2.30 from setup.py line 126.

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

2 participants