Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PinNonPhysical: no physical pins exist for GPIO #3

Open
velkrosmaak opened this issue Dec 15, 2020 · 0 comments
Open

PinNonPhysical: no physical pins exist for GPIO #3

velkrosmaak opened this issue Dec 15, 2020 · 0 comments

Comments

@velkrosmaak
Copy link

velkrosmaak commented Dec 15, 2020

I'm trying to set this up on a new raspbian install on a B+. Suspecting this might be because of differences in pin assignments on a B+ compared to subsequent versions.

When I run the script (with python 2 or 3) I get the following error:

/usr/lib/python2.7/dist-packages/gpiozero/pins/pi.py:270: PinNonPhysical: no physical pins exist for GPIO26
'no physical pins exist for %s' % repr(self)))
/usr/lib/python2.7/dist-packages/gpiozero/pins/pi.py:270: PinNonPhysical: no physical pins exist for GPIO19
'no physical pins exist for %s' % repr(self)))
/usr/lib/python2.7/dist-packages/gpiozero/pins/pi.py:270: PinNonPhysical: no physical pins exist for GPIO16
'no physical pins exist for %s' % repr(self)))
Traceback (most recent call last):
File "gpophone.py", line 15, in
hook = gpiozero.Button(pin_hook)
File "/usr/lib/python2.7/dist-packages/gpiozero/devices.py", line 124, in call
self = super(GPIOMeta, cls).call(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/gpiozero/input_devices.py", line 432, in init
bounce_time=bounce_time, pin_factory=pin_factory)
File "/usr/lib/python2.7/dist-packages/gpiozero/mixins.py", line 383, in init
super(HoldMixin, self).init(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/gpiozero/input_devices.py", line 186, in init
self.pin.when_changed = self._pin_changed
File "/usr/lib/python2.7/dist-packages/gpiozero/pins/init.py", line 450, in
lambda self, value: self._set_when_changed(value),
File "/usr/lib/python2.7/dist-packages/gpiozero/pins/pi.py", line 314, in _set_when_changed
self._enable_event_detect()
File "/usr/lib/python2.7/dist-packages/gpiozero/pins/rpigpio.py", line 250, in _enable_event_detect
bouncetime=self._bounce)
RuntimeError: Failed to add edge detection

Do you have any suggestions on what I could try to resolve this? Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant