fieldOfView / WLED-video

A tool to stream video to WLED matrix displays
MIT License
19 stars 3 forks source link

ImportError: cannot import name 'logcurr_vidgear_ver' #2

Closed gavanfantom closed 4 months ago

gavanfantom commented 6 months ago
python3 wledvideo.py --host xxx.xxx.xxx.xxx file.mp4
Traceback (most recent call last):
  File "wledvideo.py", line 10, in <module>
    import src.loopablecamgear as loopablecamgear
  File "/path/to/WLED-video/src/loopablecamgear.py", line 29, in <module>
    from vidgear.gears.helper import (
ImportError: cannot import name 'logcurr_vidgear_ver'

This is on a rather old Ubuntu Studio (18.04) with Python3, and after loading the specified requirements from requirements.txt with pip.

fieldOfView commented 6 months ago

Thanks for the issue (and for letting me play with your display). I'll look into it.

fieldOfView commented 6 months ago

What is the output of pip3 list | grep vidgear?

If the vidgear module version is older than 0.3.2, please try pip3 install --upgrade vidgear

gavanfantom commented 6 months ago

Vidgear is 0.2.4 is what I have. Trying to ugprade it with pip yields the same version.

It seems that vidgear 0.3.2 requires Python >= 3.8. I have Python 3.6.9. Perhaps that's the problem?

fieldOfView commented 6 months ago

That's probably it. Python 3.6 has reached EOL Dec 2021 and is no longer receiving security updates.