python-smbus for python3 Arm

Asked by Greg Horler

Hi, I wish to use the Adafruit_BBIO python library to achieve IO on my Beaglebone Black, that is running Ubuntu13.04, Linux arm 3.8.13-bone21. I am programming in Python 3. The BBIO library requires the python-smbus module, but from the Ubuntu packages site this only works with python2.7? Is this correct?

IS there a python3 version of python-smbus? If not, is there one planned OR how do I create one?

The BBB is and will continue to gather a large following, also Python are promoting Python 3 now 3.3; the absence of a python-smbus module for python3 is a big problem.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu i2c-tools Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

You could create a bug report with a request to modify python-smbus that it works also with python3. A quick search showed that Debian seems to have the same Python2.7 dependency. So it might take some time until it is done.

In http://comments.gmane.org/gmane.linux.drivers.i2c/11290 someone describes what he did when facing a similar problem.

Can you help with this problem?

Provide an answer of your own, or ask Greg Horler for more information if necessary.

To post a message you must log in.