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

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.


raspberrypi



Comments

Popular posts from this blog

opencv3, tbb and rasp pi 2 - Raspberry Pi Forums

small ethernet problem - Raspberry Pi Forums

Multithumb configuration params not working? - Joomla! Forum - community, help and support