Skip to main content
3 of 3
Minor edits, added code formatting
user1133275
  • 2.2k
  • 15
  • 32

GPIO - RuntimeWarning: This channel already in use, continuing anyway

I was trying to run a motor using the Pi. It was working fine before when I was executing using a Python script.

Later I installed WiringPi and tried to execute the GPIO using shell script and it worked once.

After that nothing was working, neither the python scripts nor the shell scripts.

In the Python scripts I had added GPIO.cleanup() but still no use. But when I am executing the python script, I am getting the following warning message:

RuntimeWarning: This channel already in use, continuing anyway

Is there any way to reset the GPIO to its normal state again?

Also I had tried adding try and final statements in my Python script but still no use.

Rocky
  • 61
  • 1
  • 1
  • 2