letmaik / pyvirtualcam

🎥 Send frames to a virtual camera from Python
GNU General Public License v2.0
471 stars 50 forks source link

CI: fix macOS test failure due to OpenCV update #60

Closed letmaik closed 3 years ago

letmaik commented 3 years ago

Working: https://github.com/letmaik/pyvirtualcam/runs/2486120864?check_suite_focus=true

Broken: https://github.com/letmaik/pyvirtualcam/runs/2559861604?check_suite_focus=true

OpenCV: not authorized to capture video (status 0), requesting...
OpenCV: camera failed to properly initialize!

The opencv-python versions between both builds are 4.5.1.48 and 4.5.2.52.

This PR temporarily pins OpenCV to the old version. I opened an issue here: https://github.com/opencv/opencv/issues/20094

EDIT: See https://github.com/actions/virtual-environments/issues/3396 for the underlying issue in GitHub Actions. Using the old opencv-python version buys some time but ultimately this issue has to be resolved in Actions itself.