vlachoudis / bCNC

GRBL CNC command sender, autoleveler and g-code editor
GNU General Public License v2.0
1.56k stars 532 forks source link

camera doesn't work in python3 #1648

Open bvarner opened 2 years ago

bvarner commented 2 years ago

I have a small USB camera, works fine with opencv, works fine with V4L2.

When I run bCNC on my machine with a python2 install, the camera works. When I run bCNC on the same machine with a python3 install, the camera does not work.

Harvie commented 2 years ago

Do you have opencv module installed for python3 ? You might only have it installed in python2.

jsiddall commented 2 years ago

IIRC my camera started working when I installed some PIL OS packages. Ex:

sudo apt-get install python3-tk python-pip python3-pil python3-pil.imagetk