I have never had any problems installing SW for previous Pimoroni products but I can't get my latest purchase (1.3" SPI Colour LCD display) to work on my new Raspberry Pi 400. I believe I have followed all the instructions given and get positive confirmation from the install process but when I try to run any of the examples I get a ModuleNotFoundError error. Since this is not a new product I expect I must be doing something wrong. After multiple tries and resets, an example session is listed below.
Any ideas gratefully received.
pi@raspberrypi:~ $ sudo apt-get update
Hit:1 Index of /debian buster InRelease
Hit:2 Index of /raspbian buster InRelease
Reading package lists… Done
pi@raspberrypi:~ $ sudo apt-get install python-rpi.gpio python-spidev python-pip python-pil python-numpy
Reading package lists… Done
Building dependency tree
Reading state information… Done
python-numpy is already the newest version (1:1.16.2-1).
python-pil is already the newest version (5.4.1-2+deb10u2).
python-pip is already the newest version (18.1-5+rpt1).
python-rpi.gpio is already the newest version (0.7.0-0.1~bpo10+1).
python-spidev is already the newest version (20190221~182651-1).
The following packages were automatically installed and are no longer required:
libexiv2-14 libgfortran3 libgit2-27 libgmime-2.6-0 libhttp-parser2.8
libmbedcrypto3 libmbedtls12 libmbedx509-0 libqwt-qt5-6 libssl1.0.2
ruby-activesupport ruby-afm ruby-ascii85 ruby-atomic ruby-coderay
ruby-concurrent ruby-ffi ruby-hamster ruby-hashery ruby-i18n ruby-kramdown
ruby-memoist ruby-multi-json ruby-oj ruby-pdf-core ruby-pdf-reader
ruby-prawn ruby-prawn-table ruby-rc4 ruby-rouge ruby-rugged ruby-stringex
ruby-thread-safe ruby-ttfunk ruby-tzinfo ruby-wavefile sonic-pi-samples
sonic-pi-server uuid-dev
Use ‘sudo apt autoremove’ to remove them.
0 upgraded, 0 newly installed, 0 to remove and 8 not upgraded.
pi@raspberrypi:~ $ sudo pip install st7789
Looking in indexes: Simple index, piwheels - Simple index
Requirement already satisfied: st7789 in /usr/local/lib/python2.7/dist-packages (0.0.2)
pi@raspberrypi:~ $
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Python 3.7.3 (/usr/bin/python3)
%Run shapes.py
Traceback (most recent call last):
File “/home/pi/Pimoroni/st7789-python-master/examples/shapes.py”, line 25, in
import ST7789
ModuleNotFoundError: No module named ‘ST7789’
%Run gif.py
Traceback (most recent call last):
File “/home/pi/Pimoroni/st7789-python-master/examples/gif.py”, line 22, in
import ST7789
ModuleNotFoundError: No module named ‘ST7789’
%cd /home/pi/Pimoroni/st7789-python-master/library/ST7789
%Run init.py
%cd /home/pi/Pimoroni/st7789-python-master/library
%Run setup.py
────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Python 3.7.3 (/usr/bin/python3)
%cd /home/pi/Pimoroni/st7789-python-master/examples
%Run image.py
Traceback (most recent call last):
File “/home/pi/Pimoroni/st7789-python-master/examples/image.py”, line 24, in
import ST7789 as ST7789
ModuleNotFoundError: No module named ‘ST7789’