Newbie here, any idea why this command wont run ?? - Raspberry Pi Forums
hi folks, new here , pi world. trying command run work project have been given specific instructions for.
command sudo ./test_v1.py
following response
./test_v1.py:101 runtimewarning: no channels have been setup yet - nothing clean ! try cleaning @ end of program instead.
gpio cleanup
traceback ( recent call last):
file "./test_v1.py" line 30, in <module>
import serial
importerror: no module named serial
have no idea whats wrong other being told proved , should work ...any ideas appreciated
cheers
paul
command sudo ./test_v1.py
following response
./test_v1.py:101 runtimewarning: no channels have been setup yet - nothing clean ! try cleaning @ end of program instead.
gpio cleanup
traceback ( recent call last):
file "./test_v1.py" line 30, in <module>
import serial
importerror: no module named serial
have no idea whats wrong other being told proved , should work ...any ideas appreciated
cheers
paul
you're trying use gpio.cleanup() before setting channels.
gpio.cleanup() meant used return channels state @ when program started. it's used before exit program. using @ start pointless - hence warning.
gpio.cleanup() meant used return channels state @ when program started. it's used before exit program. using @ start pointless - hence warning.
raspberrypi
Comments
Post a Comment