I have been using Pibooth (v1.9.6) without any issues. However, after installing the Nextcloud addon, Pibooth no longer starts. Before the installation, everything worked as expected.
The Nextcloud address has been anonymized in the logs below.
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
pygame-menu 4.0.7
[ INFO ] pibooth : Installed plugins: nextcloud-1.0.1
[ INFO ] pibooth : Starting the photo booth application on Raspberry pi 3B
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src0 reported: Cannot identify device '/dev/video0'.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0] global ../modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video0): can't open camera by index
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src1 reported: Cannot identify device '/dev/video1'.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0] global ../modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video1): can't open camera by index
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (1824) handleMessage OpenCV | GStreamer warning: Embedded video playback halted; module v4l2src2 reported: Cannot identify device '/dev/video2'.
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (914) open OpenCV | GStreamer warning: unable to start pipeline
[ WARN:0] global ../modules/videoio/src/cap_gstreamer.cpp (501) isPipelinePlaying OpenCV | GStreamer warning: GStreamer: pipeline have not been created
[ WARN:0] global ../modules/videoio/src/cap_v4l.cpp (893) open VIDEOIO(V4L2:/dev/video2): can't open camera by index
[ INFO ] pibooth : Configuring gPhoto2 camera ...
[ WARNING ] pibooth : No printer configured in CUPS (see http://localhost:631)
[ INFO ] pibooth : Create the NextcloudUpload Instance
[ INFO ] pibooth : Synchronize is (True)...
[ INFO ] pibooth : Login Host (https://Nextcloud.net)...
[ INFO ] pibooth : Login User (fotobox)...
[ DEBUG ] urllib3.connectionpool: Starting new HTTPS connection (1): Nextcloud.net:443
[ DEBUG ] urllib3.connectionpool: https://Nextcloud.net:443 "GET /ocs/v1.php/cloud/capabilities HTTP/1.1" 200 None
[ INFO ] pibooth : Nextcloud Login OK !! (https://Nextcloud.net)
[ INFO ] pibooth : Create Directory and Share
[ INFO ] pibooth : Create Directory and Album (suubdir)...
[ DEBUG ] urllib3.connectionpool: https://Nextcloud.net:443 "MKCOL /remote.php/webdav/Fotobox/ HTTP/1.1" 405 None
[ INFO ] pibooth : rep_photos_nextcloud Already exist !! (/Fotobox/)
[ DEBUG ] urllib3.connectionpool: https://Nextcloud.net:443 "MKCOL /remote.php/webdav/Fotobox/suubdir/ HTTP/1.1" 405 None
[ INFO ] pibooth : Creation of the directory (/Fotobox/suubdir) failed , may be already exist !!
[ INFO ] pibooth : Create Share Link...
[ INFO ] pibooth : Nextcloud Create Share Link (/Fotobox/suubdir)
[ DEBUG ] urllib3.connectionpool: https://Nextcloud.net:443 "GET /ocs/v1.php/apps/files_sharing/api/v1/shares?path=%2FFotobox%2Fsuubdir HTTP/1.1" 200 None
[ INFO ] pibooth : Share Link Already Exist (/Fotobox/suubdir)
[ INFO ] pibooth : Share remote Link Public (https://Nextcloud.net/index.php/s/aaf6HXbQBqnN8Hi)...
[ INFO ] pibooth : Create Link Gallery (https://Nextcloud.net/apps/gallery/index.php/s/aaf6HXbQBqnN8Hi)...
[ INFO ] pibooth : Create QrCode with URL Link Gallery (https://Nextcloud.net/index.php/s/aaf6HXbQBqnN8Hi)...
[ ERROR ] pibooth : [Errno 2] No such file or directory: 'home/admin/Pictures/pibooth/QRCODE.png'
Traceback (most recent call last):
File "/usr/local/lib/python3.9/dist-packages/pibooth/booth.py", line 372, in main_loop
self._pm.hook.pibooth_startup(cfg=self._config, app=self)
File "/usr/local/lib/python3.9/dist-packages/pluggy/_hooks.py", line 513, in __call__
return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
File "/usr/local/lib/python3.9/dist-packages/pluggy/_manager.py", line 120, in _hookexec
return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
File "/usr/local/lib/python3.9/dist-packages/pluggy/_manager.py", line 480, in traced_hookexec
return outcome.get_result()
File "/usr/local/lib/python3.9/dist-packages/pluggy/_result.py", line 100, in get_result
raise exc.with_traceback(exc.__traceback__)
File "/usr/local/lib/python3.9/dist-packages/pluggy/_result.py", line 62, in from_call
result = func()
File "/usr/local/lib/python3.9/dist-packages/pluggy/_manager.py", line 477, in <lambda>
lambda: oldcall(hook_name, hook_impls, caller_kwargs, firstresult)
File "/usr/local/lib/python3.9/dist-packages/pluggy/_callers.py", line 139, in _multicall
raise exception.with_traceback(exception.__traceback__)
File "/usr/local/lib/python3.9/dist-packages/pluggy/_callers.py", line 103, in _multicall
res = hook_impl.function(*args)
File "/home/admin/.local/lib/python3.9/site-packages/pibooth_nextcloud.py", line 114, in pibooth_startup
image.save(app.nextcloud.local_rep + '/QRCODE.png' ,"PNG")
File "/usr/local/lib/python3.9/dist-packages/PIL/Image.py", line 2317, in save
fp = builtins.open(filename, "w+b")
FileNotFoundError: [Errno 2] No such file or directory: 'home/admin/Pictures/pibooth/QRCODE.png'
[ ERROR ] pibooth : system='Linux', node='raspberrypi', release='6.1.21-v7+', version='#1642 SMP Mon Apr 3 17:20:52 BST 2023', machine='armv7l', processor=''
***********************************************************************************
* Oops! It seems that pibooth has crached *
* You can report an issue on https://github.com/pibooth/pibooth/issues/new *
* and post the file: /tmp/pibooth.log *
***********************************************************************************
I have been using Pibooth (v1.9.6) without any issues. However, after installing the Nextcloud addon, Pibooth no longer starts. Before the installation, everything worked as expected.
Key observations:
Could this issue be related to an incompatibility with Nextcloud 29.0.0?
The Nextcloud address has been anonymized in the logs below.
Full error output:
Steps to reproduce:
Expected behavior:
Pibooth should start normally and detect the camera, and the QR code image should be generated.
Actual behavior:
Pibooth does not start and fails with the errors above.
Additional information:
Pibooth version: 1.9.6
Any help or suggestions would be appreciated!