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

    pi.set_mode(13, 2) # error here

1 Answer 1


You will get that error if pigpio decides that you should not be writing to that GPIO.

Typically it means you are trying to write to a GPIO which is not connected to the expansion header on the model of Pi running pigpio.

In this case GPIO 13 is only available on the compute module or the Pis with a 40 pin expansion header.

  • Thanks. turns out it was an older raspberry pi then I thought it was and did not actually have the 40 pin expansion Commented Dec 13, 2019 at 0:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.