aaronberge
Posts: 2
Joined: Wed Feb 17, 2016 8:03 pm

cannot access ‘/sys/module/i2c_bcm2708/

Wed Feb 17, 2016 8:19 pm

I'm trying to do the raspberry pi guitar project from the raspberry pi made simple magazine. When I try to run guitar.py, I get this error code:

[email protected]:~/Adafruit_Python_MPR121/LXF_BananaGuitar $ ./guitar.py
chmod: cannot access ‘/sys/module/i2c_bcm2708/parameters/combined’: No such file or directory
Traceback (most recent call last):
File "./guitar.py", line 38, in <module>
if not cap.begin():
File "build/bdist.linux-armv7l/egg/Adafruit_MPR121/MPR121.py", line 90, in begin
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 81, in require_repeated_start
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'chmod 666 /sys/module/i2c_bcm2708/parameters/combined' returned non-zero exit status 1

Any help would be appreciated.

User avatar
kolban
Posts: 143
Joined: Fri Dec 04, 2015 1:45 am
Location: Texas, USA

Re: cannot access ‘/sys/module/i2c_bcm2708/

Thu Feb 18, 2016 5:37 am

It may be because the i2c modules have not been loaded. Try running:

sudo modprobe i2c_bcm2708

and then re-run your application and see if it now works.
FREE book on Raspberry Pi usage and programming

https://leanpub.com/pi

aaronberge
Posts: 2
Joined: Wed Feb 17, 2016 8:03 pm

Re: cannot access ‘/sys/module/i2c_bcm2708/

Mon Feb 22, 2016 8:14 pm

Thank you for the reply!

I followed your instructions and got this new error message:

[email protected]:~/Adafruit_Python_MPR121/LXF_BananaGuitar $ sudo modprobe i2c_bcm2708
[email protected]:~/Adafruit_Python_MPR121/LXF_BananaGuitar $ ./guitar.py
chmod: changing permissions of ‘/sys/module/i2c_bcm2708/parameters/combined’: Operation not permitted
Traceback (most recent call last):
File "./guitar.py", line 38, in <module>
if not cap.begin():
File "build/bdist.linux-armv7l/egg/Adafruit_MPR121/MPR121.py", line 90, in begin
File "build/bdist.linux-armv7l/egg/Adafruit_GPIO/I2C.py", line 81, in require_repeated_start
File "/usr/lib/python2.7/subprocess.py", line 540, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command 'chmod 666 /sys/module/i2c_bcm2708/parameters/combined' returned non-zero exit status 1


Is it possible I need to change to an admin user? If so, how would I do that?

Return to “Troubleshooting”