Page 1 of 1

smbus

Posted: Wed Feb 26, 2014 4:53 pm
by RCobbTX
I really been enjoying the raspberry. Interfacing with sensors easily is great. RPIO was tough to get loaded and running but does work well. However, get the i2c working is beyond me. Tried several "approached to get the module(s)? loaded but so far no luck.
It appears the "smbus" module is not being installed. "from smbus import SMBus" throws a runtime error -not found- Yes, I do set supper user status for the file. ( 'sudo' is one of my least favorite 4 letter words).
If it loads properly where will I find it?

Re: smbus

Posted: Thu Feb 27, 2014 12:29 am
by techpaul
You have installed python-smbus?

From memory but do a check elsewhere

Code: Select all

audo apt-get install python-smbus
Only currently installs for Python2

Re: smbus

Posted: Thu Feb 27, 2014 4:19 am
by RCobbTX
I tried the code you suggested - several times - NG. Also tried working with the zip file 'smbus-cliff-0.1.tar.gz' also NoGo.

Re: smbus

Posted: Thu Feb 27, 2014 6:51 am
by Hove
Complete instructions here:

http://skpang.co.uk/blog/archives/575