-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
opencv-python-headless wrong version #408
Comments
I guess we have been using How did you come to "expect" the Did you pip freeze from a conda+pip environment then try to recreate with conda only? Unfortunately that is expected to be quite buggy and not always compatible. I want to say "please just remove the .80" in your freeze results. |
As an addendum, the main concern we are trying to avoid is users having The "best practices" are:
Unfortunately, in such a case, With our latest package, pip will think, no matter what version is installed, that both |
I am using conda+poetry to create my working environment. Conda is used to install the most important packages ( |
If you are on Linux, all the packages you listed can be installed by conda forge. I'm happy to give pointers but I need more information like a full log of all the transactions that conda pip and petty are doing and the conda info and conda list information requested in the original issue template. Looking at the albumentions source nothing indicates that it is pinning to the .90 version to me. |
You also have the default channels enabled. Please consider disabling the default channels and only enabling the conda-forge channel. That is all we support. |
Just an FYI: the fact that you have:
in your conda info scares me. I'm happy to help troubleshoot this further, but when I run
i get both To further troubleshoot, I would need the full output of
as well as all the exact commands you use to create your environment starting with:
Truthfully, the fact that you listed If this is the case, your questions are best directed to Anaconda + Pytorch. XREF: |
Do you have a way to reproduce this easily? I am encountering a similar problem, and I would like to understand how to properly deal with this. |
To fix this, I manually changed |
@Alek96 can you show us an example using poetry that is affected by this? I encountered something similar in huggingface/lerobot#145 and just using 4.9.0 instead of 4.9.0.80 as constraints seems to be working fine. |
Sure, this is my repository: https://github.com/Alek96/ultrasound_fetal_images I can create a sample project with fewer dependencies if you want. |
Thanks! Just to understand, can't you just fix the issue by changing the constraint in https://github.com/Alek96/ultrasound_fetal_images/blob/1be42b5a5f349c6926f910d3639714350de6ef9c/pyproject.toml#L25C1-L25C37 to be I know that may sound "fix on your side a problem on the conda packaging side", but the situation with the opencv python package is a bit unusual. Basically the Furthermore, the tweak portion of the version is used by opencv version to indicate if there was an updated version of the wheel (a bit like we have build numbers in conda), from https://pypi.org/project/opencv-python-headless/#history see for example |
It is a bit unorthodox, but as I see this problem more and more (see also https://github.com/search?q=%224.10.0.84%22&type=code), I wonder if a possible solution (at least for inequality constraints) without any additional maintenance burden is just to declare The only other alternative that I can think of is to design the CI to fail every time the version is raised (to avoid that new version are accidentally merge), and require a mantainer to manually change the |
Solution to issue cannot be found in the documentation.
Issue
After installing
opencv
package, dependedopencv-python-headless
library was installed as well.Which is correct, but the version of
opencv-python-headless
library should be4.9.0.80
, not4.9.0
.As version
4.9.0
does not exist.https://pypi.org/project/opencv-python-headless/#history
Installed packages
# Name Version Build Channel opencv 4.9.0 qt6_py310h681cb09_612 conda-forge
Environment info
The text was updated successfully, but these errors were encountered: