Problems whit the installation of grove in raspberry pi

Hello, I’m in the forum because I can’t install grove on a Raspberry Pi 400 and on a 3B.
I’m working with Grove Base Kit for Raspberry Pi, and I’m using bookworm (Legacy, 32-bit) of raspberry pi OS version 2026-06-18.
This link ´ Grove Base Kit for Raspberry Pi | Seeed Studio Wiki is the official brand guide. And the last time it was updated was in 2023, and the guide uses raspbian stretch that its last update was in 2019 and in 2019 the raspberry pi 400 had not yet been released, but the 3B yes was released.
Well, let’s get to the point, if you follow the guide, it said to install grove curl -sL https://github.com/Seeed-Studio/grove.py/raw/master/install.sh | sudo bash -s - witout any virtual environment, in (GETTING STARTED - Base Hat Configuration - 3. One-click installation, quick start, what ever you call, with the single command below.) But it gives error and with a virtual environment also gives error. And then, I looked a forum that said to install grove from a different form (pip3 install grove.py) and with a virtual environment, and works, grove.pyhave a good installation.
But later ( Grove – LED button demo - Step 3:run the program)sudo chmod +x example.py sudo ./example.py the LED-red button does not work despite hitting the button and on the screen of the terminal nothing appears in the raspberry pi 400, and in the 3B the LED also don’t work, and on the screen it only appears turn off LED without doing anything.

I need help, and please, update the grove guide.
Thanks!!!