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

GPIO bussy #554

Open
ferranponce opened this issue Feb 28, 2024 · 1 comment
Open

GPIO bussy #554

ferranponce opened this issue Feb 28, 2024 · 1 comment
Labels

Comments

@ferranponce
Copy link

I have a problem when I run the pibooth, the message is

booth@raspberrypi:~ $ pibooth
pygame 2.1.2 (SDL 2.26.5, Python 3.11.2)
Hello from the pygame community. https://www.pygame.org/contribute.html
pygame-menu 4.0.7
[ INFO ] pibooth : Installed plugins: google-photo-1.2.3
[ INFO ] pibooth : Starting the photo booth application on Raspberry pi 4B
[ WARN:0@2.844] global ./modules/videoio/src/cap_gstreamer.cpp (2401) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Failed to allocate required memory.
[ WARN:0@2.845] global ./modules/videoio/src/cap_gstreamer.cpp (1356) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0@2.845] global ./modules/videoio/src/cap_gstreamer.cpp (862) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ INFO ] pibooth : Configuring OpenCV camera ...
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/gpiozero/pins/pi.py", line 408, in pin
pin = self.pins[info]
~~~~~~~~~^^^^^^
KeyError: PinInfo(number=7, name='GPIO4', names=frozenset({'BCM4', 4, '4', 'BOARD7', 'WPI7', 'GPIO4', 'J8:7'}), pull='', row=4, col=1, interfaces=frozenset({'', 'uart', 'gpio', 'dpi', 'i2c', 'spi'}))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/usr/local/bin/pibooth", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pibooth/booth.py", line 490, in main
app = PiApplication(config, plugin_manager)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/pibooth/booth.py", line 140, in init
self.leds = LEDBoard(capture="BOARD" + config.get('CONTROLS', 'picture_led_pin'),
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gpiozero/devices.py", line 103, in call
self = super().call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gpiozero/boards.py", line 399, in init
super().init(*pins, pwm=pwm, active_high=active_high,
File "/usr/lib/python3/dist-packages/gpiozero/boards.py", line 300, in init
**{
^
File "/usr/lib/python3/dist-packages/gpiozero/boards.py", line 303, in
LEDClass(
File "/usr/lib/python3/dist-packages/gpiozero/devices.py", line 103, in call
self = super().call(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gpiozero/output_devices.py", line 192, in init
super().init(pin, active_high=active_high,
File "/usr/lib/python3/dist-packages/gpiozero/output_devices.py", line 74, in init
super().init(pin, pin_factory=pin_factory)
File "/usr/lib/python3/dist-packages/gpiozero/mixins.py", line 75, in init
super().init(*args, **kwargs)
File "/usr/lib/python3/dist-packages/gpiozero/devices.py", line 549, in init
pin = self.pin_factory.pin(pin)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gpiozero/pins/pi.py", line 410, in pin
pin = self.pin_class(self, info)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/gpiozero/pins/lgpio.py", line 126, in init
lgpio.gpio_claim_input(
File "/usr/lib/python3/dist-packages/lgpio.py", line 755, in gpio_claim_input
return _u2i(_lgpio._gpio_claim_input(handle&0xffff, lFlags, gpio))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3/dist-packages/lgpio.py", line 458, in _u2i
raise error(error_text(v))
lgpio.error: 'GPIO busy'

I don't have buttons. It's possible delete or something for run the app?

Thanks,

@werdeil
Copy link
Member

werdeil commented Mar 1, 2024

Hi @ferranponce , can you provide your config file please? Seems that there is something wrong in it.

Can you also provide more info on your setup (OS version, camera used, ...)

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

No branches or pull requests

2 participants