GrovePi no longer detected after last update

I’ve been using GrovePi for about a month.
Worked fine in conjunction with relays, temp sensors, etc.
Last week i ran a “sudo apt-get update” “sudo apt-get upgrade”.
After the update, no matter what script i’m trying to run i get this:

pi@raspberrypi ~ $ sudo python temp.py
Traceback (most recent call last):
File “temp.py”, line 2, in <module>
import grovepi
File “build/bdist.linux-armv6l/egg/grovepi.py”, line 22, in <module>
IOError: [Errno 2] No such file or directory

The image i was using was the NOOBS one with the GrovePi libraries installed. I’ve tried reinstalling from scratch, same result.

Next i’ve tried with the Dexterindustries image, if i leave it as it comes, everything works fine. If i update, i get the same issue.

If, after updating, i run i2cdetect -y 1, i get:

Error: Could not open file /dev/i2c-1’ or/dev/i2c/1’: No such file or directory

Any idea on how i could fix this?

Hey,
Looks like the update that you are doing somehow disables the I2C. Can you run the setup script here: https://github.com/DexterInd/GrovePi/blob/master/Script/install.sh. First make it executable: sudo chmod +x install.sh then run it ./install.sh.

Let us know if this helps.

-Karan

Recent upgrade to kernel 3.18?

You need to add these lines to your /boot/config.txt and reboot:
dtparam=i2c1=on
dtparam=i2c_arm=on

More info:

http://www.raspberrypi.org/forums/viewtopic.php?p=675658#p675658

Hey Mike, do we need to update our install script for this then?

Hi Karan,

thanks for the quick response.

Tried the script on the existing install, no change.

So i did the following:
1.clean install using the 2014.07.30_Dexter_Industries_wheezy image.

2.ran sudo i2cdetect -y 1 , output ok, grove was there.
3.sudo apt-get update
4.sudo apt-get upgrade (output attached)
5.ran sudo i2cdetect -y 1 , output ok, grove was there.
6.reboot
7.5.ran sudo i2cdetect -y 1 , got the error
Error: Could not open file /dev/i2c-1’ or/dev/i2c/1’: No such file or directory

8.ran the script (output attached)
9.ran sudo i2cdetect -y 1 , got the error
Error: Could not open file /dev/i2c-1’ or/dev/i2c/1’: No such file or directory

Worked!
Thanks, mcauser!
Saw your reply after posting the previous one.