RCobbTX
Posts: 10
Joined: Thu Jan 09, 2014 1:08 pm

smbus

Wed Feb 26, 2014 4:53 pm

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?

techpaul
Posts: 1512
Joined: Sat Jul 14, 2012 6:40 pm
Location: Reading, UK
Contact: Website

Re: smbus

Thu Feb 27, 2014 12:29 am

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
Just another techie on the net - For GPIO boards see http:///www.facebook.com/pcservicesreading
or http://www.pcserviceselectronics.co.uk/pi/

RCobbTX
Posts: 10
Joined: Thu Jan 09, 2014 1:08 pm

Re: smbus

Thu Feb 27, 2014 4:19 am

I tried the code you suggested - several times - NG. Also tried working with the zip file 'smbus-cliff-0.1.tar.gz' also NoGo.

User avatar
Hove
Posts: 1205
Joined: Sun Oct 21, 2012 6:55 pm
Location: Cotswolds, UK
Contact: Website

Re: smbus

Thu Feb 27, 2014 6:51 am

Complete instructions here:

http://skpang.co.uk/blog/archives/575
www.pistuffing.co.uk - Raspberry Pi and other stuffing!

Return to “Beginners”