reuterbal / photobooth Goto Github PK
View Code? Open in Web Editor NEWA flexible photobooth software
License: GNU Affero General Public License v3.0
A flexible photobooth software
License: GNU Affero General Public License v3.0
Hi @reuterbal,
Is it possible to add a multilingual system?
With each new version, I am compelled to replace the text of the different menus.
For my part, I could propose and maintain a 'translation file' for the French language.
Sincerely,
WikiJM
Hi everybody,
I already had success in installing the photobooth and running it thanks to @reuterbal.
Now I would like the programme to start on boot, but I can't get it working. I already tried the method to edit the rc.local-file, but I hadn't success with it. I also use a virtual environment. These are the commands im using to start the programme via command line:
cd photobooth
source .venv/bin/activate
python photobooth
Can anyone help me to get it start up right away after my Raspberry Pi boots? I don't understand much about using the command line and linux, so could anyone provide a detailed instruction?
And is there also a way to not have to choose to start the photobooth, but that I can start right away taking photos?
I use Raspbian Stretch.
Thanks a lot in advance!
Describe the request
On the first release, I was have been able to replace the generic error message by something like:
# Catch exceptions and display message
except CameraException as e:
self.handle_exception(e.message)
# Do not catch KeyboardInterrupt and SystemExit
except (KeyboardInterrupt, SystemExit):
raise
except Exception as e:
print('Try red button/Call WikiJM: ' + repr(e))
self.handle_exception("Try red button OR Call WikiJM")
To Reproduce
Steps to reproduce the behavior:
python -m photobooth
Expected behavior
Being able to configure and replace 'ERROR: ...' message by something like 'Try to push 'RESET button/Call the tech guy'
Hardware (please complete the following information)
N/A
Software (please complete the following information)
N/A
Installed packages
N/A
Photobooth log
N/A
Additional context
N/A
Hi,
first of all thank you for this nice Projekt.
I use the Canon 500 D like you, but in every other Camara mode then "Manuel" it won't take a Photo.
Is this normal or do i have to change somthing?
I try step 5. from the installation Manual but there are no files.
First of all I want to thank you for the awesome work you have with this software 👍
A friend and I are in the process of building a photobox and your software was an huge time-saver. It already mastered its first wedding with flying colors. Now we want to add a printer (Canon Selphy CP400), so that is where the request is coming from:
It would be awesome if the question whether the picture is printed or not could be answered through a (GPIO) button.
I have tried to understand your code, but I do not see a clear path to implementing this. I guess the most straightforward way would be to trigger PrintState from the Gui process. There you would either trigger a MessageBox or wait for the button till a time-out occurs.
What are your thoughts? I might try to implement this myself, but first I have to get this thing running for the next wedding 😁
Hi @reuterbal,
Thanks to your wonderful project, I had the opportunity to offer to my sister a great home photobooth for her wedding.
It also allowed me to do a joint activity with my (future) brother-in-law, who was in charge of assembling the wooden form-work and everything that allowed me to integrate the electronics, the Raspberry and the camera.
Hardware:
Additional Equipment:
Schema:
(Contact me if you want the .vsdx file)
Software:
cat /etc/*-release
command)python --version
command)Modifications:
To take care of remote maintenance, I added a Wifi key which allowed me to create an access point and connect me in SSH in order to :
Problems:
If you have any questions or need feedback, please do not hesitate to contact me 😉
Hi,
Python incompetant here (speak slowly with small words).
Using a Nikon D7000 as the camera in a photobooth on a raspberry pi with the photobooth code supplied very kindly here.
The D7000 is capapble of taking 300dpi images, which it does when triggered manually gphoto2 --capture etc. however when the camera is triggered by the photobooth with no mention or settings that I can see restricting the dpi it returns with a 19MB file and 96dpi image.
Is there a file somewhere that can be changed to fix this to be a standard 5MB JPEG and 300dpi image?
(Also if it's easy to capture RAW files without too much issue this would be of great use)
Thanks,
Hello,
First of all I want to say thank you, the new version of the photobooth is awesome! V1 was great, but this is even better!
But unforunatelly I have got a problem with the buzzer/trigger of my photobooth. It freezes the software at the "get ready ..." screen.
I use a raspberry pi 3b+ with the latest version of raspbian
python 3.5.3
Canon EOS 600D
My buzzer has a 5m long cable which connects it to the raspberry pi 3b+ I use. The error occured every time I wanted to take a picture, and the software stuck at the "get ready..." screen. But I could quit the software with esc, so it didn't freez up totally.
In Version 0.1 I had some problems with this buzzer triggering the photobooth randomly and the photobooth taking two pictures, so I put in a resistor which improved it a little.
After I removed the resistor I could take at 0-3 pictures before the error occured. Removing the button and just connecting the pins with a short cable workd fine.
Photobooth log:
2018-06-24 08:43:04,409 - root - INFO - Initializing photobooth
2018-06-24 08:43:04,410 - root - INFO - Photobooth version: 0.3.dev16+g289928f
2018-06-24 08:43:04,413 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-06-24 08:43:04,418 - root - INFO - Reading config file "photobooth.cfg"
2018-06-24 08:43:08,420 - root - INFO - Number of last existing file: 10
2018-06-24 08:43:08,424 - root - INFO - Saving assembled pictures as "2018-06-24/photoboothXXXXX.jpg"
2018-06-24 08:43:08,424 - root - INFO - Using python-gphoto2 bindings
2018-06-24 08:43:08,590 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-06-24 08:43:08,595 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-06-24 08:43:08,596 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-06-24 08:43:08,662 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 600D
Version: 3-1.0.2
Serial Number: xxxx
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 600D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100)
2018-06-24 08:43:08,797 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,798 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,799 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,799 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,800 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,800 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,801 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,801 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,802 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,803 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,803 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,804 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,804 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,805 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,805 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,806 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,806 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,807 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,807 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,808 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,809 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,809 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,810 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,810 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,811 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,811 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,812 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,814 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,815 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,815 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,816 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,817 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,818 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,818 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,819 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,819 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,820 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-06-24 08:43:08,820 - root - INFO - Camera configuration:
Camera Actions [actions]:
Synchronize camera date and time with PC [syncdatetime]: 0
UI Lock [uilock]: 2
Drive Canon DSLR Autofocus [autofocusdrive]: 0
Drive Canon DSLR Manual focus [manualfocusdrive]: None (Near 1, Near 2, Near 3, None, Far 1, Far 2, Far 3, )
Cancel Canon DSLR Autofocus [cancelautofocus]: 0
Canon EOS Zoom [eoszoom]: 0
Canon EOS Zoom Position [eoszoomposition]: 0,0
Canon EOS Viewfinder [viewfinder]: 2
Canon EOS Remote Release [eosremoterelease]: None (None, Press Half, Press Full, Release Half, Release Full, Immediate, Press 1, Press 2, Press 3, Release 1, Release 2, Release 3, )
PTP Opcode [opcode]: 0x1001,0xparam1,0xparam2
Camera Settings [settings]:
Camera Date and Time [datetime]: 1529820244
Quick Review Time [reviewtime]: 4 seconds (None, 2 seconds, 4 seconds, 8 seconds, Hold, )
Camera Output [output]: PC (TFT, PC, TFT + PC, Setting 4, Setting 5, Setting 6, Setting 7, )
Recording Destination [movierecordtarget]: Unknown value 0003 (Unknown value 0003, )
EVF Mode [evfmode]: 1 (0, 1, )
Owner Name [ownername]:
Artist [artist]:
Copyright [copyright]:
Custom Functions Ex [customfuncex]: c8,4,1,2c,3,101,1,0,103,1,0,10f,1,0,2,2c,3,201,1,0,202,1,0,203,1,0,3,20,2,50e,1,0,60f,1,0,4,38,4,701,1,0,704,1,0,811,1,0,80f,1,0,
Focus Info [focusinfo]: eosversion=4,size=5184x3456,size2=5184x3456,points={{-1477,0,186,139},{-886,418,186,139},{-886,-418,186,139},{0,787,127,196},{0,0,231,238},{0,-787,127,196},{886,418,186,139},{886,-418,186,139},{1477,0,186,139}},select={},unknown={ff010000ffff}
Auto Power Off [autopoweroff]: 0
Depth of Field [depthoffield]: 0
Capture Target [capturetarget]: Internal RAM (Internal RAM, Memory card, )
Capture [capture]: 0
Camera Status Information [status]:
Serial Number [serialnumber]: 80b7725b79ad4d78bc9e1f7865dc46f9
Camera Manufacturer [manufacturer]: Canon Inc.
Camera Model [cameramodel]: Canon EOS 600D
Device Version [deviceversion]: 3-1.0.2
Vendor Extension [vendorextension]: None
Camera Model [model]: 2147484294
PTP Version [ptpversion]: 256
Battery Level []: 100%
Battery Level [batterylevel]: 100%
Lens Name [lensname]: 18-200mm
Serial Number [eosserialnumber]: 233076199374
Shutter Counter [shuttercounter]: 5003
Available Shots [availableshots]: 42101
Image Settings [imgsettings]:
Image Format [imageformat]: Large Fine JPEG (Large Fine JPEG, Large Normal JPEG, Medium Fine JPEG, Medium Normal JPEG, Small Fine JPEG, Small Normal JPEG, Smaller JPEG, Tiny JPEG, RAW + Large Fine JPEG, RAW, )
Image Format SD [imageformatsd]: Large Fine JPEG (Large Fine JPEG, Large Normal JPEG, Medium Fine JPEG, Medium Normal JPEG, Small Fine JPEG, Small Normal JPEG, Smaller JPEG, Tiny JPEG, RAW + Large Fine JPEG, RAW, )
ISO Speed [iso]: Auto (Auto, 100, 200, 400, 800, 1600, 3200, 6400, )
WhiteBalance [whitebalance]: Flash (Auto, Daylight, Shadow, Cloudy, Tungsten, Fluorescent, Flash, Manual, )
WhiteBalance Adjust A [whitebalanceadjusta]: 0 (-9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
WhiteBalance Adjust B [whitebalanceadjustb]: 0 (-9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
WhiteBalance X A [whitebalancexa]: 0
WhiteBalance X B [whitebalancexb]: 0
Color Space [colorspace]: sRGB (sRGB, AdobeRGB, )
Capture Settings [capturesettings]:
Exposure Compensation [exposurecompensation]: 0 (-5, -4.6, -4.3, -4, -3.6, -3.3, -3, -2.6, -2.3, -2, -1.6, -1.3, -1.0, -0.6, -0.3, 0, 0.3, 0.6, 1.0, 1.3, 1.6, 2, 2.3, 2.6, 3, 3.3, 3.6, 4, 4.3, 4.6, 5, )
Focus Mode [focusmode]: One Shot (One Shot, )
Canon Auto Exposure Mode [autoexposuremode]: P (P, TV, AV, Manual, Bulb, A_DEP, DEP, Custom, Lock, Green, Night Portrait, Sports, Portrait, Landscape, Closeup, Flash Off, )
Drive Mode [drivemode]: Single (Single, Continuous, Timer 10 sec, Timer 2 sec, Unknown value 0007, )
Picture Style [picturestyle]: Auto (Standard, Portrait, Landscape, Neutral, Faithful, Monochrome, Auto, User defined 1, User defined 2, User defined 3, )
Aperture [aperture]: implicit auto (implicit auto, )
Shutter Speed [shutterspeed]: auto (auto, )
Bracket Mode [bracketmode]: 0
Auto Exposure Bracketing [aeb]: off (off, +/- 1/3, +/- 2/3, +/- 1, +/- 1 1/3, +/- 1 2/3, +/- 2, )
Other PTP Device Properties [other]:
PTP Property 0xd402 [d402]: Canon EOS 600D
PTP Property 0xd407 [d407]: 1
PTP Property 0xd406 [d406]: Unknown Initiator
PTP Property 0xd303 [d303]: 1
Battery Level [5001]: 100 (100, 0, 75, 0, 50, )
2018-06-24 08:43:11,993 - root - INFO - Countdown with preview activated
2018-06-24 08:43:11,994 - root - INFO - GPIO enabled (lamp_pin=4, trigger_pin=23, exit_pin=24)
2018-06-24 08:43:13,564 - root - INFO - Photobooth triggered
2018-06-24 08:43:13,615 - root - ERROR - Unknown event received: triggered
It shows this in command line:
2018-06-24 08:50:20,002 - root - INFO - Photobooth triggered
2018-06-24 08:50:20,080 - root - ERROR - Unknown event received: triggered
Process CameraProcess-1:
Traceback (most recent call last):
File "/home/pi/photobooth/photobooth/Photobooth.py", line 101, in recvEvent
event_idx = expected.index(str(event))
ValueError: 'triggered' is not in list
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/home/pi/photobooth/photobooth/main.py", line 79, in run
status_code = self.run_camera()
File "/home/pi/photobooth/photobooth/main.py", line 57, in run_camera
return photobooth.run()
File "/home/pi/photobooth/photobooth/Photobooth.py", line 147, in run
self.trigger()
File "/home/pi/photobooth/photobooth/Photobooth.py", line 222, in trigger
self.recvAck()
File "/home/pi/photobooth/photobooth/Photobooth.py", line 112, in recvAck
if self.recvEvent(events) != 0:
File "/home/pi/photobooth/photobooth/Photobooth.py", line 104, in recvEvent
raise ValueError('Unknown event received', str(event))
ValueError: ('Unknown event received', 'triggered')
Maybe the current which arrives at the pin while triggering is to low/not long enough (resisstance of Thrones cable to high)?
If I press the button for a few seconds instead of hitting it for a short moment, it seems like the chance of taking a picture is higher.
I also got some other warnings/errors which would be nice to fix, but it seems like they don't stop the photobooth working.
Thank you in advance!
-Axel
Edit:
removed serial Numbers
Corrected camera model
I build a portable Photobooth for Berning Man
Everything is mounted in a small pelican case
Raspberry Pie 3 B+
Mini thermal printer (USB)
Canon Rebel T2i
Raspberry 7 inch Touchscreen
External USB battery
Raspbian Stretch
Python version 3.5.1
Problem,
when "number of shots per picture" is set out to 4 by 1 , it prints them across (side by side) to fit on the 58mm with of the paper.
Is there any way to change it, so its 4 horizontal Photos one on top of the other like the old school photo booths?
Thanks for your Help
Gary
Hi,
First of all : congrats for this work, it seems very complete. I really want to take my first shot with it ! :-)
Describe the bug
I've done every command in root, but it's still the same with the pi user.
In the beginning, my camera was on Av mode (aperture priority) but photobooth returns me an error with "Camera : bad config". I set my camera in auto mode, and now I have : "Camera : I/O problem".
If i take a picture with this command (out of photobooth environnement) :
gphoto2 --capture-image-and-download
it works and I have the picture on th RPi.
Hardware (please complete the following information)
Software (please complete the following information)
Installed packages
automationhat==0.1.0
blinker==1.3
blinkt==0.1.2
buttonshim==0.0.2
Cap1xxx==0.1.3
chardet==2.3.0
click==6.6
colorama==0.3.7
cryptography==1.7.1
drumhat==0.1.0
envirophat==1.0.0
ExplorerHAT==0.4.2
Flask==0.12.1
fourletterphat==0.1.0
gphoto2==1.8.3
gpiozero==1.4.1
idna==2.2
itsdangerous==0.24
jedi==0.10.2
Jinja2==2.8
keyring==10.1
keyrings.alt==1.3
MarkupSafe==0.23
microdotphat==0.2.1
mote==0.0.3
motephat==0.0.2
numpy==1.12.1
oauthlib==2.0.1
opencv-python==3.4.2.17
pantilthat==0.0.6
pgzero==1.2
phatbeat==0.1.1
-e git+https://github.com/reuterbal/photobooth.git@88202b9e3037bb3370217232ffbd3826d98e1265#egg=photobooth
pianohat==0.1.0
picamera==1.13
picraft==1.0
piglow==1.2.4
pigpio==1.38
Pillow==4.0.0
pkg-resources==0.0.0
pyasn1==0.1.9
pycrypto==2.6.1
pygame==1.9.3
pygobject==3.22.0
pyinotify==0.9.6
PyJWT==1.4.2
pyOpenSSL==16.2.0
pyserial==3.2.1
python-apt==1.1.0b5
pyxdg==0.25
rainbowhat==0.1.0
requests==2.12.4
requests-oauthlib==0.7.0
RPi.GPIO==0.6.3
RTIMULib==7.2.1
scrollphat==0.0.7
scrollphathd==1.2.1
SecretStorage==2.3.1
sense-emu==1.1
sense-hat==2.2.0
simplejson==3.10.0
six==1.10.0
skywriter==0.0.7
sn3218==1.2.7
spidev==3.3
thonny==2.1.16
touchphat==0.0.1
twython==3.4.0
unicornhathd==0.0.3
urllib3==1.19.1
virtualenv==15.1.0
Werkzeug==0.11.15
Photobooth log
2018-08-15 21:54:07,427 - root - INFO - Initializing photobooth
2018-08-15 21:54:07,428 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 21:54:07,430 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 21:54:07,435 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 21:54:07,492 - root - INFO - Number of last existing file: 0
2018-08-15 21:54:07,498 - root - INFO - Saving pictures as "2018-08-15/photoboothXXXXX.jpg"
2018-08-15 21:54:07,499 - root - INFO - GPIO disabled
2018-08-15 21:54:07,503 - root - INFO - Number of last existing file: 0
2018-08-15 21:54:07,504 - root - INFO - Saving pictures as "2018-08-15/photobooth_shot_XXXXX.jpg"
2018-08-15 21:54:09,936 - root - INFO - Using printer ""
2018-08-15 21:56:01,483 - root - INFO - Writing config file "photobooth.cfg"
2018-08-15 21:56:01,594 - root - INFO - Restarting photobooth and reloading config
2018-08-15 21:56:01,597 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 21:56:01,600 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 21:56:01,606 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 21:56:01,644 - root - INFO - Number of last existing file: 0
2018-08-15 21:56:01,653 - root - INFO - Saving pictures as "/root/photoboothXXXXX.jpg"
2018-08-15 21:56:01,662 - root - INFO - Number of last existing file: 0
2018-08-15 21:56:01,664 - root - INFO - Saving pictures as "/root/photobooth_shot_XXXXX.jpg"
2018-08-15 21:56:01,664 - root - INFO - GPIO disabled
2018-08-15 21:56:07,216 - root - INFO - Using python-gphoto2 bindings
2018-08-15 21:56:07,585 - gphoto2 - WARNING - (b'gp_context_error') b'Could not detect any camera'
2018-08-15 21:56:07,589 - root - ERROR - Camera: [-105] Unknown model
2018-08-15 21:56:16,364 - root - INFO - Using python-gphoto2 bindings
2018-08-15 21:56:16,554 - gphoto2 - WARNING - (b'gp_context_error') b'Could not detect any camera'
2018-08-15 21:56:16,555 - gphoto2 - WARNING - (b'gp_context_error') b'Could not detect any camera'
2018-08-15 21:56:16,559 - root - ERROR - Camera: [-105] Unknown model
2018-08-15 21:56:17,478 - root - INFO - Using python-gphoto2 bindings
2018-08-15 21:56:17,662 - gphoto2 - WARNING - (b'gp_context_error') b'Could not detect any camera'
2018-08-15 21:56:17,663 - gphoto2 - WARNING - (b'gp_context_error') b'Could not detect any camera'
2018-08-15 21:56:17,663 - gphoto2 - WARNING - (b'gp_context_error') b'Could not detect any camera'
2018-08-15 21:56:17,667 - root - ERROR - Camera: [-105] Unknown model
2018-08-15 21:57:28,725 - root - INFO - Exiting photobooth with status code 0
2018-08-15 22:11:28,316 - root - INFO - Initializing photobooth
2018-08-15 22:11:28,321 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:11:28,324 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:11:28,333 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:11:28,415 - root - INFO - GPIO disabled
2018-08-15 22:11:28,413 - root - INFO - Number of last existing file: 0
2018-08-15 22:11:28,419 - root - INFO - Saving pictures as "/root/photoboothXXXXX.jpg"
2018-08-15 22:11:28,424 - root - INFO - Number of last existing file: 0
2018-08-15 22:11:28,425 - root - INFO - Saving pictures as "/root/photobooth_shot_XXXXX.jpg"
2018-08-15 22:11:43,224 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:11:43,466 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:11:43,478 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:11:43,479 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:11:43,507 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:16:05,145 - root - INFO - Initializing photobooth
2018-08-15 22:16:05,146 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:16:05,149 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:16:05,153 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:16:05,222 - root - INFO - Number of last existing file: 0
2018-08-15 22:16:05,229 - root - INFO - Saving pictures as "/root/photoboothXXXXX.jpg"
2018-08-15 22:16:05,236 - root - INFO - Number of last existing file: 0
2018-08-15 22:16:05,238 - root - INFO - Saving pictures as "/root/photobooth_shot_XXXXX.jpg"
2018-08-15 22:16:05,239 - root - INFO - GPIO disabled
2018-08-15 22:17:01,985 - root - INFO - Writing config file "photobooth.cfg"
2018-08-15 22:17:02,106 - root - INFO - Restarting photobooth and reloading config
2018-08-15 22:17:02,108 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:17:02,111 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:17:02,117 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:17:02,155 - root - INFO - Number of last existing file: 0
2018-08-15 22:17:02,162 - root - INFO - Saving pictures as "/home/pi/Pictures/photoboothXXXXX.jpg"
2018-08-15 22:17:02,171 - root - INFO - Number of last existing file: 0
2018-08-15 22:17:02,174 - root - INFO - Saving pictures as "/home/pi/Pictures/photobooth_shot_XXXXX.jpg"
2018-08-15 22:17:02,173 - root - INFO - GPIO disabled
2018-08-15 22:17:05,319 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:17:05,539 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:17:05,551 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:17:05,552 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:17:05,580 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:17:05,809 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:17:05,812 - root - ERROR - Camera: [-2] Bad parameters
2018-08-15 22:17:05,812 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:17:10,472 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:17:10,722 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:17:10,723 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:17:10,735 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:17:10,736 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:17:10,737 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:17:10,738 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:17:10,766 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:17:11,041 - root - ERROR - Camera: [-2] Bad parameters
2018-08-15 22:17:11,042 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:17:11,043 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:17:11,045 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:17:11,045 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:17:42,207 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:17:42,443 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:17:42,444 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:17:42,444 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:17:42,457 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:17:42,458 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:17:42,459 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:17:42,460 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:17:42,460 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:17:42,461 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:17:42,489 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:17:42,803 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:17:42,804 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:17:42,804 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:17:42,805 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:17:42,806 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:17:42,805 - root - ERROR - Camera: [-2] Bad parameters
2018-08-15 22:17:42,807 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:17:48,739 - root - INFO - Exiting photobooth with status code 0
2018-08-15 22:18:04,773 - root - INFO - Initializing photobooth
2018-08-15 22:18:04,773 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:18:04,776 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:18:04,781 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:18:04,843 - root - INFO - Number of last existing file: 0
2018-08-15 22:18:04,849 - root - INFO - Saving pictures as "/home/pi/Pictures/photoboothXXXXX.jpg"
2018-08-15 22:18:04,855 - root - INFO - Number of last existing file: 0
2018-08-15 22:18:04,857 - root - INFO - Saving pictures as "/home/pi/Pictures/photobooth_shot_XXXXX.jpg"
2018-08-15 22:18:04,860 - root - INFO - GPIO disabled
2018-08-15 22:18:08,022 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:18:08,257 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:18:08,269 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:18:08,270 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:18:08,299 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:18:08,522 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:18:08,526 - root - ERROR - Camera: [-2] Bad parameters
2018-08-15 22:18:08,527 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:18:17,903 - root - INFO - Writing config file "photobooth.cfg"
2018-08-15 22:18:17,993 - root - INFO - Restarting photobooth and reloading config
2018-08-15 22:18:17,995 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:18:17,998 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:18:18,004 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:18:18,055 - root - INFO - Number of last existing file: 0
2018-08-15 22:18:18,059 - root - INFO - Saving pictures as "/root/photoboothXXXXX.jpg"
2018-08-15 22:18:18,064 - root - INFO - Number of last existing file: 0
2018-08-15 22:18:18,066 - root - INFO - Saving pictures as "/root/photobooth_shot_XXXXX.jpg"
2018-08-15 22:18:18,067 - root - INFO - GPIO disabled
2018-08-15 22:18:20,359 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:18:20,591 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:18:20,603 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:18:20,604 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:18:20,634 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:18:20,872 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:18:20,874 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:18:20,876 - root - ERROR - Camera: [-2] Bad parameters
2018-08-15 22:18:37,512 - root - INFO - Exiting photobooth with status code 0
2018-08-15 22:22:50,164 - root - INFO - Initializing photobooth
2018-08-15 22:22:50,166 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:22:50,168 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:22:50,174 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:22:50,233 - root - INFO - Number of last existing file: 0
2018-08-15 22:22:50,239 - root - INFO - Saving pictures as "/root/photoboothXXXXX.jpg"
2018-08-15 22:22:50,242 - root - INFO - Number of last existing file: 0
2018-08-15 22:22:50,241 - root - INFO - GPIO disabled
2018-08-15 22:22:50,244 - root - INFO - Saving pictures as "/root/photobooth_shot_XXXXX.jpg"
2018-08-15 22:23:02,846 - root - INFO - Writing config file "photobooth.cfg"
2018-08-15 22:23:02,949 - root - INFO - Restarting photobooth and reloading config
2018-08-15 22:23:02,954 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:23:02,957 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:23:02,965 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:23:03,002 - root - INFO - Number of last existing file: 0
2018-08-15 22:23:03,006 - root - INFO - Saving pictures as "/home/pi/Pictures/photoboothXXXXX.jpg"
2018-08-15 22:23:03,011 - root - INFO - Number of last existing file: 0
2018-08-15 22:23:03,012 - root - INFO - Saving pictures as "/home/pi/Pictures/photobooth_shot_XXXXX.jpg"
2018-08-15 22:23:03,012 - root - INFO - GPIO disabled
2018-08-15 22:23:13,496 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:23:13,716 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:23:13,728 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:23:13,729 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:23:13,756 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:23:14,023 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:23:14,024 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:23:14,026 - root - ERROR - Camera: [-2] Bad parameters
2018-08-15 22:23:33,964 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:23:34,192 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:23:34,193 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:23:34,220 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:23:34,221 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:23:34,222 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:23:34,222 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:23:34,251 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:23:34,597 - root - ERROR - Camera: [-2] Bad parameters
2018-08-15 22:23:34,597 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:23:34,598 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x911c receiving resp failed: PTP Device Busy (0x2019)'
2018-08-15 22:23:34,599 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:23:34,600 - gphoto2 - WARNING - (b'camera_unprepare_canon_eos_capture [config.c:457]') b"'ptp_canon_eos_resetuilock (params)' failed: PTP Device Busy (0x2019)"
2018-08-15 22:23:51,404 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:23:51,639 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:23:51,640 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:23:51,641 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-08-15 22:23:51,656 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:23:51,657 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:23:51,658 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9109 receiving resp failed: PTP General Error (0x2002)'
2018-08-15 22:23:51,659 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:23:51,659 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:23:51,660 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7358]') b"'ptp_canon_eos_getobjectinfoex ( params, storageids.Storage[k], handle ? handle : 0xffffffff, 0x100000, &tmp, &nroftmp)' failed: PTP General Error (0x2002)"
2018-08-15 22:23:51,705 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 7D
Version: 3-2.0.5
Serial Number: ad24d611ffe42f8
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00010001:
StorageDescription: CF
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 32011223040 (30528 MB)
Free Space (Bytes): 29535436800 (28167 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 7D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
2018-08-15 22:24:56,914 - root - INFO - Initializing photobooth
2018-08-15 22:24:56,915 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:24:56,918 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:24:56,923 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:24:56,987 - root - INFO - Number of last existing file: 0
2018-08-15 22:24:56,994 - root - INFO - Saving pictures as "/home/pi/Pictures/photoboothXXXXX.jpg"
2018-08-15 22:24:56,995 - root - INFO - GPIO disabled
2018-08-15 22:24:57,001 - root - INFO - Number of last existing file: 0
2018-08-15 22:24:57,003 - root - INFO - Saving pictures as "/home/pi/Pictures/photobooth_shot_XXXXX.jpg"
2018-08-15 22:25:15,242 - root - INFO - Writing config file "photobooth.cfg"
2018-08-15 22:25:15,313 - root - INFO - Restarting photobooth and reloading config
2018-08-15 22:25:15,319 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:25:15,324 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:25:15,334 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:25:15,405 - root - INFO - GPIO disabled
2018-08-15 22:25:15,411 - root - INFO - Number of last existing file: 0
2018-08-15 22:25:15,419 - root - INFO - Saving pictures as "/home/pi/Pictures/photoboothXXXXX.jpg"
2018-08-15 22:25:15,430 - root - INFO - Number of last existing file: 0
2018-08-15 22:25:15,433 - root - INFO - Saving pictures as "/home/pi/Pictures/photobooth_shot_XXXXX.jpg"
2018-08-15 22:25:18,892 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:25:20,589 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:20,590 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:20,591 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:20,593 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:22,112 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:22,113 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:22,115 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:22,116 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:23,619 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:23,620 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:23,621 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:23,623 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:23,624 - gphoto2 - WARNING - (b'camera_init [library.c:7757]') b"'ret' failed: 'PTP I/O Error' (0x02ff)"
2018-08-15 22:25:23,625 - gphoto2 - WARNING - (b'gp_context_error') b'PTP I/O Error'
2018-08-15 22:25:23,638 - root - ERROR - Camera: [-7] I/O problem
2018-08-15 22:25:37,518 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:25:39,229 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:39,230 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:39,231 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:39,233 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:39,234 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:39,235 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:39,236 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:39,237 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:40,740 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:40,742 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:40,743 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:40,744 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:40,745 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:40,746 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:40,747 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:40,748 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:42,251 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:42,253 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:25:42,254 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:42,256 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:42,257 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:42,259 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:25:42,260 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:42,262 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:25:42,264 - gphoto2 - WARNING - (b'camera_init [library.c:7757]') b"'ret' failed: 'PTP I/O Error' (0x02ff)"
2018-08-15 22:25:42,265 - gphoto2 - WARNING - (b'camera_init [library.c:7757]') b"'ret' failed: 'PTP I/O Error' (0x02ff)"
2018-08-15 22:25:42,266 - gphoto2 - WARNING - (b'gp_context_error') b'PTP I/O Error'
2018-08-15 22:25:42,268 - gphoto2 - WARNING - (b'gp_context_error') b'PTP I/O Error'
2018-08-15 22:25:42,296 - root - ERROR - Camera: [-7] I/O problem
2018-08-15 22:26:06,573 - root - INFO - Exiting photobooth with status code 0
2018-08-15 22:26:20,054 - root - INFO - Initializing photobooth
2018-08-15 22:26:20,055 - root - INFO - Photobooth version: 0.4.dev8+g88202b9
2018-08-15 22:26:20,057 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-15 22:26:20,062 - root - INFO - Reading config file "photobooth.cfg"
2018-08-15 22:26:20,123 - root - INFO - Number of last existing file: 0
2018-08-15 22:26:20,129 - root - INFO - Saving pictures as "/home/pi/Pictures/photoboothXXXXX.jpg"
2018-08-15 22:26:20,135 - root - INFO - Number of last existing file: 0
2018-08-15 22:26:20,137 - root - INFO - Saving pictures as "/home/pi/Pictures/photobooth_shot_XXXXX.jpg"
2018-08-15 22:26:20,153 - root - INFO - GPIO disabled
2018-08-15 22:26:23,984 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:26:25,724 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:25,726 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:25,727 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:25,728 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:27,231 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:27,232 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:27,234 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:27,235 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:28,738 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:28,739 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:28,740 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:28,741 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:28,742 - gphoto2 - WARNING - (b'camera_init [library.c:7757]') b"'ret' failed: 'PTP I/O Error' (0x02ff)"
2018-08-15 22:26:28,743 - gphoto2 - WARNING - (b'gp_context_error') b'PTP I/O Error'
2018-08-15 22:26:28,765 - root - ERROR - Camera: [-7] I/O problem
2018-08-15 22:26:46,723 - root - INFO - Using python-gphoto2 bindings
2018-08-15 22:26:48,447 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:48,448 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:48,450 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:48,451 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:48,452 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:48,453 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:48,454 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:48,455 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:49,959 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:49,960 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:49,962 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:49,963 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:49,966 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:49,967 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:49,968 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:49,969 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:51,472 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:51,474 - gphoto2 - WARNING - (b'gp_libusb1_write [libusb1.c:576]') b"'libusb_bulk_transfer (port->pl->dh, port->settings.usb.outep, (unsigned char*)bytes, size, &curwritten, port->timeout)' failed: Operation timed out (-7)"
2018-08-15 22:26:51,475 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:51,476 - gphoto2 - WARNING - (b'gp_port_write [gphoto2-port.c:406]') b'Writing 16 = 0x10 bytes to port failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:51,477 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:51,478 - gphoto2 - WARNING - (b'ptp_usb_sendreq [usb.c:108]') b'PTP_OC 0x1002 sending req failed: Timeout reading from or writing to the port (-10)'
2018-08-15 22:26:51,479 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:51,480 - gphoto2 - WARNING - (b'camera_init [library.c:7729]') b"'ptp_opensession (params, sessionid)' failed: PTP I/O Error (0x02ff)"
2018-08-15 22:26:51,481 - gphoto2 - WARNING - (b'camera_init [library.c:7757]') b"'ret' failed: 'PTP I/O Error' (0x02ff)"
2018-08-15 22:26:51,482 - gphoto2 - WARNING - (b'camera_init [library.c:7757]') b"'ret' failed: 'PTP I/O Error' (0x02ff)"
2018-08-15 22:26:51,483 - gphoto2 - WARNING - (b'gp_context_error') b'PTP I/O Error'
2018-08-15 22:26:51,484 - gphoto2 - WARNING - (b'gp_context_error') b'PTP I/O Error'
2018-08-15 22:26:51,497 - root - ERROR - Camera: [-7] I/O problem
2018-08-15 22:37:06,089 - root - INFO - Exiting photobooth with status code 0
Thanks a lot in advance
I build a portable Photobooth for Berning Man
Everything is mounted in a small pelican case
Raspberry Pie 3 B+
Mini thermal printer (USB)
Canon Rebel T2i
Raspberry 7 inch Touchscreen
External USB battery
Raspbian Stretch
Python version 3.5.1
Problem,
The last photo on every strip comes out digitized ( as seen in the photos below)
I have tried 1-3, 1-4, and 1-5 and always the last image comes out digitized.
Sometimes I'll get an error "image file is truncated (26 bytes not proceed)" (the bytes size changes)
when that happens I can cancel or renter. if I renter it will save all the image files.
Other times (example below) it will not error and it will go right to print screen and the last shot will be digitized I print, and it does not save the last image file.
can someone Please Help
Gary
Here are my settings
here is the code if that helps?
PTP Property 0xd402 [d402]: Canon EOS REBEL T2i
PTP Property 0xd407 [d407]: 1
PTP Property 0xd406 [d406]: Unknown Initiator
PTP Property 0xd303 [d303]: 1
Battery Level [5001]: 100 (100, 0, 75, 0, 50, )
2018-08-19 16:52:46,231 - gphoto2 - WARNING - (b'camera_canon_eos_capture [library.c:3248]') b'no focus info?\n'
2018-08-19 16:52:49,186 - root - INFO - Using camera with preview functionality
2018-08-19 16:52:58,128 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:52:58,184 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:52:58,301 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:06,449 - gphoto2 - WARNING - (b'camera_canon_eos_capture [library.c:3248]') b'no focus info?\n'
2018-08-19 16:53:09,311 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:09,483 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:09,595 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:09,761 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:09,968 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:10,174 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:10,380 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:14,077 - root - INFO - Saving picture as /media/pi/ZIP 125/bm_photos/photobooth_shot_00001.jpg
2018-08-19 16:53:18,107 - gphoto2 - WARNING - (b'camera_canon_eos_capture [library.c:3248]') b'no focus info?\n'
2018-08-19 16:53:21,030 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:21,226 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:21,340 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:21,498 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:21,710 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:21,917 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:22,129 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:25,841 - root - INFO - Saving picture as /media/pi/ZIP 125/bm_photos/photobooth_shot_00002.jpg
2018-08-19 16:53:29,404 - gphoto2 - WARNING - (b'camera_canon_eos_capture [library.c:3248]') b'no focus info?\n'
2018-08-19 16:53:32,291 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:32,469 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:32,578 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:32,741 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:32,948 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:33,155 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:33,362 - gphoto2 - WARNING - (b'ptp_usb_getresp [usb.c:465]') b'PTP_OC 0x9153 receiving resp failed: Camera Not Ready (0xa102)'
2018-08-19 16:53:36,796 - root - INFO - Saving picture as /media/pi/ZIP 125/bm_photos/photobooth_shot_00003.jpg
2018-08-19 16:53:40,900 - gphoto2 - WARNING - (b'camera_canon_eos_capture [library.c:3248]') b'no focus info?\n'
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/queues.py", line 241, in _feed
obj = ForkingPickler.dumps(obj)
File "/usr/lib/python3.5/multiprocessing/reduction.py", line 50, in dumps
cls(buf, protocol).dump(obj)
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 637, in getstate
self.getpalette(),
File "/usr/lib/python3/dist-packages/PIL/Image.py", line 1194, in getpalette
self.load()
File "/usr/lib/python3/dist-packages/PIL/ImageFile.py", line 226, in load
"(%d bytes not processed)" % len(b))
OSError: image file is truncated (9 bytes not processed)
2018-08-19 16:53:45,692 - root - INFO - Saving picture as /media/pi/ZIP 125/bm_photos/photobooth00001.jpg
2018-08-19 16:53:59,154 - root - INFO - Printing picture
Hi reuterbal,
I really like your programme, especially because of the GUI. But this is also my issue.
This is my setup:
The installation went fine but I have one big issue: The programme isn't fully displayed on my display.
So, when I want to change the settings, I can't save them. I tried to not change the settings and just start the photobooth but then it loaded forever and didn't show any preview or similar. I think it is because I couldn't select the PiCamera in the settings.
Is there any way to see the full programme?
Also, I have some more questions:
Thank you very much in advance! I really would like it to work :)
Hi there,
I just found your project and want to use this at a wedding next time. Setup will be a Pi B+, 800x600 touchscreen and a picamera.
If I start the photobooth, I get to "Hit the button", but unfortunately it doesn't work. There's no output in the log or something.
You got this behavior before?
Describe the bug
I did the installtion as mentioned an when I start "python photobooth" I got the followig output:
2018-07-03 22:07:38,365 - root - INFO - Initializing photobooth
2018-07-03 22:07:38,367 - root - INFO - Photobooth version: 0.2
2018-07-03 22:07:38,371 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-07-03 22:07:38,377 - root - INFO - Reading config file "photobooth.cfg"
QXcbConnection: Could not connect to display
2018-07-03 22:07:41,121 - root - INFO - Exiting photobooth with status code -6
Hardware (please complete the following information):
Software (please complete the following information):
Photobooth log:
2018-07-03 22:07:38,365 - root - INFO - Initializing photobooth
2018-07-03 22:07:38,367 - root - INFO - Photobooth version: 0.2
2018-07-03 22:07:38,371 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-07-03 22:07:38,377 - root - INFO - Reading config file "photobooth.cfg"
2018-07-03 22:07:41,121 - root - INFO - Exiting photobooth with status code -6
Same behavior with version 0.2
Hi reuterbal,
Tried out the new master today. GUI Button for taking a photo works now, cool work! Unfortunately ran into another issue. I get an error when trying to take some pics now. (used to work with the old version) I get this error msg when the preview window should kick in.
Error_: create_encode() got an unexpected keyword argument 'resolution'
It then freezes and I have to kill the process to get out. It DOES WORK however if I deactivate preview in the settings.
My setup:
Raspberry Pi 3
PiCamera V2 (is set up in the settings)
8" official Pi Touchscreen
Including the log:
2018-07-18 09:22:14,915 - root - INFO - Photobooth version: 0.3
2018-07-18 09:22:14,919 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-07-18 09:22:14,928 - root - INFO - Reading config file "photobooth.cfg"
2018-07-18 09:22:14,975 - root - INFO - Number of last existing file: 0
2018-07-18 09:22:14,980 - root - INFO - Saving pictures as "2018-07-18/photoboothXXXXX.jpg"
2018-07-18 09:22:14,985 - root - INFO - GPIO disabled
2018-07-18 09:22:14,986 - root - INFO - Number of last existing file: 0
2018-07-18 09:22:14,993 - root - INFO - Saving pictures as "2018-07-18/photobooth_shot_XXXXX.jpg"
libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
2018-07-18 09:22:15,948 - root - INFO - Using printer "HP_ENVY_Photo_6200_series"
qt5ct: custom style sheet is disabled
2018-07-18 09:22:17,284 - root - INFO - Using PiCamera
2018-07-18 09:22:18,309 - root - INFO - Using camera with preview functionality
2018-07-18 09:22:24,357 - root - ERROR - Camera: _create_encoder() got an unexpected keyword argument 'resolution'
Traceback (most recent call last):
File "/usr/lib/python3.5/runpy.py", line 193, in _run_module_as_main
"__main__", mod_spec)
File "/usr/lib/python3.5/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/home/pi/photobooth/photobooth/__main__.py", line 23, in <module>
sys.exit(photobooth.main(sys.argv))
File "/home/pi/photobooth/photobooth/main.py", line 188, in main
status_code = run(argv)
File "/home/pi/photobooth/photobooth/main.py", line 144, in run
exit_code = context.handleEvent(event)
File "/home/pi/photobooth/photobooth/StateMachine.py", line 84, in handleEvent
self.state.handleEvent(event, self)
File "/home/pi/photobooth/photobooth/StateMachine.py", line 295, in handleEvent
raise TypeError('Unknown Event type "{}"'.format(event))
TypeError: Unknown Event type "capture"
Hope this helps for bug hunting! Please keep up the good work!
always looking for progression, can you help me?
I will use the raspberry in portrait mode.
however, the text is no longer in the correct position
I would like the "hit this" (appuyez) be at the top and "botton" (ici) in the center of the screen ...
likewise at the end of the shoot,
the function "print" or "start again"
I would like them to be in the middle of the screen
when I'm in portrait mode
is it possible ?
thank you in advance
I know you are working on this pretty much as I type this, but I am curious if you can give me a hint on how to install the dev branch please?
I am new and fresh to this whole Pi world but I want to start helping and figured I would start with the latest stuff. Am I too early?
Hey,
I didn't have enough time yet to test you application. So I have a question: Is the live preview you are talking about in the readme a live video or is it a picture instead?
Regards
hollesse
Hi @reuterbal
Would you agree to enable and use the GitHub 'Projects' feature to track progress of feature additions/requests and incident handling?
I was able to set it up for the following project: https://github.com/alexylem/jarvis/projects/1
This way, one could at a glance quickly see if a feature has a chance to be implemented, and its degree of advancement if under development.
I am not a professional developer (another branch in IT), so it may not correspond to a working method adapted to the subject ;-)
Sincerely,
@wikijm
Hi @reuterbal,
Is it possible to take a RAW and JPEG picture but only download and process the JPEG?
I use Gphoto2cffi so i think it use line 123 to write the capture Image without using the SD Card on the Camera to buffer?
Thanks in advance
Bockwurst2
Hi,
Thanks for the great work, that really looks impressive !
When I try to execute the project, I always got the following error :
File "C:/Users/François Pérez/Desktop/tools/pbooth/photobooth/main.py", line 32, in
from . import camera, gui
ImportError: cannot import name 'camera'
There must be a misconfiguration somewhere, but I cannot find where.
As you can see, I am runing the project on Windows (but I don't think that really is an issue as I didn't see any OS-specific command
I have tried a few things to fix the import but none of it worked. (simple 'import camera'/putting all camera files to the root ...)
Could you help ?
I am just hobby programmer and trying to build photobooth while surfing accross github I found this and installed. Before this I have tried many but none them worked properly, So very happy and the customisation level is too good I liked that very much.
I Just want to say that if a developer can include the function for social media sharing or sharing via e-mail that can be the great feature for everyone.
Software (please complete the following information):
Describe the bug
Hi! First a big thank you for this great piece of software! I'm planning to use this on my wedding. But i have the following issue printing images with a Canon Selphy CP910.
I have installed the printer with CUPS. It is the default printer and the settings should be correct.
I can print from the command line with a simple
lp photobooth00001.jpg
The picture is printed correctly.
However, if i want to print from the photobooth app, no file is forwarded to the job list of the printer. Not in the "active" tab in CUPS nor the "all jobs" tab.
Hardware
Software
Photobooth log
Photobooth config
[Gui]
module = PyQt5
fullscreen = True
width = 1024
height = 600
hide_cursor = False
style = pastel
[Camera]
module = python-gphoto2
[Gpio]
enable = False
exit_pin = 24
trigger_pin = 23
lamp_pin = 4
[Printer]
enable = True
pdf = False
confirmation = True
module = PyQt5
width = 148
height = 100
[Photobooth]
show_preview = True
greeter_time = 3
countdown_time = 4
display_time = 5
postprocess_time = 60
[Picture]
basedir = %Y-%m-%d
basename = photobooth
num_x = 1
num_y = 1
size_x = 3496
size_y = 2362
min_dist_x = 20
min_dist_y = 20
keep_pictures = False
Can you help me? What am i missing here?
EDIT:
I just noticed that i have installed Gutenprint 5.2.11. This is the newest version for my operating system. Is this the problem?
Sorry this isn't the correct format but I am not done with the whole photobooth but wanted to share my experience while it is fresh in my head.
I had success for rasbian 4.14 and python 3.5 on the pi zero w!
virtualenv -p python3 --system-site-packages .venv
gave an error because it looks like this is the default now.
I had to set the venv to python 3.5, otherwise it kept running 2.7 in the venv.
virtualenv -p /home/username/opt/python-3.5.2/bin/python my_project
The two times you referenced
source .venv/bin/activate
There is a period before .venv
I had to use
source venv/bin/activate
I had a lot of trouble with qt5 so I ended up using
http://www.tal.org/tutorials/building-qt-58-raspberry-pi-debian-stretch
To install it
I am new, maybe these are obvious to some people or maybe straight up wrong, but it totally worked for me!
Thank you so much for all this work that went into this.
-ed
Hi @reuterbal,
Is it possible to take only one picture?
Sadly, my python skills are near to zero.
I assume that it's needed to comment lines 242 to 284, a bunch of other things then 'range' value at line 355 and 356.
Thanks in advance 😃
Hello and thanks for this project, it looks really cool.
I'm having some trouble getting it to work and hope you can help:
I built it per your instructions, start up the program, and when it goes it take a picture it just reads "ERROR: SERIOUS ERROR" with no other output.
I thought it might be related to the fact that I was using Raspian Stretch when this was obviously developed pre-stretch. I reflashed my pi with Jessie but am getting the same results.
I have connected and tried this with two different cameras, and both are able to take a picture from command line with gphoto2
just fine. I also found hackerb9's PR/spork and attempted to use that version but got the same results.
At this point I am unsure of what to try, or if there is any log file I can interrogate for more info and would appreciate some assistance. Thanks in advance.
Describe the bug
When following the installation instructions, all goes well until the "pip install -e ." step. At that point I receive hash errors that I can't seem to bypass. I found some suggestions online to try --no-index and --no-cache-dir, neither seems to work. Output of "pip install -vvv -e ." attached.
Thanks for taking a look. I'm really trying to get this done this weekend if at all possible. Thank you!
Describe the bug
if I change the window size in the settings to 800 x 480 (Resolution of RasPi Touchdisplay) then the screen doesn't look like it should! Also if I choose full hd resolution it looks weird.
To Reproduce
Steps to reproduce the behavior:
Screenshots
Screenshot with 800x480 res
Screenshot with 1920x1080 res
Hardware (please complete the following information)
Software (please complete the following information)
Installed packages
automationhat==0.1.0
blinker==1.3
blinkt==0.1.2
buttonshim==0.0.2
Cap1xxx==0.1.3
chardet==2.3.0
click==6.6
colorama==0.3.7
cryptography==1.7.1
drumhat==0.1.0
enum34==1.1.6
envirophat==1.0.0
ExplorerHAT==0.4.2
Flask==0.12.1
fourletterphat==0.1.0
gpiozero==1.4.1
idna==2.2
ipaddress==1.0.17
itsdangerous==0.24
Jinja2==2.8
keyring==10.1
keyrings.alt==1.3
MarkupSafe==0.23
mcpi==0.1.1
microdotphat==0.2.1
mote==0.0.3
motephat==0.0.2
numpy==1.12.1
oauthlib==2.0.1
pantilthat==0.0.5
phatbeat==0.1.1
pianohat==0.1.0
picamera==1.13
picraft==1.0
piglow==1.2.4
pigpio==1.38
Pillow==4.0.0
pyasn1==0.1.9
pycrypto==2.6.1
pygame==1.9.3
pygobject==3.22.0
pyinotify==0.9.6
PyJWT==1.4.2
pyOpenSSL==16.2.0
pyserial==3.2.1
pyxdg==0.25
rainbowhat==0.1.0
requests==2.12.4
requests-oauthlib==0.7.0
RPi.GPIO==0.6.3
RTIMULib==7.2.1
scrollphat==0.0.7
scrollphathd==1.2.1
SecretStorage==2.3.1
sense-emu==1.0
sense-hat==2.2.0
simplejson==3.10.0
six==1.10.0
skywriter==0.0.7
sn3218==1.2.7
spidev==3.3
touchphat==0.0.1
twython==3.4.0
unicornhathd==0.0.3
urllib3==1.19.1
Werkzeug==0.11.15
Photobooth log
Insert the content of photobooth.log here
Additional context
Add any other context about the problem here.
Your project is great, I am currently configuring it in a raspberry pi 3 and everything works perfectly, but the monitor that I have is not tactile and when doing the 4 photos I can not give the start button.
You could add the gpio trigger to move from this screen and add another gpio to print.
I feel my English.
Thank you very much.
Describe the bug
If I press the button on the screen nothing happens and it doesn't take any photo.
To Reproduce
Steps to reproduce the behavior:
I installed a new raspbian and then followed your instructions. (The description for Disabling the screensaver/screen blanking wasn't clear for me so i skipped that). I connected my Canon eos 600d via usb with the raspberry pi and started the application.
Expected behavior
I expect that it starts to take a photo
Hardware (please complete the following information):
Software (please complete the following information):
Photobooth log:
2018-07-06 18:32:17,050 - root - INFO - Initializing photobooth
2018-07-06 18:32:17,051 - root - INFO - Photobooth version: 0.3.dev23+g2ba7682
2018-07-06 18:32:17,055 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-07-06 18:32:17,060 - root - INFO - Reading config file "photobooth.cfg"
2018-07-06 18:32:18,048 - root - INFO - Using printer ""
2018-07-06 18:32:20,754 - root - INFO - Number of last existing file: 0
2018-07-06 18:32:20,757 - root - INFO - Saving assembled pictures as "2018-07-06/photoboothXXXXX.jpg"
2018-07-06 18:32:20,758 - root - INFO - Using python-gphoto2 bindings
2018-07-06 18:32:20,912 - gphoto2 - WARNING - (b'ptp_list_folder_eos [library.c:7342]') b'storage 0xffffffff, but handle 0x00000000?'
2018-07-06 18:32:20,951 - root - INFO - Camera summary: Manufacturer: Canon Inc.
Model: Canon EOS 600D
Version: 3-1.0.2
Serial Number: XXXXX
Vendor Extension ID: 0xb (2.0)
Capture Formats: JPEG
Display Formats: Association/Directory, Script, DPOF, MS AVI, MS Wave, JPEG, CRW, Unknown(b103), Unknown(bf02), Defined Type, Unknown(b104), Unknown(b105)
Device Capabilities:
File Download, File Deletion, File Upload
No Image Capture, No Open Capture, Canon EOS Capture, Canon EOS Shutter Button
Storage Devices Summary:
store_00020001:
StorageDescription: SD
VolumeLabel: None
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read-Write
Maximum Capability: 7939817472 (7572 MB)
Free Space (Bytes): 7789084672 (7428 MB)
Free Space (Images): -1
Device Property Summary:
Property 0xd402:(read only) (type=0xffff) 'Canon EOS 600D'
Property 0xd407:(read only) (type=0x6) 1
Property 0xd406:(readwrite) (type=0xffff) 'Unknown Initiator'
Property 0xd303:(read only) (type=0x2) 1
Battery Level(0x5001):(read only) (type=0x2) Enumeration [100,0,75,0,50] value: 100% (100)
2018-07-06 18:32:21,050 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,052 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,052 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,053 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,054 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,055 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,056 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,057 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,058 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,060 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,062 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,063 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,064 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,065 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,066 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,067 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,067 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,068 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,069 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,069 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,070 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,071 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,071 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,072 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,072 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,073 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,074 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,075 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,075 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,076 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,077 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,078 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,079 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,080 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,080 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,081 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,082 - gphoto2 - WARNING - (b'gp_widget_count_choices [gphoto2-widget.c:784]') b"Invalid parameters: '(widget->type == GP_WIDGET_RADIO) || (widget->type == GP_WIDGET_MENU)' is NULL/FALSE."
2018-07-06 18:32:21,082 - root - INFO - Camera configuration:
Camera Actions [actions]:
Synchronize camera date and time with PC [syncdatetime]: 0
UI Lock [uilock]: 2
Drive Canon DSLR Autofocus [autofocusdrive]: 0
Drive Canon DSLR Manual focus [manualfocusdrive]: None (Near 1, Near 2, Near 3, None, Far 1, Far 2, Far 3, )
Cancel Canon DSLR Autofocus [cancelautofocus]: 0
Canon EOS Zoom [eoszoom]: 0
Canon EOS Zoom Position [eoszoomposition]: 0,0
Canon EOS Viewfinder [viewfinder]: 2
Canon EOS Remote Release [eosremoterelease]: None (None, Press Half, Press Full, Release Half, Release Full, Immediate, Press 1, Press 2, Press 3, Release 1, Release 2, Release 3, )
PTP Opcode [opcode]: 0x1001,0xparam1,0xparam2
Camera Settings [settings]:
Camera Date and Time [datetime]: 1530895004
Quick Review Time [reviewtime]: 2 seconds (None, 2 seconds, 4 seconds, 8 seconds, Hold, )
Camera Output [output]: Off (TFT, PC, TFT + PC, Setting 4, Setting 5, Setting 6, Setting 7, Off, )
Recording Destination [movierecordtarget]: None (Card, None, )
EVF Mode [evfmode]: 1 (0, 1, )
Owner Name [ownername]:
Artist [artist]: Joshua
Copyright [copyright]:
Custom Functions Ex [customfuncex]: c8,4,1,2c,3,101,1,0,103,1,0,10f,1,0,2,2c,3,201,1,0,202,1,0,203,1,0,3,20,2,50e,1,0,60f,1,0,4,38,4,701,1,0,704,1,0,811,1,0,80f,1,0,
Focus Info [focusinfo]: eosversion=4,size=5184x3456,size2=5184x3456,points={{-1477,0,186,139},{-886,418,186,139},{-886,-418,186,139},{0,787,127,196},{0,0,231,238},{0,-787,127,196},{886,418,186,139},{886,-418,186,139},{1477,0,186,139}},select={},unknown={ff010000ffff}
Auto Power Off [autopoweroff]: 0
Depth of Field [depthoffield]: 0
Capture Target [capturetarget]: Internal RAM (Internal RAM, Memory card, )
Capture [capture]: 0
Camera Status Information [status]:
Serial Number [serialnumber]: XXXXX
Camera Manufacturer [manufacturer]: Canon Inc.
Camera Model [cameramodel]: Canon EOS 600D
Device Version [deviceversion]: 3-1.0.2
Vendor Extension [vendorextension]: None
Camera Model [model]: 2147484294
PTP Version [ptpversion]: 256
Battery Level []: 100%
Battery Level [batterylevel]: 100%
Lens Name [lensname]: EF-S18-55mm f/3.5-5.6 IS II
Serial Number [eosserialnumber]: 073063011527
Shutter Counter [shuttercounter]: 8042
Available Shots [availableshots]: 84220
Image Settings [imgsettings]:
Image Format [imageformat]: Large Normal JPEG (Large Fine JPEG, Large Normal JPEG, Medium Fine JPEG, Medium Normal JPEG, Small Fine JPEG, Small Normal JPEG, Smaller JPEG, Tiny JPEG, RAW + Large Fine JPEG, RAW, )
Image Format SD [imageformatsd]: Large Normal JPEG (Large Fine JPEG, Large Normal JPEG, Medium Fine JPEG, Medium Normal JPEG, Small Fine JPEG, Small Normal JPEG, Smaller JPEG, Tiny JPEG, RAW + Large Fine JPEG, RAW, )
ISO Speed [iso]: Auto (Auto, 100, 200, 400, 800, 1600, 3200, 6400, )
WhiteBalance [whitebalance]: Daylight (Auto, Daylight, Shadow, Cloudy, Tungsten, Fluorescent, Flash, Manual, )
WhiteBalance Adjust A [whitebalanceadjusta]: 0 (-9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
WhiteBalance Adjust B [whitebalanceadjustb]: 0 (-9, -8, -7, -6, -5, -4, -3, -2, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, )
WhiteBalance X A [whitebalancexa]: 0
WhiteBalance X B [whitebalancexb]: 0
Color Space [colorspace]: sRGB (sRGB, AdobeRGB, )
Capture Settings [capturesettings]:
Focus Mode [focusmode]: One Shot (One Shot, AI Focus, AI Servo, )
Canon Auto Exposure Mode [autoexposuremode]: Manual (P, TV, AV, Manual, Bulb, A_DEP, DEP, Custom, Lock, Green, Night Portrait, Sports, Portrait, Landscape, Closeup, Flash Off, )
Drive Mode [drivemode]: Single (Single, Continuous, Timer 10 sec, Timer 2 sec, Unknown value 0007, )
Picture Style [picturestyle]: Auto (Standard, Portrait, Landscape, Neutral, Faithful, Monochrome, Auto, User defined 1, User defined 2, User defined 3, )
Aperture [aperture]: 4 (4, 4.5, 5, 5.6, 6.3, 7.1, 8, 9, 10, 11, 13, 14, 16, 18, 20, 22, 25, )
Shutter Speed [shutterspeed]: 1/25 (bulb, 30, 25, 20, 15, 13, 10, 8, 6, 5, 4, 3.2, 2.5, 2, 1.6, 1.3, 1, 0.8, 0.6, 0.5, 0.4, 0.3, 1/4, 1/5, 1/6, 1/8, 1/10, 1/13, 1/15, 1/20, 1/25, 1/30, 1/40, 1/50, 1/60, 1/80, 1/100, 1/125, 1/160, 1/200, 1/250, 1/320, 1/400, 1/500, 1/640, 1/800, 1/1000, 1/1250, 1/1600, 1/2000, 1/2500, 1/3200, 1/4000, )
Metering Mode [meteringmode]: Evaluative (Evaluative, Partial, Spot, Center-weighted average, )
Bracket Mode [bracketmode]: 0
Auto Exposure Bracketing [aeb]: off (off, +/- 1/3, +/- 2/3, +/- 1, +/- 1 1/3, +/- 1 2/3, +/- 2, )
Other PTP Device Properties [other]:
PTP Property 0xd402 [d402]: Canon EOS 600D
PTP Property 0xd407 [d407]: 1
PTP Property 0xd406 [d406]: Unknown Initiator
PTP Property 0xd303 [d303]: 1
Battery Level [5001]: 100 (100, 0, 75, 0, 50, )
2018-07-06 18:32:22,699 - root - INFO - Countdown with preview activated
2018-07-06 18:32:22,701 - root - INFO - GPIO enabled (lamp_pin=4, trigger_pin=23, exit_pin=24)
Additional context
Add any other context about the problem here.
Hey guys,
So I'm looking forward to finally digging into your photobooth. I was able to get a super basic photobooth running a few months ago, but wanted to upgrade the UI, and I came across your project which seems to solve that issue.
I'm running into an issue with the installation of the app though. I have attached the pip error log here: pip.log
Any help would be greatly appreciated!
I found thanks to pygame how to introduce music with python.
I simply wrote this:
import pygame.mixer
pygame.init()
pygame.mixer.music.load("myFile.wav")
pygame.mixer.music.play()
play this: https://www.youtube.com/watch?v=G4fAO7UrTEs
what I would like is to have this "beep" at each count according to each count chosen by the user (me, 3 for example)
and
another sound while loading the final photo.
I would like to try alone but
Can you tell me which file I need to modify to succeed?
First, I want to thank you for the wonderful work you've done on this program. It's exactly what I was looking for.
My issue is that after the images have been taken, processed, and sent to the printer, the printer gives an error message saying "Cannot read data! Cannot print incompatible images or memory card not readable."
I followed your installation instructions exactly. Very thorough and helpful - this is the only issue I've had in the entire process thanks to them.
I am using a Raspberry Pi 3B+ with the latest version of Raspian, Gutenprint 5.2.13.
Canon SELPHY CP1300, wirelessly connected (CUPS would not recognize via USB)
Raspberry Pi camera V2
I've tested the printer works with the pi by manually printing one of the captured photobooth images using:
lp -d Canon_SELPHY_CP1300 -o raw [image name]
from the command line and it printed just fine.
I am new to Raspberry Pi and Python, and it has been quite a while since I've worked with any flavor of Linux, so please forgive me if this is a newbie issue.
Any help would be appreciated.
Thanks.
pi@raspberrypi:~/photobooth $ python3 -m photobooth
Traceback (most recent call last):
File "/usr/local/lib/python3.6/runpy.py", line 183, in _run_module_as_main
mod_name, mod_spec, code = _get_module_details(mod_name, _Error)
File "/usr/local/lib/python3.6/runpy.py", line 142, in _get_module_details
return _get_module_details(pkg_main_name, error)
File "/usr/local/lib/python3.6/runpy.py", line 109, in _get_module_details
__import__(pkg_name)
File "/home/pi/photobooth/photobooth/__init__.py", line 21, in <module>
from .main import main
File "/home/pi/photobooth/photobooth/main.py", line 30, in <module>
from . import camera, gui
File "/home/pi/photobooth/photobooth/camera/__init__.py", line 22, in <module>
from PIL import Image, ImageOps
ModuleNotFoundError: No module named 'PIL'
pi@raspberrypi:~/photobooth $
pi@raspberrypi:~/photobooth $ ls -lrth
total 52M
-rw-r--r-- 1 pi pi 4.6K Aug 25 11:42 README.md
-rw-r--r-- 1 pi pi 67 Aug 25 11:42 MANIFEST.in
-rw-r--r-- 1 pi pi 34K Aug 25 11:42 LICENSE.txt
-rw-r--r-- 1 pi pi 8.4K Aug 25 11:42 INSTALL.md
drwxr-xr-x 2 pi pi 4.0K Aug 25 11:42 housing
-rw-r--r-- 1 pi pi 8.8K Aug 25 11:42 setup.py
drwxr-xr-x 2 pi pi 4.0K Aug 25 11:42 screenshots
-rw-r--r-- 1 pi pi 52M Aug 25 12:11 eos5dmk3-gphoto2.5.14.log
drwxr-xr-x 2 pi pi 4.0K Aug 25 12:13 photobooth.egg-info
drwxr-xr-x 2 pi pi 4.0K Aug 25 12:13 2018-08-25
-rw-r--r-- 1 pi pi 6.3K Aug 25 13:04 photobooth.log.2018-08-25
drwxr-xr-x 8 pi pi 4.0K Aug 25 20:41 photobooth
drwxr-xr-x 2 pi pi 4.0K Aug 26 16:29 2018-08-26
-rw-r--r-- 1 pi pi 714 Aug 26 16:29 photobooth.log
pi@raspberrypi:~/photobooth $
pi@raspberrypi:~/photobooth $
pi@raspberrypi:~/photobooth $ cat photobooth.log
2018-08-26 16:29:53,044 - root - INFO - Initializing photobooth
2018-08-26 16:29:53,047 - root - INFO - Photobooth version: 0.4.dev11+g4ff982c
2018-08-26 16:29:53,050 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-08-26 16:29:53,063 - root - INFO - Reading config file "photobooth.cfg"
2018-08-26 16:29:53,146 - root - INFO - Number of last existing file: 0
2018-08-26 16:29:53,151 - root - INFO - Saving pictures as "2018-08-26/photoboothXXXXX.jpg"
2018-08-26 16:29:53,154 - root - INFO - GPIO disabled
2018-08-26 16:29:53,158 - root - INFO - Number of last existing file: 0
2018-08-26 16:29:53,159 - root - INFO - Saving pictures as "2018-08-26/photobooth_shot_XXXXX.jpg"
pi@raspberrypi:~/photobooth $
pi@raspberrypi:~/photobooth $
pi@raspberrypi:~/photobooth $ sudo pip install pillow
Exception:
Traceback (most recent call last):
File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/usr/local/lib/python3.4/dist-packages/pip/commands/install.py", line 272, in run
with self._build_session(options) as session:
File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {}
File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 933, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1
Traceback (most recent call last):
File "/usr/local/bin/pip", line 11, in <module>
sys.exit(main())
File "/usr/local/lib/python3.4/dist-packages/pip/__init__.py", line 233, in main
return command.main(cmd_args)
File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 251, in main
timeout=min(5, options.timeout)) as session:
File "/usr/local/lib/python3.4/dist-packages/pip/basecommand.py", line 72, in _build_session
insecure_hosts=options.trusted_hosts,
File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 329, in __init__
self.headers["User-Agent"] = user_agent()
File "/usr/local/lib/python3.4/dist-packages/pip/download.py", line 93, in user_agent
from pip._vendor import distro
File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 1050, in <module>
_distro = LinuxDistribution()
File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 594, in __init__
if include_lsb else {}
File "/usr/local/lib/python3.4/dist-packages/pip/_vendor/distro.py", line 933, in _get_lsb_release_info
raise subprocess.CalledProcessError(code, cmd, stdout)
subprocess.CalledProcessError: Command 'lsb_release -a' returned non-zero exit status 1
pi@raspberrypi:~/photobooth $
Hi reuterbal,
your program looks really fine. Thanks for your affords in creating this! Unfortunately I'm struggling to get it to work for me. Maybe you have an advice for me?
My setup:
I can start photobooth just fine up to the point where it asks "Hit the button" for taking photo. However, upon clicking on the button nothing is happening. A folder with the current date was created in the photobooth folder, but has no content. Not sure if I should get a preview image of the camera because I don't.
The camera itself is working fine, as I tested by taking a still image via bash. In the photobooth settings, I've chosen "picamera" as camera module.
Including the log as it may contain something helpful
Photobooth log:
018-07-17 12:01:03,715 - root - INFO - Initializing photobooth
2018-07-17 12:01:03,717 - root - INFO - Photobooth version: 0.3.dev23+g2ba7682
2018-07-17 12:01:03,720 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-07-17 12:01:03,725 - root - INFO - Reading config file "photobooth.cfg"
libEGL warning: DRI2: failed to authenticate
qt5ct: using qt5ct plugin
2018-07-17 12:01:07,319 - root - INFO - Using printer "HP_ENVY_Photo_6200_series"
qt5ct: custom style sheet is disabled
2018-07-17 12:01:17,332 - root - INFO - Number of last existing file: 0
2018-07-17 12:01:17,334 - root - INFO - Saving assembled pictures as "2018-07-17/photoboothXXXXX.jpg"
2018-07-17 12:01:17,335 - root - INFO - Using PiCamera
2018-07-17 12:01:19,117 - root - INFO - Countdown with preview activated
2018-07-17 12:01:19,118 - root - INFO - GPIO disabled
2018-07-17 12:03:42,998 - root - INFO - Teardown of camera requested
2018-07-17 12:03:43,000 - root - INFO - Teardown of camera
2018-07-17 12:03:43,002 - root - INFO - Camera exited with status code 123
2018-07-17 12:03:46,269 - root - INFO - Exiting photobooth with status code 0
Any advice and to what I could try next?
Takes pictures then crashes despite photobooth_00.jpg existing
SERIOUS ERROR: IOError("cannot identify image file '/tmp/photobooth_00.jpg'",)
Error: SERIOUS ERROR!
Hi @reuterbal,
Describe the bug
During a fresh install, I get multiple /usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option
error during a fresh install
To Reproduce
Steps to reproduce the behavior:
Follow install instructions, from Configure and update Raspbian to Install photobooth with dependencies
Expected behavior
A functional installation
Screenshots
Here is a 'shell video record' of the install process I played:
https://asciinema.org/a/wci1XLgG52wxv37y1W10kFMm4
Hardware (please complete the following information):
Software (please complete the following information):
Photobooth log:
N/A, please find /home/pi/.pip/pip.log instead:
------------------------------------------------------------
/home/pi/photobooth/.venv/bin/pip run on Sat Jun 16 17:46:57 2018
Obtaining file:///home/pi/photobooth
Running setup.py (path:/home/pi/photobooth/setup.py) egg_info for package from file:///home/pi/photobooth
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/pi/photobooth/setup.py", line 205, in <module>
'Source': 'https://github.com/reuterbal/photobooth/',
File "/usr/lib/python3.4/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/setuptools/dist.py", line 266, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python3.4/distutils/dist.py", line 280, in __init__
self.finalize_options()
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/setuptools/dist.py", line 301, in finalize_options
ep.load()(self, ep.name, value)
File "/home/pi/photobooth/setuptools_scm-2.1.0-py3.4.egg/setuptools_scm/integration.py", line 10, in version_keyword
File "/home/pi/photobooth/setuptools_scm-2.1.0-py3.4.egg/setuptools_scm/version.py", line 44, in _warn_if_setuptools_outdated
setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12)
Complete output from command python setup.py egg_info:
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'long_description_content_type'
warnings.warn(msg)
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'python_requires'
warnings.warn(msg)
/usr/lib/python3.4/distutils/dist.py:260: UserWarning: Unknown distribution option: 'project_urls'
warnings.warn(msg)
Traceback (most recent call last):
File "<string>", line 17, in <module>
File "/home/pi/photobooth/setup.py", line 205, in <module>
'Source': 'https://github.com/reuterbal/photobooth/',
File "/usr/lib/python3.4/distutils/core.py", line 108, in setup
_setup_distribution = dist = klass(attrs)
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/setuptools/dist.py", line 266, in __init__
_Distribution.__init__(self,attrs)
File "/usr/lib/python3.4/distutils/dist.py", line 280, in __init__
self.finalize_options()
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/setuptools/dist.py", line 301, in finalize_options
ep.load()(self, ep.name, value)
File "/home/pi/photobooth/setuptools_scm-2.1.0-py3.4.egg/setuptools_scm/integration.py", line 10, in version_keyword
File "/home/pi/photobooth/setuptools_scm-2.1.0-py3.4.egg/setuptools_scm/version.py", line 44, in _warn_if_setuptools_outdated
setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12)
----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/pi/photobooth
Exception information:
Traceback (most recent call last):
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/pip/commands/install.py", line 290, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/pip/req.py", line 1146, in prepare_files
req_to_install.run_egg_info()
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/pip/req.py", line 326, in run_egg_info
command_desc='python setup.py egg_info')
File "/home/pi/photobooth/.venv/lib/python3.4/site-packages/pip/util.py", line 716, in call_subprocess
% (command_desc, proc.returncode, cwd))
pip.exceptions.InstallationError: Command python setup.py egg_info failed with error code 1 in /home/pi/photobooth
Additional context
N/A
hey! Everything works fine after installing a few more dependencies for cv2 - but i ran into problems disabling the "happy"-screen. After presenting / reviewing the image, the booth should start over automatically, is this possible?
Does this project is able to work with rpi camera v2?
I tried with both gphoto and cv camera modules, also deactivated the preview.
i get this error in photobooth.err
Traceback (most recent call last):
File "photobooth.py", line 6, in <module>
from glob import glob
File "/usr/lib/python2.7/glob.py", line 1, in <module>
"""Filename globbing utility."""
KeyboardInterrupt
and this in the log:
OpenCV available
Info: Number of last existing file: 0
Info: Saving assembled pictures as: 2018-05-12/picXXXXX.jpgOpenCV available
Info: Number of last existing file: 0
Info: Saving assembled pictures as: 2018-05-12/picXXXXX.jpg
Your Raspberry Pi is board revision 3
RPi.GPIO version is 0.6.3
SERIOUS ERROR: GuiException("ERROR: Can't open image '/tmp/photobooth_preview.jpg': Unsupported image format",)
Error: SERIOUS ERROR!
i instaled the python bindings for gphoto, and the files supposed to be deleted were not there to be deleted.
thank you for a wonderful project.
Hello everyone!
I introduce myself, Pierre, 28 years old and completely novice in the field raspberry.
I create two Arcade thanks to the raspberry ... but it is not the subject.
first, a huge thank you for the topic photobooth, very well done / detailed
I still precise, I am novice ...
I did not complete the part Canon selphy CP1200 / CP1300 printer
because I use canon IP 2850 PIXIMA
is that bad???
I have:
Describe the bug
the print does not start when I click on "print" when i'm on program photobooth
Expected behavior
I would like to understand where the problem comes from because the image is sent to the printer but remains in the queue
I have unfortunately no image coming out of the printer = (
in advance I wish to thank you for any advice and the time you will take to read me!
I also specify that I am French and that I pass all my texts by translation = /
Would be nice, to be able to see the preview all the time and a push on the button only starts the countdown
Hi @reuterbal,
just tested your software and I'm very impressed! Thanks for all the effort you put in this! All basic features are working as expected.
While using the software I had some ideas for enhancements:
My System:
Additional equipment
Software (please complete the following information):
Problems:
Pictures:
I will add some pictures, when the enclosure redesign is finished.
If you would like to get in touch, just drop by FAU FabLab Tuesday evening 18-20Uhr
Describe your photobooth
I recently used this software with some modifications for a friends wedding. Everything went great! My hardware was just a DSLR, 7" rpi touch screen attached to my raspberry pi. My goal was to set it up, and not have to worry about it the rest of the night, and it worked as I had hoped.
Hardware (please complete the following information):
Additional equipment
Flash on camera
Software (please complete the following information):
Modifications:
For the wedding, I added 2 main features: Google Photos integration and adding a footer for a wedding hashtag.
Since then, I have added the ability to change the background (from plain white to a custom one created by me) and change to have odd number of photos, such as 3. The purpose of this is to have 2 photos in the top row, 1 photo on the left/right in the bottom row, and the empty space would have a wedding watermark/logo.
Going forward, it's mostly just tweaking different things, such as photo spacing. Also want to interact with some other API's for a better photo storage option.
Problems:
My main problems were not with the photobooth software, but working with different API's. I tried a few photo gallery specific websites that provided API, but I could not get them working for some reason. Was kind of a last minute switch to Google Photos, but it worked out well in the end. Also didn't get the lighting I had hoped, nor the angle I wanted. So upgrading my lighting and adding a wide angle lens to my inventory going forward.
It would be good to be able to add text to the final printed image in the white space between the photos. For instance the bride and grooms name and wedding date.
Could someone direct me as to how i could achieve this
Describe the bug
When "Keep single shots" is set, the last image is corrupt. I'm using an Canon EOS Rebel T6 (1300D), which is supported by gphoto2. I've tested with multiple numbers of photos and the last photo is always corrupt. I've swapped out OS and hardware thinking that the RPI could not keep up with writing images. This had no effect. I wonder if there are two processes trying to read/write the last file at the same time. Ex, the file is being written to disk at the same time that the process creates the final picture.
If I disable "Keep single shots", all images are correct.
To Reproduce.
Steps to reproduce the behavior:
Expected behavior
I expect the last image to not be corrupted.
Hardware (please complete the following information)
I just updated to the latest version and encountered a problem:
My camera is mounted upside down -> I have to rotate the picture. In the previous version I just added
myImage = Image.open(io.BytesIO(file_data))
rotatedImage = myImage.rotate(180)
return rotatedImage
to getPreview function in CameraGphoto2.py
This doesn't work anymore:
Traceback (most recent call last):
File "/usr/lib/python3.5/multiprocessing/process.py", line 249, in _bootstrap
self.run()
File "/home/pi/photobooth/photobooth/main.py", line 52, in run
camera.modules, self._cfg.get('Camera', 'module'), 'camera')
File "/home/pi/photobooth/photobooth/util.py", line 33, in lookup_and_import
'photobooth.' + package + '.' + result[0])
File "/home/pi/photobooth/.venv/lib/python3.5/importlib/init.py", line 126, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 986, in _gcd_import
File "", line 969, in _find_and_load
File "", line 958, in _find_and_load_unlocked
File "", line 673, in _load_unlocked
File "", line 669, in exec_module
File "", line 775, in get_code
File "", line 735, in source_to_code
File "", line 222, in _call_with_frames_removed
File "/home/pi/photobooth/photobooth/camera/CameraGphoto2.py", line 142
myImage = Image.open(io.BytesIO(file_data))
^
TabError: inconsistent use of tabs and spaces in indentation
2018-08-18 14:30:03,955 - root - INFO - GPIO enabled (lamp_pin=4, trigger_pin=23, exit_pin=24)
libEGL warning: DRI2: failed to authenticate** (python:3968): WARNING **: Error retrieving accessibility bus address: org.freedesktop.DBus.Error.ServiceUnknown: The name org.a11y.Bus was not provided $
Any suggestions how to solve this? It's my girlfriends birthday party tonight...
Best regards,
Michael
Hello,
I love the photobooth software I am new to rasberri pi. My question is how can i add a picture in one of the corners when the file prints. For example "my own design. Jpeg
Hello Team Mates,
I was successful in installing and testing this photobooth with gphoto2-commandline interface. However if I am trying to use python-gphoto2 mode then the application is crashing with following errror.
I am attempting this on raspberry pi 2b with Nikon D5200 DSLR.
However, gphoto2-commandline mode works fine.
pi@raspberrypi:~/photobooth $ python3.5 -m photobooth
2018-09-18 16:02:42,878 - root - INFO - Initializing photobooth
2018-09-18 16:02:42,880 - root - INFO - Photobooth version: 0.4.dev11+g4ff982c
2018-09-18 16:02:42,887 - root - INFO - Reading config file "/home/pi/photobooth/photobooth/defaults.cfg"
2018-09-18 16:02:42,897 - root - INFO - Reading config file "photobooth.cfg"
2018-09-18 16:02:43,027 - root - INFO - GPIO disabled
2018-09-18 16:02:43,043 - root - INFO - Number of last existing file: 4
2018-09-18 16:02:43,055 - root - INFO - Saving pictures as "2018-09-18/photoboothXXXXX.jpg"
2018-09-18 16:02:43,067 - root - INFO - Number of last existing file: 0
2018-09-18 16:02:43,073 - root - INFO - Saving pictures as "2018-09-18/photobooth_shot_XXXXX.jpg"
QXcbConnection: Failed to initialize XRandr
qt5ct: using qt5ct plugin
qt5ct: custom style sheet is disabled
2018-09-18 16:02:58,703 - root - INFO - Using python-gphoto2 bindings
2018-09-18 16:02:59,790 - root - INFO - Camera summary: Manufacturer: Nikon Corporation
Model: D5200
Version: V1.03
Serial Number: 64534310000000000000000000000000
Vendor Extension ID: 0xa (1.0)
Vendor Extension Description: microsoft.com: 1.0
Capture Formats: JPEG Undefined Type
Display Formats: Undefined Type, Association/Directory, Script, DPOF, Apple Quicktime, JPEG
Device Capabilities:
File Download, File Deletion, File Upload
Generic Image Capture, No Open Capture, Nikon Capture 1, Nikon Capture 2, Nikon Capture 3
Storage Devices Summary:
store_00010001:
StorageDescription: None
VolumeLabel: [Slot 1]
Storage Type: Removable RAM (memory card)
Filesystemtype: Digital Camera Layout (DCIM)
Access Capability: Read Only with Object deletion
Maximum Capability: 15923150848 (15185 MB)
Free Space (Bytes): 12667781120 (12080 MB)
Free Space (Images): 810
Device Property Summary:
Battery Level(0x5001):(read only) (type=0x2) Range [0 - 100, step 1] value: 100% (100)
Image Size(0x5003):(readwrite) (type=0xffff) Enumeration [
'6000x4000',
'4496x3000',
'2992x2000'
] value: '6000x4000'
Compression Setting(0x5004):(readwrite) (type=0x2) Enumeration [0,1,2,4,5,6,7] value: JPEG Fine (2)
White Balance(0x5005):(readwrite) (type=0x4) Enumeration [2,4,5,6,7,32784,32785,32787] value: Automatic (2)
F-Number(0x5007):(read only) (type=0x4) Enumeration [560,630,710,800,900,1000,1100,1300,1400,1600,1800,2000,2200,2500,2900,3200,3600] value: f/5.6 (560)
Focal Length(0x5008):(read only) (type=0x6) Range [1800 - 5500, step 1] value: 55 mm (5500)
Focus Mode(0x500a):(read only) (type=0x4) Enumeration [1,32784,32785,32786,32787] value: AF-A (32786)
Exposure Metering Mode(0x500b):(readwrite) (type=0x4) Enumeration [2,3,4] value: Multi-spot (3)
Flash Mode(0x500c):(readwrite) (type=0x4) Enumeration [2,4,32784] value: Auto (32784)
Exposure Time(0x500d):(read only) (type=0x6) Enumeration [2,3,4,5,6,8,10,12,15,20,25,31,40,50,62,80,100,125,166,200,250,333,400,500,666,769,1000,1250,1666,2000,2500,3333,4000,5000,6250,7692,10000,13000,16000,20000,25000,30000,40000,50000,60000,80000,100000,130000,150000,200000,250000,300000] value: 0.0033 sec (333)
Exposure Program Mode(0x500e):(read only) (type=0x4) Enumeration [1,2,3,4,32784,32785,32786,32787,32788,32790,32791,32792,32793] value: Auto (32784)
Exposure Index (film speed ISO)(0x500f):(readwrite) (type=0x4) Enumeration [100,125,160,200,250,320,400,500,640,800,1000,1250,1600,2000,2500,3200,4000,5000,6400,8000,10000,12800,25600] value: ISO 100 (100)
Exposure Bias Compensation(0x5010):(readwrite) (type=0x3) Enumeration [-5000,-4666,-4333,-4000,-3666,-3333,-3000,-2666,-2333,-2000,-1666,-1333,-1000,-666,-333,0,333,666,1000,1333,1666,2000,2333,2666,3000,3333,3666,4000,4333,4666,5000] value: 0.0 stops (0)
Date & Time(0x5011):(readwrite) (type=0xffff) '20180918T160737'
Still Capture Mode(0x5013):(readwrite) (type=0x4) Enumeration [1,2,32784,32785,32788,32789,32790] value: Single Shot (1)
Burst Number(0x5018):(readwrite) (type=0x4) Range [1 - 100, step 1] value: 1
Focus Metering Mode(0x501c):(readwrite) (type=0x4) Enumeration [2,32784,32785,32786,32787,32788] value: Closest Subject (32785)
Property 0xd303:(read only) (type=0x2) 1
Property 0xd406:(readwrite) (type=0xffff) 'Windows/6.0.5330.0 MTPClassDriver/6.0.5330.0'
Property 0xd407:(read only) (type=0x6) 1
Reset Bank 0(0xd015):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0
Auto White Balance Bias(0xd017):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84
Tungsten White Balance Bias(0xd018):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84
Fluorescent White Balance Bias(0xd019):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84
Daylight White Balance Bias(0xd01a):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84
Flash White Balance Bias(0xd01b):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84
Cloudy White Balance Bias(0xd01c):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84
Shady White Balance Bias(0xd01d):(readwrite) (type=0x2) Range [0 - 168, step 1] value: 84
White Balance Preset Number(0xd01f):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0
White Balance Preset Value 0(0xd025):(read only) (type=0x6) 40042905
White Balance Preset Value 1(0xd026):(read only) (type=0x6) 40042905
Color Space(0xd032):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0
Video Mode(0xd036):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1
Effect Mode(0xd037):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 2
Reset Menu Bank(0xd045):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0
PTP_DPC_NIKON_A1AFCModePriority(0xd048):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1
Auto ISO(0xd054):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0)
Exposure Step(0xd056):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1/3 (0)
Live View AF Area(0xd05d):(readwrite) (type=0x1) Range [0 - 3, step 1] value: 0
Live View AF Focus(0xd061):(readwrite) (type=0x2) Enumeration [0,2,3,4] value: 0
Exposure delay mode(0xd06a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0)
Long Exposure Noise Reduction(0xd06b):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0)
File Number Sequencing(0xd06c):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Off (0)
High ISO noise reduction(0xd070):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3
Bracket Set(0xd078):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AE only (1)
No CF Card Release(0xd08a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (1)
AF Area Point(0xd08d):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0)
Clean Image Sensor(0xd08f):(readwrite) (type=0x2) Range [0 - 3, step 1] value: 3
Image Comment String(0xd090):(readwrite) (type=0xffff) ' '
Image Comment Enable(0xd091):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0)
Image Rotation(0xd092):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0)
Movie Screen Size(0xd0a0):(readwrite) (type=0x2) Range [0 - 4, step 1] value: 0
Property 0xd0a8:(readwrite) (type=0x2) Range [1 - 20, step 1] value: 15
Property 0xd0a4:(read only) (type=0x6) 16384
Manual Movie Setting(0xd0a6):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Yes (1)
Movie Quality(0xd0a7):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 1
Movie Microphone(0xd0a2):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0
Bracketing Enable(0xd0c0):(readwrite) (type=0x2) Range [0 - 1, step 1] value: Off (0)
Exposure Bracketing Step(0xd0c1):(readwrite) (type=0x2) Range [0 - 7, step 1] value: 0
Exposure Bracketing Program(0xd0c2):(read only) (type=0x2) Range [2 - 2, step 1] value: 2
Auto Exposure Bracket Count(0xd0c3):(read only) (type=0x2) Range [1 - 3, step 1] value: 1
White Balance Bracket Step(0xd0c4):(read only) (type=0x2) Range [0 - 2, step 1] value: 0
White Balance Bracket Program(0xd0c5):(read only) (type=0x2) Range [2 - 2, step 1] value: 2
Property 0xd0c6:(read only) (type=0x2) Range [0 - 0, step 1] value: 0
Lens ID(0xd0e0):(read only) (type=0x2) 162
Lens Sort(0xd0e1):(read only) (type=0x2) Range [0 - 1, step 1] value: 1
Lens Type(0xd0e2):(read only) (type=0x2) 127
Min. Focal Length(0xd0e3):(read only) (type=0x6) 18 mm (1800)
Max. Focal Length(0xd0e4):(read only) (type=0x6) 55 mm (5500)
Max. Aperture at Min. Focal Length(0xd0e5):(read only) (type=0x4) f/3.5 (350)
Max. Aperture at Max. Focal Length(0xd0e6):(read only) (type=0x4) f/5.6 (560)
Auto Distortion Control(0xd0f8):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0
Scene Mode(0xd0f9):(readwrite) (type=0x2) Range [0 - 18, step 1] value: 18
Nikon Exposure Time(0xd100):(read only) (type=0x6) Enumeration [69536,68736,68036,67536,67136,66786,66536,66336,66176,66036,65936,65856,65786,65736,65696,65661,65636,65616,65596,65586,65576,65566,65561,65556,65551,65549,65546,65544,65542,65541,65540,65539,655385,65538,655376,655373,65537,851978,1048586,131073,1638410,196609,262145,327681,393217,524289,655361,851969,983041,1310721,1638401,1966081] value: 65566
AC Power(0xd101):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0)
Warning Status(0xd102):(read only) (type=0x2) 0
AF Locked(0xd104):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0)
AE Locked(0xd105):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0)
Active AF Sensor(0xd108):(readwrite) (type=0x2) Range [1 - 39, step 1] value: Centre (0)
Flexible Program(0xd109):(readwrite) (type=0x1) Range [-30 - 30, step 2] value: 0
Recording Media(0xd10b):(readwrite) (type=0x2) Range [0 - 2, step 1] value: Card (0)
Camera Orientation(0xd10e):(read only) (type=0x2) Range [0 - 3, step 1] value: 0' (0)
External Flash Attached(0xd120):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0)
External Flash Status(0xd121):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0)
External Flash Sort(0xd122):(read only) (type=0x2) Range [0 - 3, step 1] value: 0
External Flash Compensation(0xd124):(read only) (type=0x1) Range [-18 - 18, step 1] value: 0 (0)
External Flash Mode(0xd125):(read only) (type=0x2) Range [0 - 7, step 1] value: 0
Flash Exposure Compensation(0xd126):(readwrite) (type=0x1) Range [-18 - 6, step 2] value: 0.0 stops (0)
HDR Mode(0xd130):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0
Active D-Lighting(0xd14e):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 5
Flourescent Type(0xd14f):(readwrite) (type=0x2) Range [0 - 6, step 1] value: 3
Autofocus Mode(0xd161):(readwrite) (type=0x2) Range [0 - 4, step 1] value: AF-A (2)
AF Assist Lamp(0xd163):(readwrite) (type=0x2) Range [0 - 1, step 1] value: On (0)
Auto ISO P/A/DVP Setting(0xd164):(readwrite) (type=0x2) Range [0 - 24, step 1] value: 24
ISO Auto(0xd16a):(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0
ISO Auto High Limit(0xd183):(readwrite) (type=0x2) Range [0 - 7, step 1] value: Hi 2 (5)
Live View Status(0xd1a2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0)
Live View Image Zoom Ratio(0xd1a3):(readwrite) (type=0x2) Range [0 - 5, step 1] value: 0
Live View Prohibit Condition(0xd1a4):(read only) (type=0x6) 2147483648
Property 0xd1ac:(readwrite) (type=0x2) Enumeration [1,2] value: 2
Exposure Display Status(0xd1b0):(read only) (type=0x2) Range [0 - 3, step 1] value: No (0)
Exposure Indicate Status(0xd1b1):(read only) (type=0x1) Range [-60 - 60, step 1] value: 0.0 stops (0)
Info Display Error Status(0xd1b2):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0)
Exposure Indicate Lightup(0xd1b3):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1)
Property 0xd1b4:(read only) (type=0x2) Range [0 - 96, step 1] value: 11
Property 0xd1b5:(read only) (type=0x4) Enumeration [0,32784,32785,32786,32787,32800] value: 0
Flash Open(0xd1c0):(read only) (type=0x2) Range [0 - 1, step 1] value: No (0)
Flash Charged(0xd1c1):(read only) (type=0x2) Range [0 - 1, step 1] value: Yes (1)
Property 0xd1f0:(readwrite) (type=0x2) Range [0 - 1, step 1] value: 0
Property 0xd1f1:(read only) (type=0x4) Range [0 - 65535, step 1] value: 810
Property 0xd1f4:(readwrite) (type=0x1) Range [-2 - 2, step 1] value: 0
Active Pic Ctrl Item(0xd200):(readwrite) (type=0x4) Enumeration [1,2,3,4,5,6,201,202,203,204,205,206,207,208,209] value: 1
Change Pic Ctrl Item(0xd201):(read only) (type=0x4) Enumeration [] value: 0
2018-09-18 16:02:59,818 - gphoto2 - WARNING - (b'_get_config [config.c:7471]') b"Type of property 'ISO Auto Hi Limit' expected: 0x0001 got: 0x0002"
2018-09-18 16:02:59,821 - gphoto2 - WARNING - (b'_get_config [config.c:7471]') b"Type of property 'Active D-Lighting' expected: 0x0001 got: 0x0002"
2018-09-18 16:02:59,823 - gphoto2 - WARNING - (b'_get_config [config.c:7471]') b"Type of property 'High ISO Noise Reduction' expected: 0x0001 got: 0x0002"
2018-09-18 16:02:59,830 - gphoto2 - WARNING - (b'_get_config [config.c:7471]') b"Type of property 'Flash Exposure Compensation' expected: 0x0002 got: 0x0001"
2018-09-18 16:02:59,966 - root - ERROR - Camera: [-2] Bad parameters
2018-09-18 16:03:24,356 - root - INFO - Exiting photobooth with status code 0
pi@raspberrypi:~/photobooth $
The Countdown is very slow. It should be x seconds but its taking much longer
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.