catgiggle / OctoPrint-GpioControl

GNU Affero General Public License v3.0
25 stars 13 forks source link

AttributeError: 'module' object has no attribute 'BCM' #33

Closed plugowski closed 3 years ago

plugowski commented 3 years ago

Hi after setup one Pin to trigger Lights I have this i log and plugin doesn't work at all...

File "/home/pi/oprint/local/lib/python2.7/site-packages/octoprint_gpiocontrol/init.py", line 200, in get_pin_number if self.mode == GPIO.BCM: AttributeError: 'module' object has no attribute 'BCM'

plugowski commented 3 years ago

Okay, I fixed it by removing RPi.GPIO and installing again from pip2.7