dispAM.py
To launch script
python3 dispAM.py
No module named PIL Error
sudo apt-get install python3-pip
to install python3 package manger
pip3 --version
pip 18.1 from /usr/lib/python3/dist-packages/pip (python 3.7)
sudo pip3 install pil
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting pil
Could not find a version that satisfies the requirement pil (from versions: )
No matching distribution found for pil
OK
PIL is old use Pillow NOT PIL
python3 -m pip install --upgrade Pillow
Looking in indexes: https://pypi.org/simple, https://www.piwheels.org/simple
Collecting Pillow
Downloading https://www.piwheels.org/simple/pillow/Pillow-8.4.0-cp37-cp37m-linux_armv7l.whl (1.3MB)
100% |████████████████████████████████| 1.3MB 223kB/s
Installing collected packages: Pillow
Successfully installed Pillow-8.4.0
Now I don't get error when I run python but I also don't see image. Need to test from es.
No it displays nothing. I can't figure out what the default image viewer is so installing feh
sudo apt-get install feh
feh is crap doesn't work.
needs X-windows.
Use fbi.
The following python launches image for 10 seconds. Next I need to use evdev for joystick input
pip3 install evdev