Need help with "piglow"

RetroPie has a new website and forum. Please visit https://retropie.org.uk/ for the new site. The new forum is located at https://retropie.org.uk/forum/. This forum is left here as a read-only archive.

This topic contains 6 replies, has 2 voices, and was last updated by Profile photo of adid4s adid4s 1 year, 3 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #113136
    Profile photo of adid4s
    adid4s
    Participant

    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
    Profile photo of buzz
    buzz
    Keymaster

    did you:

    
    sudo pip install RPi.GPIO 
    

    ?

    #113157
    Profile photo of adid4s
    adid4s
    Participant

    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
    Profile photo of buzz
    buzz
    Keymaster

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

    #113174
    Profile photo of adid4s
    adid4s
    Participant

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

    #113226
    Profile photo of adid4s
    adid4s
    Participant

    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
    Profile photo of adid4s
    adid4s
    Participant

    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)

Forums are currently read only - please visit the new RetroPie forums at https://retropie.org.uk/forums/

Skip to toolbar