steve
Posts: 6
Joined: Tue May 28, 2013 1:53 pm

Pidora - No python-smbus?

Tue May 28, 2013 2:10 pm

I am trying to talk to an AVR over I2C.

I have programmed the AVR and it shows up on the I2C bus using i2cdetect. It seems like it is working. I'd now like to try to communicate using I2C with Python. All the tutorials for this say to install the python-smbus package. Unfortunately this package doesn't seem to be available in the repository for either Fedora ARM Respin, or the new Pidora.

Is there a Fedora-specific tutorial anywhere for I2C through Python? I've been Googling for the entire bank holiday weekend and simply can't get it working.

Thanks!

steve
Posts: 6
Joined: Tue May 28, 2013 1:53 pm

Re: Pidora - No python-smbus?

Sun Jun 02, 2013 7:49 pm

Anyone?

agreene
Posts: 39
Joined: Fri Sep 14, 2012 6:47 pm

Re: Pidora - No python-smbus?

Mon Jun 03, 2013 2:48 pm

steve wrote:I am trying to talk to an AVR over I2C.

I have programmed the AVR and it shows up on the I2C bus using i2cdetect. It seems like it is working. I'd now like to try to communicate using I2C with Python. All the tutorials for this say to install the python-smbus package. Unfortunately this package doesn't seem to be available in the repository for either Fedora ARM Respin, or the new Pidora.

Is there a Fedora-specific tutorial anywhere for I2C through Python? I've been Googling for the entire bank holiday weekend and simply can't get it working.

Thanks!
I believe that module is provide by the package i2c-tools, try install that via yum

steve
Posts: 6
Joined: Tue May 28, 2013 1:53 pm

Re: Pidora - No python-smbus?

Tue Jun 04, 2013 7:28 am

agreene wrote:I believe that module is provide by the package i2c-tools, try install that via yum
Thanks.

No, that was one of the first things I installed in order to be able to run i2cdetect.

Doing,

Code: Select all

# yum provides "*/*smbus*"
only finds kernel-related packages.

The Python-bindings for smbus seem to be missing.

cassioeskelsen
Posts: 1
Joined: Fri Jul 19, 2013 11:36 pm

Re: Pidora - No python-smbus?

Fri Jul 19, 2013 11:37 pm

sudo apt-get install python-smbus

steve
Posts: 6
Joined: Tue May 28, 2013 1:53 pm

Re: Pidora - No python-smbus?

Sat Jul 20, 2013 9:51 am

cassioeskelsen wrote:sudo apt-get install python-smbus
Gee. Thanks.

Firstly, this is the Pidora section of the forum. The Fedora package manager is "yum" and not "apt-get".

Secondly, as I said in the OP, there is no package in Pidora called python-smbus. If there were, this thread wouldn't exist.

Given that you appear to have registered specifically to post on this thread, I would have thought you would have at least taken the trouble to read it all the way through. You appear to have read the thread title and none of the contents.

Return to “Pidora / Fedora”