no_SMBus

285 views
Skip to first unread message

Sven Turnau

unread,
Nov 3, 2013, 10:11:32 AM11/3/13
to quick2wi...@googlegroups.com
HELP needed! Such an error.
--------------------------------------------------------
    from smbus import SMBus
  File "/home/pi/i2clibraries/smbus.py", line 4, in <module>
    bus = smbus.SMBus(1)
AttributeError: 'module' object has no attribute 'SMBus'
---------------------------------------------------------------------

Andrew Scheller

unread,
Nov 3, 2013, 10:29:36 AM11/3/13
to quick2wi...@googlegroups.com
Can you provide more info? How did you install the smbus library?
Where did you download it from? (it seems strange to have it in
/home/pi/i2clibraries/ )
http://www.raspberrypi-spy.co.uk/2013/07/how-to-use-a-mcp23017-i2c-port-expander-with-the-raspberry-pi-part-1/
explains the "normal" way of installing smbus.

Not sure why you're using smbus rather than the quick2wire-api?

Andrew
> --
> You received this message because you are subscribed to the Google Groups
> "Quick2Wire Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to quick2wire-use...@googlegroups.com.
> Visit this group at http://groups.google.com/group/quick2wire-users.
> For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages