I am having an issue where I get this error 'no permission to update GPIO'. whenever I try to address certain gpio pins. I looked at other posts that had similar issues but they seemed to have either permission issues in which case no gpio works or not be using Broadcom pin numbers which is not the case here. The following code throws the error for the two lines with pin 13 but not 18. ultimately I want to use the hardware pwm which as best I can tell needs these two pins to work.
import pigpio pi = pigpio.pi() pi.set_mode(18, 2) # no error here print(pi.get_mode(18)) pi.set_mode(13, 2) # error here print(pi.get_mode(13))