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

Impossible to install opencv==4.10.* with python==3.12, 3.11 and 3.10 #418

Closed
1 task done
traversaro opened this issue Jun 11, 2024 · 6 comments
Closed
1 task done
Labels

Comments

@traversaro
Copy link
Contributor

Solution to issue cannot be found in the documentation.

  • I checked the documentation.

Issue

The following command fails:

conda create -n test "opencv==4.10.*" "python==3.12.*"

with these error:

traversaro@IITBMP014LW012:~$ conda create -n test "opencv==4.10.*" "python==3.12.*"
Channels:
 - conda-forge
Platform: linux-64
Collecting package metadata (repodata.json): done
Solving environment: failed

LibMambaUnsatisfiableError: Encountered problems while solving:
  - nothing provides _numpy_rc needed by numpy-2.0.0rc1-py310h515e003_0

Could not solve for environment specs
The following packages are incompatible
├─ opencv 4.10**  is installable with the potential options
│  ├─ opencv 4.10.0 would require
│  │  └─ py-opencv [4.10.0 headless_py310h59be988_0|4.10.0 headless_py311he415c94_0|...|4.10.0 qt6_py39h1b361a7_600], which requires
│  │     └─ numpy >=2.0.0rc.2,<3.0a0 , which requires
│  │        └─ _numpy_rc, which does not exist (perhaps a missing channel);
│  ├─ opencv 4.10.0 would require
│  │  └─ python_abi 3.8.* *_cp38, which can be installed;
│  └─ opencv 4.10.0 would require
│     └─ pypy3.9 >=7.3.15 , which can be installed;
└─ python 3.12**  is not installable because there are no viable options
   ├─ python [3.12.0|3.12.1|3.12.2|3.12.3] would require
   │  └─ python_abi 3.12.* *_cp312, which conflicts with any installable versions previously reported;
   └─ python 3.12.0rc3 would require
      └─ _python_rc, which does not exist (perhaps a missing channel).

Similarly, this fails with python 3.10 or 3.11 unless Python 3.8 or 3.9 is requested.

Installed packages

.

Environment info

.
@traversaro traversaro added the bug label Jun 11, 2024
@traversaro
Copy link
Contributor Author

(I ended up here as OpenCV 4.9 can't be found correctly with Visual Studio 17.10, and OpenCV 4.10 was not installed for this issue, see robotology/robotology-superbuild#1664 for the full investigation).

@hmaarrfk
Copy link
Contributor

I think we accidentally left a pin_compatible('numpy') in there.

- {{ pin_compatible('numpy') }}

do you want to write a repodata patch and we can try?

@hmaarrfk
Copy link
Contributor

@conda-forge-admin please rerender

@conda-forge-webservices
Copy link
Contributor

Hi! This is the friendly automated conda-forge-webservice.

I just wanted to let you know that I started rerendering the recipe in #419.

@traversaro
Copy link
Contributor Author

do you want to write a repodata patch and we can try?

Sorry, I just saw it now, but as you already handled it yourself, thanks!

@traversaro
Copy link
Contributor Author

conda create -n test "opencv==4.10.*" "python==3.12.*" now works fine, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants