I managed to find a way to finalize the installation. If I run the install.sh now, it gives me the following message.
pi@raspberrypi:~/Desktop/GrovePi/Script $ sudo ./install.sh
Special thanks to Joe Sanford at Tufts University. This script was derived from his work. Thank you Joe!
Adding I2C-dev and SPI-dev in /etc/modules . . .
I2C-dev already present
i2c-bcm2708 already present
spi-dev already present
Making I2C changes in /boot/config.txt . . .
i2c1 already present
i2c_arm already present
The user `pi' is already a member of `i2c'.
Installing avrdude for the GrovePi
/home/pi/Dexter/lib/AVRDUDE Found!
avrdude 5.10 Found
done with AVRDUDE for the GrovePi
But I think grovepi library is not installed properly. Because whenever I try to run a .py file in the example folder, it gives the following message.
pi@raspberrypi:~/Desktop/GrovePi/Software/Python $ sudo python grove_buzzer.py
Traceback (most recent call last):
File "grove_buzzer.py", line 37, in <module>
import grovepi
File "/home/pi/Desktop/GrovePi/Software/Python/grovepi.py", line 54, in <module>
import di_i2c
File "build/bdist.linux-armv7l/egg/di_i2c.py", line 27, in <module>
ImportError: No module named periphery
or using python3
pi@raspberrypi:~/Desktop/GrovePi/Software/Python $ sudo python3 grove_buzzer.py
Traceback (most recent call last):
File "grove_buzzer.py", line 37, in <module>
import grovepi
File "/home/pi/Desktop/GrovePi/Software/Python/grovepi.py", line 54, in <module>
import di_i2c
ImportError: No module named 'di_i2c'
So it appears that I need a āperipheryā module in python, so I didā¦
pi@raspberrypi:~/Desktop/GrovePi/Software/Python $ sudo pip install periphery
Collecting periphery
Could not find a version that satisfies the requirement periphery (from versions: )
No matching distribution found for periphery
pi@raspberrypi:~/Desktop/GrovePi/Software/Python $ sudo pip3 install periphery
Collecting periphery
Could not find a version that satisfies the requirement periphery (from versions: )
No matching distribution found for periphery
Last thing I tried is to reinstall grovepi library, but it seems it is already there just fine.
pi@raspberrypi:~/Desktop/GrovePi/Software/Python $ sudo pip3 install grovepi
Requirement already satisfied: grovepi in /usr/local/lib/python3.5/dist-packages/grovepi-1.4.1-py3.5.egg
Requirement already satisfied: RPi.GPIO in /usr/lib/python3/dist-packages (from grovepi)
Requirement already satisfied: numpy in /usr/lib/python3/dist-packages (from grovepi)
Requirement already satisfied: pyserial in /usr/lib/python3/dist-packages (from grovepi)
Requirement already satisfied: scipy in /usr/lib/python3/dist-packages (from grovepi)
Collecting smbus-cffi (from grovepi)
Downloading https://www.piwheels.org/simple/smbus-cffi/smbus_cffi-0.5.1-cp35-cp35m-linux_armv7l.whl
Requirement already satisfied: cffi>=1.1.0 in /usr/local/lib/python3.5/dist-packages (from smbus-cffi->grovepi)
Requirement already satisfied: pycparser in /usr/local/lib/python3.5/dist-packages (from cffi>=1.1.0->smbus-cffi->grovepi)
Installing collected packages: smbus-cffi
Successfully installed smbus-cffi-0.5.1
This is my story. lolā¦