Menu

#192 Error when running on boot on RPi

New
nobody
Critical
Other
2020-12-10
2020-12-10
No

If i want to run my python script on boot on my raspberry pi 4 that runs rasbian i get this error that he can't find the module.

How do i solve this?

Thanks in advence!

Running at boot
Traceback (most recent call last):
File "/home/pi/Downloads/Program.py", line 1, in <module>
import RPi.GPIO as GPIO
ImportError: No module named RPi.GPIO</module>

Discussion

  • Ben Croston

    Ben Croston - 2020-12-10

    A few questions:
    what user is your script running as?
    is RPi.GPIO installed for that user?
    What version of Python are you using?
    is RPi.GPIO installed for that version of Python?

     
    • Leander Van Bael

      How do i know?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.