Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #113136
    Anonymous
    Inactive

    Of anyone has experience setting up piglow please help me out, I literally just want it on when I boot, or just on period, I think I’ve followed the tutorials correctly, but I just can’t get past the test part I keep getting

    pi@retropie ~ $ cd piglow
    pi@retropie ~/piglow $ sudo python test.py
    Traceback (most recent call last):
    File “test.py”, line 7, in <module>
    from piglow import PiGlow
    File “/home/pi/piglow/piglow.py”, line 16, in <module>
    import RPi.GPIO as rpi
    ImportError: No module named RPi.GPIO
    pi@retropie ~/piglow $

    Thanks in advance

    #113139
    petrockblog
    Keymaster

    did you:

    
    sudo pip install RPi.GPIO 
    

    ?

    #113157
    Anonymous
    Inactive

    Yea I did but now that I think of it l, I didn’t add “sudo” in front of it, I just did pip install RPi.GPIO, I’m not sure if it makes a difference, but when I did that I didn’t get any error messages, maybe when I get home today I’ll try that part again, what about

    sudo pip install -U RPi.GPIO

    I saw that somewhere

    #113163
    petrockblog
    Keymaster

    I tested the above command on retropie and it worked for me (after doing it i could import the library fine)

    #113174
    Anonymous
    Inactive

    Ok thanks buzz! I’ll give it a go later

    #113226
    Anonymous
    Inactive

    Hey buzz that was it

    sudo pip install -U RPi.GPIO

    Was all I needed, after that I was able to run the python scripts, all I have to do is figure out how to get it running on boot, what I’m afraid of is that when I run a piglow script it’s clouds the terminal with feedback from the piglow, I hope it doesn’t always do that, I’m not sure how to stop it other than rebooting

    #113232
    Anonymous
    Inactive

    I’ve got the script working perfectly on boot, and the lights go out when I shutdown as well, I’m happy with this purchase, I’ll be posting pictures of my custom made LegoPi console soon

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Everything else related to the RetroPie Project’ is closed to new topics and replies.