grove.py icon indicating copy to clipboard operation
grove.py copied to clipboard

Support for Raspberry Pi OS 12 (bookworm)

Open tuxgasy opened this issue 1 year ago • 3 comments

Hello,

The install script don't work with Bookworm. Is there any solution ?

Thanks.

tuxgasy avatar May 03 '24 14:05 tuxgasy

I have the same issue, too. No one maintain this reposity anymore? How can i solve this problem in latest Raspberry Pi OS?

Henry-baobao avatar May 15 '24 03:05 Henry-baobao

@tuxgasy Hi, did you fix the problem?

Henry-baobao avatar May 15 '24 03:05 Henry-baobao

No. Finally, I use gpiozero directly. For the basic module (like the LED and the button), it works.

tuxgasy avatar May 16 '24 11:05 tuxgasy

after a look through the install.sh i think to fix this is a bigger rewrite / write a new install script. and after searching some more in the issues i found:

  • #70
  • #71
  • #46
  • #68
  • #53

has anybody tried the installation instructions from the wiki in a current fresh rpi os image? https://wiki.seeedstudio.com/Grove_Base_Hat_for_Raspberry_Pi/#installation

git clone https://github.com/Seeed-Studio/grove.py cd grove.py sudo pip3 install . --break-system-packages

s-light avatar Jul 09 '24 17:07 s-light

Hello,

The install script don't work with Bookworm. Is there any solution ?

Thanks. There is another issue regarding the Grove HAT compatibility with Bookworm.

Seeed updated the wiki for Raspberry Pi Model 5 using Bookworm on Fri 19 Jul24 but there is still an issue. The Grove HAT has two versions: One (STM32) uses i2c address x04 and the latter one (MM32) uses an i2c address x08. Bookworm follows the i2c standard and does not recognise i2c addresses less than x08. So you can get the Grove HAT to work in Bookworm has long as it is based on the MM12 microcontroller with an i2c address of x08. The basic problem is that Seeed do not support software after the launch date of a product - they are a 'just in time' company and focus only on new products. The Grove HAT spans many generations of OS and is the Grove python library is incompatible with the latest version of the OS (bookworm).

Another issue is Seeed Studio's poor use of "break-system packages". This is very crude and should not be used under Bookworm. It would have been better if Seeed Studio used a virtual env for installing the Grove python framework but the reference.

dsrc12 avatar Jul 23 '24 04:07 dsrc12

Anyone with this issue, could you try out my Pull request #76. It removed support for three grove modules but the code should run. If the install doesn't work, can you post the error there or here so I can look at it. I tried the install on a Pi 4 and it succeed (not without warnings thought), probably thanks to PR #74.

quietCoder500 avatar Aug 01 '24 14:08 quietCoder500

In this pull request #77 , the UPM and MARR libraries have been replaced, and the relevant Grove tests have been passed in the Bookworm.

is-qian avatar Aug 20 '24 01:08 is-qian