Hi, which version of libgphoto2 is in use here?
So far it seems capture works in the end, but with a bit of error messages. Ciao, Marcus On Thu, Sep 28, 2017 at 10:42:55PM +0000, leon91 via Gphoto-devel wrote: > y vould like to automate to capture images with your gphoto2 program. > > i launch the command in linux mint 18 > > $ env LANG=C gphoto2 --auto-detect > Model > Port ---------------------------------------------------------- > Nikon DSC D5100 (PTP mode) usb:001,009 > patrick@patrick-win7:~$ env LANG=C gphoto2 --port usb: --abilities > Abilities for camera : Nikon DSC D5100 (PTP > mode) Serial port support : no > USB support : yes > Capture choices : > : Image > : Preview > : Trigger Capture > Configuration support : yes > Delete selected files on camera : yes > Delete all files on camera : no > File preview (thumbnail) support : yes > File upload support : yes > patrick@patrick-win7:~$ env LANG=C gphoto2 --port usb: > --capture-image-and-download *** Error *** An error occurred in the > io-library ('Could not claim the USB device'): Could not claim > interface 0 (Device or resource busy). Make sure no other program > (gvfs-gphoto2-volume-monitor) or kernel module (such as sdc2xx, stv680, > spca50x) is using the device and you have read/write access to the > device. ERROR: Could not capture image. ERROR: Could not capture. *** > Error (-53: 'Could not claim the USB device') *** > > For debugging messages, please use the --debug option. > Debugging messages may help finding a solution to your problem. > If you intend to send any error or debug messages to the gphoto > developer mailing list <gphoto-devel@lists.sourceforge.net>, please run > gphoto2 as follows: > > env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --port > usb: --capture-image-and-download > > Please make sure there is sufficient quoting around the arguments. > > the ps -ef linux command > patrick@patrick-win7:~$ ps -ef | tail -n 20 > 00:00:18 /usr/lib/gnome-terminal/gnome-terminal-server patrick 20077 > 20073 0 sept.28 pts/0 00:00:00 bash root 20521 2 0 > sept.28 ? 00:00:07 [kworker/0:2] patrick 20960 1 0 > sept.28 ? 00:00:00 /usr/lib/gvfs/gvfsd patrick 20968 1 0 > sept.28 ? 00:00:00 /usr/lib/gvfs/gvfsd-fuse /run/user/1000/gvfs -f > -o big_writes patrick 20999 1 0 sept.28 ? > 00:00:00 /usr/lib/gvfs/gvfs-afc-volume-monitor patrick 21005 1 0 > sept.28 ? 00:00:00 /usr/lib/gvfs/gvfs-mtp-volume-monitor patrick > 21010 1 0 sept.28 ? > 00:00:00 /usr/lib/gvfs/gvfs-gphoto2-volume-monitor root 21032 > 2 0 sept.28 ? 00:00:03 [kworker/1:0] patrick 21085 1 0 > sept.28 ? > 00:00:00 /usr/lib/x86_64-linux-gnu/cinnamon-settings-daemon/csd-locate-pointer > root 21101 2 0 sept.28 ? 00:00:00 [kworker/1:2] patrick > 22055 1 0 sept.28 ? 00:00:00 /usr/lib/gvfs/gvfsd-gphoto2 > --spawner :1.68 /org/gtk/gvfs/exec_spaw/0 root 22125 2 0 > sept.28 ? 00:00:00 [kworker/u12:2] patrick 22156 3164 2 > 00:00 ? 00:00:17 claws-mail patrick 22180 1 0 > 00:00 ? 00:00:00 /usr/lib/gvfs/gvfsd-http > --spawner :1.68 /org/gtk/gvfs/exec_spaw/1 root 22248 2 0 > 00:03 ? 00:00:00 [kworker/u12:1] root 22376 2 0 > 00:11 ? 00:00:00 [kworker/u12:0] patrick 22377 20077 0 00:11 > pts/0 00:00:00 ps -ef patrick 22378 20077 0 00:11 pts/0 > 00:00:00 tail -n 20 > > I write the command > > $ killall gvfsd-gphoto2 > $ env LANG=C gphoto2 --port usb: --capture-image-and-download > ERROR: Could not capture > image. ERROR: Could not capture. > New file is in location /store_00010001/DCIM/102D5100/_DSC3471.NEF on > the camera Saving file as > _DSC3471.NEF Deleting file /store_00010001/DCIM/102D5100/_DSC3471.NEF > on the camera > > $ env LANG=C gphoto2 --debug --debug-logfile=my-logfile.txt --port usb: > --capture-image-and-download ERROR: Could not capture > image. ERROR: Could not capture. > New file is in location /store_00010001/DCIM/102D5100/_DSC3472.NEF on > the camera Saving file as > _DSC3472.NEF Deleting file /store_00010001/DCIM/102D5100/_DSC3472.NEF > on the camera > > and : > $ killall gvfs-gphoto2-volume-monitor > $ env LANG=C gphoto2 --debug > --debug-logfile=my-logfile.txt --port usb: --capture-image-and-download > *** Error *** > Out of Focus > ERROR: Could not capture image. > ERROR: Could not capture. > patrick@patrick-win7:~$ env LANG=C gphoto2 --debug > --debug-logfile=my-logfile.txt --port usb: --capture-image-and-download > ERROR: Could not capture image. ERROR: Could not capture. > New file is in location /store_00010001/DCIM/102D5100/_DSC3473.NEF on > the camera Saving file as > _DSC3473.NEF Deleting file /store_00010001/DCIM/102D5100/_DSC3473.NEF > on the camera > > > i dont know hox sending my-logfile.txt is joined in this mail because > he is too big for provider free (size limit is 25 MO) > > > > > thank you to résolve this compatibilité problem beetween your gphoto2 > program and linux mint 18 > > patrick > > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > Gphoto-devel mailing list > Gphoto-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/gphoto-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel