Sorry. Please see the below.. ++++++++++++++ *** 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') *** ++++++++++++++++++++
also attached the log file. Please advise. On Sat, Jan 18, 2020 at 9:44 PM Hubert Figuière <h...@figuiere.net> wrote: > On 2020-01-18 7:46 p.m., Sasi Karanam wrote: > > Hi , > > I am trying to capture images by using gopro 8 black and getting below > > error message even though it is detecting as USB PTP Class Camera. Please > > help me. > > > > Eroor message : > > ++++++++++++++++++++ > > 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 --summary > > > > Please make sure there is sufficient quoting around the arguments. > > +++++++++++++++++++++++ > > > > pi@raspberrypi:~ $ gphoto2 --auto-detect > > Model Port > > > > ---------------------------------------------------------- > > USB PTP Class Camera usb:001,004 > > > > You stripped the relevant part of the output with the actual error > message so it is hard to know what's happening here. > > > Cheers, > > Hub >
0.000484 main (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST: 0.000668 main (2): gphoto2 2.5.6 0.000723 main (2): gphoto2 has been compiled with the following options: 0.000760 main (2): + gcc (C compiler used) 0.000793 main (2): + popt (mandatory, for handling command-line parameters) 0.000826 main (2): + exif (for displaying EXIF information) 0.000857 main (2): + no cdk (for accessing configuration options) 0.000887 main (2): + no aa (for displaying live previews) 0.000919 main (2): + no jpeg (for displaying live previews in JPEG format) 0.000952 main (2): + no readline (for easy navigation in the shell) 0.000996 main (2): libgphoto2 2.5.22 0.001039 main (2): libgphoto2 has been compiled with the following options: 0.001074 main (2): + all camlibs 0.001106 main (2): + gcc (C compiler used) 0.001136 main (2): + ltdl (for portable loading of camlibs) 0.001167 main (2): + EXIF (for special handling of EXIF files) 0.001203 main (2): libgphoto2_port 0.12.0 0.001241 main (2): libgphoto2_port has been compiled with the following options: 0.001274 main (2): + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi 0.001304 main (2): + gcc (C compiler used) 0.001334 main (2): + ltdl (for portable loading of iolibs) 0.001366 main (2): + USB (libusb1, for USB cameras) 0.001396 main (2): + serial (for serial cameras) 0.001427 main (2): + no resmgr (serial port access and locking) 0.001458 main (2): + no ttylock (serial port locking) 0.001489 main (2): + no lockdev (serial port locking) 0.001522 main (2): CAMLIBS env var not set, using compile-time default instead 0.001553 main (2): IOLIBS env var not set, using compile-time default instead 0.001584 main (2): invoked with following arguments: 0.001614 main (2): --debug 0.001645 main (2): --debug-logfile=my-logfile.txt 0.001677 main (2): --capture-image-and-download 0.001826 load_settings (2): Creating gphoto config directory ('/home/pi/.gphoto') 0.002049 load_settings (2): Loading settings from file '/home/pi/.gphoto/settings'. 0.002249 main (2): The user has not specified both a model and a port. Try to figure them out. 0.002320 gp_port_info_list_load (2): Using ltdl to load io-drivers from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'... 0.002755 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'. 0.003892 gp_port_library_list (2): found fstab fsname proc 0.003996 gp_port_library_list (2): found fstab fsname /dev/mmcblk0p6 0.004080 gp_port_library_list (2): found fstab fsname /dev/mmcblk0p7 0.004401 gp_port_library_list (2): found mtab fsname /dev/root 0.004479 gp_port_library_list (2): found mtab fsname devtmpfs 0.004528 gp_port_library_list (2): found mtab fsname sysfs 0.004572 gp_port_library_list (2): found mtab fsname proc 0.004614 gp_port_library_list (2): found mtab fsname securityfs 0.004660 gp_port_library_list (2): found mtab fsname tmpfs 0.004751 gp_port_library_list (2): found mtab fsname devpts 0.004798 gp_port_library_list (2): found mtab fsname tmpfs 0.004879 gp_port_library_list (2): found mtab fsname tmpfs 0.004966 gp_port_library_list (2): found mtab fsname tmpfs 0.005069 gp_port_library_list (2): found mtab fsname cgroup2 0.005177 gp_port_library_list (2): found mtab fsname cgroup 0.005222 gp_port_library_list (2): found mtab fsname cgroup 0.005263 gp_port_library_list (2): found mtab fsname cgroup 0.005303 gp_port_library_list (2): found mtab fsname cgroup 0.005469 gp_port_library_list (2): found mtab fsname cgroup 0.005516 gp_port_library_list (2): found mtab fsname cgroup 0.005557 gp_port_library_list (2): found mtab fsname cgroup 0.005598 gp_port_library_list (2): found mtab fsname cgroup 0.005639 gp_port_library_list (2): found mtab fsname cgroup 0.005680 gp_port_library_list (2): found mtab fsname systemd-1 0.005722 gp_port_library_list (2): found mtab fsname sunrpc 0.005818 gp_port_library_list (2): found mtab fsname mqueue 0.005864 gp_port_library_list (2): found mtab fsname debugfs 0.005945 gp_port_library_list (2): found mtab fsname configfs 0.006050 gp_port_library_list (2): found mtab fsname /dev/mmcblk0p6 0.006129 gp_port_library_list (2): found mtab fsname tmpfs 0.006222 gp_port_library_list (2): found mtab fsname gvfsd-fuse 0.006273 gp_port_library_list (2): found mtab fsname fusectl 0.006474 foreach_func (2): Loaded '' ('^disk:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'. 0.006522 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.007444 foreach_func (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.007514 foreach_func (2): Loaded '' ('^ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'. 0.007553 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.008853 foreach_func (2): Loaded 'Serial Port Device' ('serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.008917 foreach_func (2): Loaded '' ('^serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'. 0.008953 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.039177 foreach_func (2): Loaded '' ('^usb:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.039292 foreach_func (2): Loaded 'Universal Serial Bus' ('usb:001,004') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'. 0.039335 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbdiskdirect'. 0.040496 foreach_func (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbscsi'. 0.041527 gp_port_info_list_count (2): Counting entries (7 available)... 0.041605 gp_port_info_list_count (2): 3 regular entries available. 0.041699 gp_abilities_list_load_dir (2): Using ltdl to load camera libraries from '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22'... 0.042776 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/adc65'. 0.042843 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/agfa_cl20'. 0.042879 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/aox'. 0.042912 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ax203'. 0.042944 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/barbie'. 0.042975 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/canon'. 0.043007 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/casio_qv'. 0.043038 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/clicksmart310'. 0.043071 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/digigr8'. 0.043263 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/digita'. 0.043308 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/dimagev'. 0.043341 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/dimera3500'. 0.043374 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/directory'. 0.043407 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/enigma13'. 0.043440 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/fuji'. 0.043472 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/gsmart300'. 0.043505 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/hp215'. 0.043538 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/iclick'. 0.043571 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jamcam'. 0.043604 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jd11'. 0.043639 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jl2005a'. 0.043671 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/jl2005c'. 0.043704 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc120'. 0.043738 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc210'. 0.043772 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc240'. 0.043805 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_dc3200'. 0.043838 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/kodak_ez200'. 0.043871 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/konica'. 0.043903 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/konica_qm150'. 0.043936 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/largan'. 0.043969 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/lg_gsm'. 0.044002 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/mars'. 0.044033 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/mustek'. 0.044065 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_coolshot'. 0.044098 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_dc1000'. 0.044130 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_dc1580'. 0.044161 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/panasonic_l859'. 0.044193 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pccam300'. 0.044226 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pccam600'. 0.044260 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/pentax'. 0.044293 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc320'. 0.044325 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc640'. 0.044357 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/polaroid_pdc700'. 0.044390 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ptp2'. 0.044423 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ricoh'. 0.044456 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ricoh_g3'. 0.044488 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/samsung'. 0.044561 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sierra'. 0.044595 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sipix_blink2'. 0.044628 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sipix_web2'. 0.044660 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/smal'. 0.044692 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sonix'. 0.044725 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sony_dscf1'. 0.044758 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sony_dscf55'. 0.044790 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/soundvision'. 0.044822 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/spca50x'. 0.044854 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sq905'. 0.044887 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/st2205'. 0.044919 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/stv0674'. 0.044952 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/stv0680'. 0.044983 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/sx330z'. 0.045017 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/topfield'. 0.045050 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/toshiba_pdrm11'. 0.045082 foreach_func (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/tp6801'. 0.045131 gp_abilities_list_load_dir (2): Found 64 camera drivers. 0.171441 gp_port_info_list_count (2): Counting entries (7 available)... 0.171564 gp_port_info_list_count (2): 3 regular entries available. 0.171583 gp_port_new (2): Creating new device... 0.171609 gp_port_info_list_get_info (2): Getting info of entry 0 (7 available)... 0.172028 gp_port_set_settings (2): Setting settings... 0.172057 gp_port_info_list_get_info (2): Getting info of entry 1 (7 available)... 0.172404 gp_port_set_timeout (2): Setting port timeout to 500 milliseconds. 0.172436 gp_port_set_settings (2): Setting settings... 0.172451 gp_port_info_list_get_info (2): Getting info of entry 2 (7 available)... 0.182448 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 0.182488 gp_port_set_settings (2): Setting settings... 0.182507 gp_libusb1_update (2): (old int=0, conf=-1, alt=-1) port usb:001,004, (new int=0, conf=-1, alt=-1) port usb:001,004 0.182521 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need for libusb changes 0.182537 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras... 0.184920 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)... 0.186656 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)... 0.186687 gp_libusb1_find_device_by_class_lib(2): Found USB class device (class 0x6, subclass, 0x1, protocol 0x1) 0.186712 gp_libusb1_find_device_by_class_lib(2): inep to look for is 81 0.186731 gp_libusb1_find_device_by_class_lib(2): Detected defaults: config 1, interface 0, altsetting 0, idVendor ID 2672, idProduct 0049, inep 81, outep 01, intep 82 0.186746 gp_abilities_list_detect_usb(2): Found 'USB PTP Class Camera' (0x6,0x1,0x1) 0.186799 gp_port_free (2): Freeing port... 0.186812 gp_port_close (2): Closing port... 0.187396 gp_camera_set_abilities (2): Setting abilities ('USB PTP Class Camera')... 0.187435 gp_setting_set (2): Setting key 'model' to value 'USB PTP Class Camera' (gphoto2) 0.187453 save_settings (2): Saving 2 setting(s) to file "/home/pi/.gphoto/settings" 0.187780 gp_port_info_list_lookup_path(2): Looking for path 'usb:001,004' (7 entries available)... 0.187803 gp_port_info_list_get_info (2): Getting info of entry 2 (7 available)... 0.187819 gp_camera_set_port_info (2): Setting port info for port 'Universal Serial Bus' at 'usb:001,004'... 0.197568 gp_port_set_timeout (2): Setting port timeout to 5000 milliseconds. 0.197609 gp_port_set_settings (2): Setting settings... 0.197628 gp_libusb1_update (2): (old int=0, conf=-1, alt=-1) port usb:001,004, (new int=0, conf=-1, alt=-1) port usb:001,004 0.197641 gp_libusb1_update (2): lowlevel libusb1 port not yet opened, no need for libusb changes 0.197659 gp_setting_set (2): Setting key 'port' to value 'usb:001,004' (gphoto2) 0.197677 save_settings (2): Saving 2 setting(s) to file "/home/pi/.gphoto/settings" 0.198024 gp_camera_init (2): Initializing camera... 0.198066 gp_port_set_error [gphoto2-port.c:1190](0): The supplied vendor or product id (0x0,0x0) is not valid. 0.198106 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)... 0.198131 gp_libusb1_find_device_by_class_lib(2): Found USB class device (class 0x6, subclass, 0x1, protocol 0x1) 0.198156 gp_libusb1_find_device_by_class_lib(2): inep to look for is 81 0.198174 gp_libusb1_find_device_by_class_lib(2): Detected defaults: config 1, interface 0, altsetting 0, idVendor ID 2672, idProduct 0049, inep 81, outep 01, intep 82 0.198187 gp_camera_init (2): Loading '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.22/ptp2'... 0.202635 gp_port_open (2): Opening USB port... 0.202679 gp_libusb1_open (2): () 0.202750 gp_libusb1_open (2): claiming interface 0 0.202773 gp_libusb1_open [libusb1.c:431](0): 'libusb_claim_interface (port->pl->dh, port->settings.usb.interface)' failed: Resource busy (-6) 0.202802 gp_port_set_error [gphoto2-port.c:1190](0): 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. 0.203384 gp_context_error (0): 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. 0.204380 gp_camera_free (2): Freeing camera... 0.204409 gp_port_free (2): Freeing port... 0.204422 gp_port_close (2): Closing port... 0.205553 gp_port_set_error [gphoto2-port.c:1190](0): Could not release interface 0 (Device or resource busy). 0.205869 gp_filesystem_reset (2): resetting filesystem 0.205889 gp_filesystem_lru_clear (2): Clearing fscache LRU list... 0.205901 gp_filesystem_lru_clear (2): fscache LRU list already empty 0.205915 delete_all_folders (2): Internally deleting all folders from '/'... 0.205928 lookup_folder (2): Lookup folder '/'... 0.205940 lookup_folder (2): Found! / is 0x1df8d60 0.205954 recurse_delete_folder (2): Recurse delete folder 0x1df8d60//
_______________________________________________ Gphoto-devel mailing list Gphoto-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gphoto-devel