Skip to main content
1 of 3
Rocky
  • 61
  • 1
  • 1
  • 2

RuntimeWarning: This channel already in use, continuing anyway

hi I am new to raspberry pi and python.

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

But later I had installed WiringPi and tried to execute the GPIO using shell script and it had 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 a warning message that Channel is already in use.

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.

Can anyone please help me... I am just stuck over here. Thanks.

Rocky
  • 61
  • 1
  • 1
  • 2