grove.py: Unable to install dependencies upm and mraa on Raspberry Pi Bullseye

Possibly related to issue #46, I can’t get the dependencies upm and mraa installed:

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.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 19 (5 by maintainers)

Most upvoted comments

It seems that mraa and upm libraries and not maintained anymore. So you cannot use mraa and upm related Grove modules. So I will close this issue for now. It can be opened later if a fix is found.

Thank you.

I tried this again from a fresh raspbian bullseye image (as of 12-05 image)

Step 1

Run the installer for grove.py (the install.sh as it adds the seeeds source list)

Step 1b

echo "deb https://seeed-studio.github.io/pi_repo/ stretch main" | sudo tee -a /etc/apt/sources.list

Step 2

Add the buster repo into sources.list echo "deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi" | sudo tee -a /etc/apt/sources.list

Step 3

update apt sudo apt-get update

Step 4

Install python3-upm sudo apt-get install python3-mraa python3-upm

Thanks!

However, if I don’t install these packages, I’m not able to run the grove demos that require those packages. E.g.:

~/grove.py/grove $ python3 grove_3_axis_compass_bmm150.py
Traceback (most recent call last):
  File "/home/pi/grove.py/grove/grove_3_axis_compass_bmm150.py", line 19, in <module>
    from upm import pyupm_bmm150 as sensorObj
ModuleNotFoundError: No module named 'upm'