After following the steps on this page. I did everything correctly and when I try to run the test.py file it says this.

Traceback (most recent call last) :
   File "test.py" , line 9, in <module>
      piglow = PiGlow()
    File "/home/pi/piglow/piglow.py" , line 30,in _init_
IOError: [Errno 2] No such file or directory

I have tried rebooting, and trying it multiple times and i pressed ls and it finds the file

  • 1
    Try tweeting Jason - twitter.com/boeeerb
    – recantha
    Dec 27, 2013 at 19:01
  • 3
    The error message is quite clear. The file /home/pi/piglow/piglow.py doesn't exists. Seems like you downloaded the file piglow.py to the wrong location.
    – Gerben
    Dec 27, 2013 at 21:49

1 Answer 1


According to your code, it's saying that /home/pi/piglow/piglow.py isn't a valid file or directory. You must not have created the file in the correct location or you didn't create it at all. Try checking your Downloads folder and see if it is in there.

  • Alternatively, the file is there with incorrect permissions.
    – Jacobm001
    Mar 17, 2016 at 15:02
  • I would have added that but in their case it seems that this is their home directory, meaning that they should have permissions to modify any file existing in the /pi folder. So unless they messed up their own permissions (which I can highly doubt), this file should be completely accessible. @Jacobm001
    – Dylan
    Mar 17, 2016 at 15:05
  • If this was U&L I'd agree with you, but we get a ton of people that have no idea what permissions are, or really anything else linux related. It wouldn't surprise me if the user downloaded the file with sudo wget, which would screw up permissions. +1 from me either way, though!
    – Jacobm001
    Mar 17, 2016 at 15:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.