Traceback (most recent call last):
File "/home/pi/Grove_Base_Kit_Sketchbook/Tutorial_06-Hello_LCD/Hello_LCD.py", line 5, in <module>
from grove.display.jhd1802 import JHD1802
File "/usr/local/lib/python3.9/dist-packages/grove/display/__init__.py", line 1, in <module>
from upm.pyupm_lcd import SSD1306, SSD1308, SSD1327
ModuleNotFoundError: No module named 'upm'
And i have not found a solution to downloading the upm module ?, i have tried:
sudo apt install python3-mraa python3-upm using what was shown here : github > /Seeed-Studio/grove.py/blob/master/doc/INSTALL.md#install-dependencies but that rpoduce this error: E: Unable to locate package python3-mraa E: Unable to locate package python3-upm
Did you find solution to this problem. M facing same issue. I have now installed 32 bit of raspberry pi os now but still getting same problem. MRAA and UPM not getting installed.
I get following messages:
pi@raspberrypi:~ $ sudo add-apt-repository ppa:mraa/mraa
Traceback (most recent call last):
File "/usr/bin/add-apt-repository", line 95, in <module>
sp = SoftwareProperties(options=options)
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 109, in __init__
self.reload_sourceslist()
File "/usr/lib/python3/dist-packages/softwareproperties/SoftwareProperties.py", line 599, in reload_sourceslist
self.distro.get_sources(self.sourceslist)
File "/usr/lib/python3/dist-packages/aptsources/distro.py", line 91, in get_sources
raise NoDistroTemplateException(
aptsources.distro.NoDistroTemplateException: Error: could not find a distribution template for Raspbian/bullseye
When i run following command referring the url: link
I get following message on console:
pi@raspberrypi:~ $ sudo apt install python3-mraa python3-upm
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python3-mraa : Depends: libjson-c3 (>= 0.10) but it is not installable
Depends: libmraa1 but it is not going to be installed
Depends: libpython3.5 (>= 3.5.0~b1) but it is not installable
python3-upm : Depends: libmraa1 but it is not going to be installed
Depends: libpython3.5 (>= 3.5.0~b1) but it is not installable
Depends: libupm1 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Figured this out but not sure how long this workaround will last.
(This is if you literally just imaged the sd card of your pi with bullseye image which came out 12-05-23.) Step 1
Run the grove.py installer file (yes it fails dont care I just want the seeed deb source added.
If you want to add it manually
echo "deb https://seeed-studio.github.io/pi_repo/ stretch main" | sudo tee -a /etc/apt/sources.list
Step 2
Add the old buster repo back into apt sources (this is the part I don’t know how long it will last) I’m assuming raspbian doesn’t archive old repo sources. Atleast I couldn’t find stretch.
echo "deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi" | sudo tee -a /etc/apt/sources.list