Skip to content

Error: No SMBus #25

@jaknz

Description

@jaknz

Hi,
I have an up-to-date RPi3 and have plugged my PiGlow into it. I ran the install script, which didn't throw any errors, but the example scripts all fail to run. Looks like maybe an incompatibility between Python 2/3?

$ ./cycle.py 
0
Traceback (most recent call last):
  File "/home/pi/Pimoroni/piglow/examples/cycle.py", line 14, in <module>
    piglow.show()
  File "/usr/lib/python3/dist-packages/piglow.py", line 126, in show
    setup()
  File "/usr/lib/python3/dist-packages/piglow.py", line 323, in setup
    import sn3218
  File "/usr/lib/python3/dist-packages/sn3218.py", line 108, in <module>
    i2c = SMBus(i2c_bus_id())
FileNotFoundError: [Errno 2] No such file or directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions