Open matteoaletti opened 1 year ago
@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:
ImportError: DLL load failed while importing cv2: The specified module could not be found
We tried to debug it ourselves and found out the new DLL dependencies mentioned above. Everything works fine outside the container in a normal windows OS where those libraries are available.
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 https://github.com/opencv/opencv-python/issues/856 (although that issue is more popular)
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