Boeeerb / PiGlow

Controlling the PiGlow from Python
Other
94 stars 54 forks source link

IOError: [Errno 2] No such file or directory #20

Closed ErikLentz closed 1 year ago

ErikLentz commented 9 years ago

I found that after a recent firmware update, I would get this error when attempting to use any PiGlow i2c python script:

IOError: [Errno 2] No such file or directory

I found the solution to be to add the line dtparam=i2c1=on to my /boot/config.txt

You may want to add this to the readme.

timmattison commented 8 years ago

@smeggysmeg I ran into the same problem but adding that parameter to my config.txt and rebooting didn't fix the issue. Are there any other steps you took to resolve this?

electronicsguy commented 8 years ago

@timmattison try dtparam=i2c_arm=1 and use sudo to run the script sudo python /home/pi/piglow/test.py

K7TRY commented 7 years ago

I resolved this issue on a RPi3 by installing RPi.GPIO.

sudo apt-get install RPi.GPIO