Seeed-Studio / grove.py

Python library for Seeedstudio Grove devices
MIT License
144 stars 95 forks source link

Support for Raspberry Pi OS 12 (bookworm) #73

Open tuxgasy opened 2 months ago

tuxgasy commented 2 months ago

Hello,

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

Thanks.

Henry-baobao commented 2 months ago

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 commented 2 months ago

@tuxgasy Hi, did you fix the problem?

tuxgasy commented 2 months ago

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

s-light commented 2 weeks ago

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:

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

dsrc12 commented 4 days ago

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.