Integrating Grove LCD with Raspberry PI

Hi im trying to use the GROVE LCD 16X2 (White on Blue) V1.0 with a raspberry pi 3 B and the Grove Base Hat for Raspberry Pi. I tried using the provided hithub examples “Grove_Base_Kit_Sketchbook/Tutorial_06-Hello_LCD at master · SeeedDocument/Grove_Base_Kit_Sketchbook · GitHub” but i keep getting this error:

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:

  1. sudo apt update and upgrade
  2. “git clone GitHub - Seeed-Studio/grove.py: Python library for Seeedstudio Grove devices” and installed it into python 3
  3. Tried third party library to no avail
  4. 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

Am i doing something wrong ? what am i missing

Hi, have you tried the code for Raspberry pi given here?

I am facing exactly same error on Raspberry Pi 4 with 8GB RAM and OS raspios-bullseye-arm64.img.xz

Can anyone confirm if the SeeedStudio development team has tested their library with latest raspberry pi hardware and 64 bit OS ?

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.