Error messages when trying to run examples for the piglow


#1

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 legs.py
Traceback (most recent call last):
File “legs.py”, line 5, in
import piglow
File “/usr/lib/python2.7/dist-packages/piglow.py”, line 6, in
import sn3218
File “/usr/lib/python2.7/dist-packages/sn3218.py”, 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.


#2

curl -sS https://get.pimoroni.com/piglow | bash
From here, https://github.com/pimoroni/piglow


#3

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


#4

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


Anyway, enjoy. =)


#5

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.


#6

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. ;)