Seeed-Studio / grove.py

Python library for Seeedstudio Grove devices
MIT License
150 stars 97 forks source link

Unable to install dependencies upm and mraa on Raspberry Pi Bullseye #53

Closed Patrick257 closed 2 years ago

Patrick257 commented 2 years ago

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.
IcingTomato commented 2 years ago

Because Python2 is obsolete and APT repository does not provide python-pip, so the Raspberry Pi OS releases which after 10 (Buster) 2020-08-20 cannot use Online install command. We also recommend using Python3 to all the users and developers.

You can use these commands down below.

sudo apt install git build-essential -y
git clone https://github.com/Seeed-Studio/grove.py
cd grove.py
sudo -H python3 -m pip install .

So that you don't need to install mraa and upm packages.

Patrick257 commented 2 years ago

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'
IcingTomato commented 2 years ago

This problem is serious. We have been trying to deploy the environment. Please be patient。

Patrick257 commented 2 years ago

Thank you, @IcingTomato for the follow-up and looking forward to any further feedback on how to move ahead!

lakshanthad commented 2 years ago

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.

priyankaprakasan commented 2 years ago

Hi @lakshanthad

I got the same issues listed here. May I know how can I solve this?

iakovmarkov commented 1 year ago

Why is this issue closed? The installation method is not working, the examples are not working either. What should the people who bought your stuff do?

Patrick257 commented 1 year ago

Agreed. For what is' worth: My work around was a complete new system setup with Raspian Buster. This solves that particular issue for me but it creates other issues with component that would rely on an up-to-date OS.

BasieDev commented 11 months ago

DId anyone find a fix yet? Or is this a lost cause...

iakovmarkov commented 11 months ago

I think this project is dead, but the crooks at Seeed continue to sell the hardware as if it everything was up-to-date. Disgraceful.

I am suggesting newcomers to stay away from the products and look for an alternative.

Macgyverops commented 11 months ago

The problem is with newcomers don't see this on Amazon or Ebay or wherever they buy it.

Macgyverops commented 11 months ago

I played around with this. I found a workaround? It's a freaking horrible one but I managed to do it.

The crappy part is....I added buster back into the source list for apt. So I don't know how long this fix will last once they deprecate buster.

echo "deb http://raspbian.raspberrypi.org/raspbian/ buster main contrib non-free rpi" >> /etc/apt/sources.list

After I did that retried upm apt-get install python3-upm Then mraa apt-get install python3-mraa

This assumes you've tried the install.sh for grove.py repo. Which adds its own seeeds.list apt source


pi@raspberrypi:/etc/apt/sources.list.d $ cat seeed.list
deb https://seeed-studio.github.io/pi_repo/ stretch main
Macgyverops commented 11 months ago

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

Macgyverops commented 11 months ago

IMG_2499