Error messages when trying to run examples for the piglow


I have the piglow installed on my new Pi Zero and I have downloaded the PiGlow python library.
i tried each example in order and each one gave more or less the same error., it is just the file name which changes:

pi@raspberrypi:~/Downloads/piglow-master/examples $ python
Traceback (most recent call last):
File “”, line 5, in
import piglow
File “/usr/lib/python2.7/dist-packages/”, line 6, in
import sn3218
File “/usr/lib/python2.7/dist-packages/”, line 108, in
i2c = SMBus(i2c_bus_id())
IOError: [Errno 2] No such file or directory

I thought that there was a link on the piglow page where you could curl the files, but not any more.


curl -sS | bash
From here,


Thanks, that was what I was looking for and has done the trick. No python error messages now.


There is a link to that GitHub page on the main product page, by the way. Look for PiGlow Python Library

Anyway, enjoy. =)


Aah, so there is, Doh!
I didn’t scroll down to look for it, as I’m sure it was on the piglow product page before. Then when it wasn’t there I assumed , wrongly, that it wasn’t anywhere.


Some of those links are easy to miss. These days I hardly ever bookmark the product page, I bookmark the GitHub page instead. Its where all the real info is, the stuff you need to make it work. Anyway, now you can get going with the fun part. ;)