Error: cannot identify image file >_io.BytedsIO object at 0x7146a570
To Reproduce
Using gphoto2 app crashes when i click on "Start Photobooth"
Expected behavior
App starts and works like a charm ;-)
Screenshots/Screencast
2019-06-30 16:28:13,081 - root - INFO - Using camera with preview functionality
2019-06-30 16:28:15,455 - root - ERROR - CameraProcess: Exception "cannot identify image file <_io.BytesIO object at 0x7146a570>"
Traceback (most recent call last):
File "/home/pi/photobooth/photobooth/main.py", line 66, in run
if cap.run():
File "/home/pi/photobooth/photobooth/camera/init.py", line 94, in run
self.handleState(state)
File "/home/pi/photobooth/photobooth/camera/init.py", line 101, in handleState
self.startup()
File "/home/pi/photobooth/photobooth/camera/init.py", line 67, in startup
test_picture = self._cap.getPicture()
File "/home/pi/photobooth/photobooth/camera/CameraGphoto2.py", line 144, in getPicture
return Image.open(io.BytesIO(file_data))
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 2349, in open
% (filename if filename else fp))
OSError: cannot identify image file <_io.BytesIO object at 0x7146a570>
2019-06-30 16:28:15,483 - root - ERROR - Camera: cannot identify image file <_io.BytesIO object at 0x7146a570>
Hardware (please complete the following information)
Device RPi 3
Camera Canon EOS 70D
GPIO: [Yes, but not enabled]
Software (please complete the following information)
Describe the bug
Error when starting up
To Reproduce
Using gphoto2 app crashes when i click on "Start Photobooth"
Expected behavior
App starts and works like a charm ;-)
Screenshots/Screencast
Hardware (please complete the following information)
Software (please complete the following information)
Python version 3.5.3
Installed packages
I had an older version (about a year old) running but upgraded due to new features. The old version is still working with preview etc.
Any suggestions how to fix this? I'm invited to a birthday and was asked to bring the box with me.