Installing GrovePi Module on Raspberry Pi [SOLVED]

Finally I could fix this problem:

========================================
GrovePi has firmware version:
Traceback (most recent call last):
File “grove_script.py”, line 3, in <module>
print “GrovePi has firmware version:”, grovepi.version()
File “/home/pi/Desktop/FIRMWARE/grovepi.py”, line 218, in version
return “%s.%s.%s” % (number[1], number[2], number[3])
TypeError: ‘int’ object has no attribute ‘getitem

After spending the whole day trying to fix the GrovePi+, as soon as I ran the file grove_setup1.txt attached the card showed the version again:

pi@raspberrypi ~ $ sudo python ~/Desktop/GrovePi/Software/Python/grove_firmware_version_check.py
(‘GrovePi has firmware version:’, ‘1.2.3’)

My GrovePi+ worked yesterday but there was some errors reading sensors so I followed you suggestion to burn your own image in a new SD but it didn’t work and when I returned to my initial image the card reported the above mentioned error. I tried everything I had done before but it didn’t work until I upgraded the firmware with the new version.

Enough for today. Tomorrow I’ll check the sensors.

Toni

This is great news Toni! I’m very glad to hear that this has (hopefully) solved the problem.

When you run the grovePi on your image, have you run the install script on your image?

Yes of course,

I ran several times…

sudo python /home/pi/Desktop/GrovePi/Software/Python/setup.py install

…but it didn’t work.

That just installs python globally. How about the directions that are here:

http://www.dexterindustries.com/GrovePi/get-started-with-the-grovepi/setting-software/

In particular the part about running install.sh