Closed abhiTronix closed 5 months ago
As a workaround, downgrading numpy
to a version <2.0.0
works for now. If you want to use simplejpeg
, you can downgrade numpy
before installing vidgear
:
# Downgrade numpy to <2.0.0
pip install "numpy<2.0.0"
# Install vidgear core
pip install vidgear[core]
# Or install vidgear asyncio
pip install vidgear[asyncio]
This issue is fixed with simplejpeg
version 1.74
.
Description
The backend
simplejpeg
library used in our WebGear and NetGear APIs primarily for frame compression, is not compatible with the newer versions ofnumpy
(>= 2.0.0). The recent changes innumpy
have introduced modifications that cause issues with thesimplejpeg
Turbo C API.Issue Checklist
Expected behaviour
import simplejpeg
should work out of the boxActual behaviour
Currently, importing
simplejpeg
throws the following error:Steps to reproduce
numpy>=2.0.0
andsimplejpeg
import simplejpeg
Terminal log output
Python Code(Optional)
No response
VidGear Version
0.3.3
Python version
any
OpenCV version
latest
Operating System version
any
Any other Relevant Information?
https://github.com/jfolz/simplejpeg/issues/2