Open geerlingguy opened 3 months ago
I tried this on a Pi Zero 2 with Pi OS Lite 12 and a Pi Global Shutter camera attached. Communication to a Windows PC through the USB (RNDIS ethernet gadget) rather than WiFi. The sequence that worked for me was:
$ sudo apt install git $ sudo apt install python3-flask $ sudo apt install python3-pillow $ sudo apt install python3-picamera2
(I also could not get it to work if installing via pip.) After that, the git clone and running app.py works fine (so far).
Describe the bug
When I follow the official README, it assumes I'm running full desktop Pi OS, and some things aren't present on the 'Lite' version which require installation before the WebUI will run.
To Reproduce
Expected behavior
Everything works.
Additional context
See: https://github.com/geerlingguy/3d-printing/issues/9#issuecomment-2155786176
A few things I had to do to get things working:
git
andpython3-pip
python3-picamera2 --no-install-recommends
Flask
andPillow
Note that I dealt with the whole 'externally managed' thing by nuking the
EXTERNALLY-MANAGED
file so I could just install things on system python. I tried using avenv
in the project inside which I tried installing all the dependencies, but it complained aboutpicamera2
not being available, even though I had the system level packagepython3-picamera2
installed... So I just deleted the virtual Python environment and stomped all over my system install :)