-
Notifications
You must be signed in to change notification settings - Fork 893
opencv-python-headless depends on windows media feature pack after 4.7 update #771
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
Comments
@matteoaletti Thanks for the issue report. I have not found explicit changes in setup.py or build scripts that manage Media Foundation dependency. Looks like it's some side effect of Python 3.6 -> 3.7 or Github actions environment update. Could you list other container specific issues here. I want to discuss the next steps with colleagues. |
Thank you for your answer. I am not sure that there are any other container specific issues. We are using a conda environment with python 3.9 inside a windows docker container (windows/servercore:ltsc2019) and when we use the opencv-python-headless 4.6.0.66 we can import cv2. Same environment with version 4.7.0.68 and our tests produces an error during the import of cv2:
We tried to debug it ourselves and found out the new DLL dependencies mentioned above. For now, we simply pinned the version to the latest 4.6. |
@asmorkalov Need to check G-API module and/or obsensor feature. |
Any news to resolve this issue after 4.8 version? I encountered this issue when import cv2 in aws codebuild docker container image (windows server 2019) . I tried 4.6 4.7 4.8 but only 4.6 works. |
Decided to switch to plugins for videoio in headless package on Windows. In case of good luck, it'll be part of 4.9.0.x. |
@asmorkalov I see that a new release of opencv is out, was this switch included in 4.9.0.80 ? I still see the same dependencies (and errors) as for versions 4.7 and 4.8 |
Likely duplicated by #856 (although that issue is more popular) |
The current
Importing the However, the Media Foundation libraries are present in the |
Related ticket: #263 |
Expected behaviour
On previous version (4.6.0.66) of opencv-python-headless, the package did not depend on windows media feature pack.
Actual behaviour
More recently (4.7.0.68) of opencv-python-headless, the package depends on windows media feature pack that is not available in windows docker image (windows/servercore:ltsc2019) .
Steps to reproduce
I have installed opencv-python-headless in a conda python 3.9 environment with
The text was updated successfully, but these errors were encountered: