Gphoto snap cannot detect any cameras

I am having trouble getting my gphoto snap to detect any cameras. It looks like inside the snapd environment it is unable to fully load all of the required dynamic libs.

Here is the snapcraft.yaml

name: gphoto2
version: latest
version-script: |
  gphoto2 --version | head -n 1 | sed 's|gphoto2 ||'
summary: The gphoto2 command-line tool for accessing and controlling digital cameras. 
description: |
  gPhoto2 is a free, redistributable, ready to use set of digital camera
  software applications for Unix-like systems, written by a whole team of
  dedicated volunteers around the world. It supports more than 2500 cameras

  gPhoto2 runs on a large range of UNIX-like operating system, including Linux,
  FreeBSD, NetBSD, MacOS X, etc. gPhoto is provided by major Linux 
  distributions like Debian GNU/Linux, Ubuntu, Gentoo, Fedora, openSUSE,
  Mandriva, etc.

  libgphoto2 is freely available and distributed under the terms of the GNU 
  LGPL.; the other gphoto programs are freely available and distributed under
  the terms of the GNU GPL.

  Newer libgphoto2 versions also support Media Transfer Protocol (MTP) based 
  media players since their communications protocol is based on the Picture 
  Transfer Protocol (PTP). 
grade: stable
confinement: classic

apps:
  gphoto2:
    environment:
      PATH: $PATH:$SNAP/bin
      LD_LIBRARY_PATH: $SNAP/lib/$SNAPCRAFT_ARCH_TRIPLET:$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET:$LD_LIBRARY_PATH
    command: usr/bin/gphoto2
    plugs: [camera, raw-usb]

parts:
  gphoto2:
    plugin: nil
    stage-packages: 
      - to amd64: ["gphoto2:amd64"]
      - to armhf: ["gphoto2:armhf"]
root@orangepizero:~# /snap/bin/gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
root@orangepizero:~# /usr/bin/gphoto2 --auto-detect
Model                          Port
----------------------------------------------------------
Canon EOS 100D                 usb:003,007

With debug

root@orangepizero:~# /snap/bin/gphoto2 --auto-detect --debug
0.000027 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000210 main                        (2): gphoto2 2.5.9
0.000252 main                        (2): gphoto2 has been compiled with the following options:
0.000280 main                        (2):  + gcc (C compiler used)
0.000302 main                        (2):  + popt (mandatory, for handling command-line parameters)
0.000323 main                        (2):  + exif (for displaying EXIF information)
0.000346 main                        (2):  + no cdk (for accessing configuration options)
0.000367 main                        (2):  + aa (for displaying live previews)
0.000388 main                        (2):  + jpeg (for displaying live previews in JPEG format)
0.000410 main                        (2):  + readline (for easy navigation in the shell)
0.000468 main                        (2): libgphoto2 2.5.9
0.000505 main                        (2): libgphoto2 has been compiled with the following options:
0.000527 main                        (2):  + all camlibs
0.000547 main                        (2):  + gcc (C compiler used)
0.000568 main                        (2):  + ltdl (for portable loading of camlibs)
0.000589 main                        (2):  + EXIF (for special handling of EXIF files)
0.000610 main                        (2): libgphoto2_port 0.12.0
0.000737 main                        (2): libgphoto2_port has been compiled with the following options:
0.000770 main                        (2):  + gcc (C compiler used)
0.000791 main                        (2):  + ltdl (for portable loading of camlibs)
0.000812 main                        (2):  + USB (libusb1, for USB cameras)
0.000832 main                        (2):  + serial (for serial cameras)
0.000853 main                        (2):  + no resmgr (serial port access and locking)
0.000873 main                        (2):  + no ttylock (serial port locking)
0.000896 main                        (2):  + no lockdev (serial port locking)
0.000933 main                        (2): CAMLIBS env var not set, using compile-time default instead
0.000959 main                        (2): IOLIBS env var not set, using compile-time default instead
0.000981 main                        (2): invoked with following arguments:
0.001002 main                        (2):   --auto-detect
0.001023 main                        (2):   --debug
0.001120 load_settings               (2): Creating gphoto config directory ('/root/snap/gphoto2/x5/.gphoto')
0.001254 verify_settings             (2): Can't open settings file '/root/snap/gphoto2/x5/.gphoto/settings' for reading.
0.001284 load_settings               (2): Loading settings from file '/root/snap/gphoto2/x5/.gphoto/settings'.
0.001327 load_settings               (2): Can't open settings file '/root/snap/gphoto2/x5/.gphoto/settings' for reading.
0.001355 load_settings               (2): Creating gphoto config directory ('/root/snap/gphoto2/x5/.gphoto')
0.001405 verify_settings             (2): Can't open settings file '/root/snap/gphoto2/x5/.gphoto/settings' for reading.
0.001431 load_settings               (2): Loading settings from file '/root/snap/gphoto2/x5/.gphoto/settings'.
0.001477 load_settings               (2): Can't open settings file '/root/snap/gphoto2/x5/.gphoto/settings' for reading.
0.002138 gp_port_info_list_load      (2): Using ltdl to load io-drivers from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'...
0.002348 gp_port_info_list_load [gphoto2-port-info-list.c:288](0): No iolibs found in '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'
0.002392 gp_port_info_list_count [gphoto2-port-info-list.c:307](0): Invalid parameters: 'list' is NULL/FALSE.
0.002460 gp_abilities_list_load_dir  (2): Using ltdl to load camera libraries from '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.9'...
0.002549 gp_abilities_list_load_dir  (2): Found 0 camera drivers.
0.003407 gp_abilities_list_detect [gphoto2-abilities-list.c:407](0): Invalid parameters: 'list && info_list && l' is NULL/FALSE.
Model                          Port
----------------------------------------------------------
0.003504 gp_camera_free              (2): Freeing camera...
0.003530 gp_port_free                (2): Freeing port...
0.003557 gp_filesystem_reset         (2): resetting filesystem
0.003578 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.003598 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.003620 delete_all_folders          (2): Internally deleting all folders from '/'...
0.003643 lookup_folder               (2): Lookup folder '/'...
0.003665 lookup_folder               (2): Found! / is 0x6092e0
0.003687 recurse_delete_folder       (2): Recurse delete folder 0x6092e0//
root@orangepizero:~# /usr/bin/gphoto2 --auto-detect --debug
0.001434 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.001746 main                        (2): gphoto2 2.5.11
0.001884 main                        (2): gphoto2 has been compiled with the following options:
0.001986 main                        (2):  + gcc (C compiler used)
0.002070 main                        (2):  + popt (mandatory, for handling command-line parameters)
0.002152 main                        (2):  + exif (for displaying EXIF information)
0.002231 main                        (2):  + cdk (for accessing configuration options)
0.002309 main                        (2):  + aa (for displaying live previews)
0.002389 main                        (2):  + jpeg (for displaying live previews in JPEG format)
0.002469 main                        (2):  + readline (for easy navigation in the shell)
0.002672 main                        (2): libgphoto2 2.5.12
0.002814 main                        (2): libgphoto2 has been compiled with the following options:
0.002939 main                        (2):  + all camlibs
0.003039 main                        (2):  + gcc (C compiler used)
0.003116 main                        (2):  + ltdl (for portable loading of camlibs)
0.003193 main                        (2):  + EXIF (for special handling of EXIF files)
0.003276 main                        (2): libgphoto2_port 0.12.0
0.003383 main                        (2): libgphoto2_port has been compiled with the following options:
0.003467 main                        (2):  + gcc (C compiler used)
0.003543 main                        (2):  + ltdl (for portable loading of camlibs)
0.003627 main                        (2):  + USB (libusb1, for USB cameras)
0.003704 main                        (2):  + serial (for serial cameras)
0.003781 main                        (2):  + no resmgr (serial port access and locking)
0.003859 main                        (2):  + no ttylock (serial port locking)
0.003935 main                        (2):  + no lockdev (serial port locking)
0.004015 main                        (2): CAMLIBS env var not set, using compile-time default instead
0.004101 main                        (2): IOLIBS env var not set, using compile-time default instead
0.004184 main                        (2): invoked with following arguments:
0.004263 main                        (2):   --auto-detect
0.004336 main                        (2):   --debug
0.005028 load_settings               (2): Creating gphoto config directory ('/root/.gphoto')
0.005706 verify_settings             (2): Can't open settings file '/root/.gphoto/settings' for reading.
0.005825 load_settings               (2): Loading settings from file '/root/.gphoto/settings'.
0.005971 load_settings               (2): Can't open settings file '/root/.gphoto/settings' for reading.
0.006077 load_settings               (2): Creating gphoto config directory ('/root/.gphoto')
0.006244 verify_settings             (2): Can't open settings file '/root/.gphoto/settings' for reading.
0.006340 load_settings               (2): Loading settings from file '/root/.gphoto/settings'.
0.006474 load_settings               (2): Can't open settings file '/root/.gphoto/settings' for reading.
0.009367 gp_port_info_list_load      (2): Using ltdl to load io-drivers from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'...
0.010813 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'.
0.014348 gp_port_library_list        (2): found fstab fsname UUID=10cd9eef-d0df-424c-9498-55f403128f3b
0.014640 gp_port_library_list        (2): found fstab fsname tmpfs
0.015679 gp_port_library_list        (2): found mtab fsname sysfs
0.015848 gp_port_library_list        (2): found mtab fsname proc
0.015980 gp_port_library_list        (2): found mtab fsname udev
0.016229 gp_port_library_list        (2): found mtab fsname devpts
0.016364 gp_port_library_list        (2): found mtab fsname tmpfs
0.016602 gp_port_library_list        (2): found mtab fsname /dev/mmcblk0p1
0.016792 gp_port_library_list        (2): found mtab fsname tmpfs
0.017030 gp_port_library_list        (2): found mtab fsname tmpfs
0.017414 gp_port_library_list        (2): found mtab fsname tmpfs
0.017715 gp_port_library_list        (2): found mtab fsname cgroup
0.017854 gp_port_library_list        (2): found mtab fsname cgroup
0.017978 gp_port_library_list        (2): found mtab fsname cgroup
0.018098 gp_port_library_list        (2): found mtab fsname cgroup
0.018675 gp_port_library_list        (2): found mtab fsname cgroup
0.018808 gp_port_library_list        (2): found mtab fsname cgroup
0.018930 gp_port_library_list        (2): found mtab fsname cgroup
0.019048 gp_port_library_list        (2): found mtab fsname cgroup
0.019166 gp_port_library_list        (2): found mtab fsname cgroup
0.019284 gp_port_library_list        (2): found mtab fsname cgroup
0.019403 gp_port_library_list        (2): found mtab fsname cgroup
0.019520 gp_port_library_list        (2): found mtab fsname mqueue
0.019635 gp_port_library_list        (2): found mtab fsname debugfs
0.020113 gp_port_library_list        (2): found mtab fsname systemd-1
0.020507 gp_port_library_list        (2): found mtab fsname configfs
0.020975 gp_port_library_list        (2): found mtab fsname tmpfs
0.021454 gp_port_library_list        (2): found mtab fsname /dev/loop0
0.021694 gp_port_library_list        (2): found mtab fsname /dev/loop3
0.022163 gp_port_library_list        (2): found mtab fsname /dev/mmcblk0p1
0.022742 gp_port_library_list        (2): found mtab fsname /dev/zram0
0.022964 gp_port_library_list        (2): found mtab fsname tracefs
0.023276 gp_port_library_list        (2): found mtab fsname tmpfs
0.023529 gp_port_library_list        (2): found mtab fsname /dev/loop4
0.023742 gp_port_library_list        (2): found mtab fsname /dev/loop5
0.023951 gp_port_library_list        (2): found mtab fsname tmpfs
0.024199 gp_port_library_list        (2): found mtab fsname nsfs
0.024402 gp_port_library_list        (2): found mtab fsname /dev/loop2
0.029614 foreach_func                (2): Loaded '' ('^disk:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/disk'.
0.029772 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.032499 foreach_func                (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.032556 foreach_func                (2): Loaded '' ('^ptpip:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/ptpip'.
0.032590 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.033793 foreach_func                (2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.033846 foreach_func                (2): Loaded 'Serial Port 1' ('serial:/dev/ttyS1') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.033876 foreach_func                (2): Loaded 'Serial Port 2' ('serial:/dev/ttyS2') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.033904 foreach_func                (2): Loaded 'Serial Port 3' ('serial:/dev/ttyS3') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.033932 foreach_func                (2): Loaded 'Serial Port 4' ('serial:/dev/ttyS4') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.033959 foreach_func                (2): Loaded 'Serial Port 5' ('serial:/dev/ttyS5') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.033986 foreach_func                (2): Loaded 'Serial Port 6' ('serial:/dev/ttyS6') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.034012 foreach_func                (2): Loaded 'Serial Port 7' ('serial:/dev/ttyS7') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.034038 foreach_func                (2): Loaded 'Serial Port Device' ('serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.034063 foreach_func                (2): Loaded '' ('^serial:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/serial'.
0.034087 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.055097 foreach_func                (2): Loaded '' ('^usb:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.055176 foreach_func                (2): Loaded 'Universal Serial Bus' ('usb:') from '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usb1'.
0.055209 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbdiskdirect'.
0.056233 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/usbscsi'.
0.057099 foreach_func                (2): Called for filename '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/vusb'.
0.057864 gp_port_library_type        (2): ()
0.057915 foreach_func                (2): '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0/vusb' already loaded
0.058068 gp_port_info_list_count     (2): Counting entries (15 available)...
0.058104 gp_port_info_list_count     (2): 11 regular entries available.
0.058127 gp_port_info_list_count     (2): Counting entries (15 available)...
0.058150 gp_port_info_list_count     (2): 11 regular entries available.
0.058203 gp_abilities_list_load_dir  (2): Using ltdl to load camera libraries from '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12'...
0.059110 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/adc65'.
0.059151 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/agfa_cl20'.
0.059176 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/aox'.
0.059198 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ax203'.
0.059219 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/barbie'.
0.059241 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/canon'.
0.059263 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/casio_qv'.
0.059286 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/clicksmart310'.
0.059307 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/digigr8'.
0.059329 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/digita'.
0.059350 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/dimagev'.
0.059372 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/dimera3500'.
0.059395 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/directory'.
0.059417 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/enigma13'.
0.059440 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/fuji'.
0.059462 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/gsmart300'.
0.059483 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/hp215'.
0.059505 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/iclick'.
0.059527 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/jamcam'.
0.059550 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/jd11'.
0.059572 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/jl2005a'.
0.059593 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/jl2005c'.
0.059615 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_dc120'.
0.059639 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_dc210'.
0.059661 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_dc240'.
0.059684 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_dc3200'.
0.059706 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/kodak_ez200'.
0.059727 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/konica'.
0.059749 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/konica_qm150'.
0.059771 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/largan'.
0.059793 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/lg_gsm'.
0.059815 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/mars'.
0.059836 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/mustek'.
0.059859 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/panasonic_coolshot'.
0.059882 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/panasonic_dc1000'.
0.059905 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/panasonic_dc1580'.
0.059928 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/panasonic_l859'.
0.059951 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/pccam300'.
0.059975 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/pccam600'.
0.059999 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/pentax'.
0.060022 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/polaroid_pdc320'.
0.060046 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/polaroid_pdc640'.
0.060068 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/polaroid_pdc700'.
0.060092 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ptp2'.
0.060113 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ricoh'.
0.060135 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/ricoh_g3'.
0.060157 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/samsung'.
0.060181 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sierra'.
0.060203 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sipix_blink2'.
0.060225 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sipix_web2'.
0.060248 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/smal'.
0.060269 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sonix'.
0.060291 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sony_dscf1'.
0.060314 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sony_dscf55'.
0.060337 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/soundvision'.
0.060360 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/spca50x'.
0.060381 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sq905'.
0.060403 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/st2205'.
0.060425 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/stv0674'.
0.060447 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/stv0680'.
0.060469 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/sx330z'.
0.060490 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/topfield'.
0.060512 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/toshiba_pdrm11'.
0.060534 foreach_func                (2): Found '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.12/tp6801'.
0.060574 gp_abilities_list_load_dir  (2): Found 64 camera drivers.
0.239261 gp_port_info_list_count     (2): Counting entries (15 available)...
0.239393 gp_port_info_list_count     (2): 11 regular entries available.
0.239431 gp_port_new                 (2): Creating new device...
0.239508 gp_port_info_list_get_info  (2): Getting info of entry 0 (15 available)...
0.240523 gp_port_set_settings        (2): Setting settings...
0.240595 gp_port_info_list_get_info  (2): Getting info of entry 1 (15 available)...
0.241530 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.241580 gp_port_set_settings        (2): Setting settings...
0.241609 gp_port_info_list_get_info  (2): Getting info of entry 2 (15 available)...
0.242276 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.242316 gp_port_set_settings        (2): Setting settings...
0.242341 gp_port_info_list_get_info  (2): Getting info of entry 3 (15 available)...
0.242933 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.242965 gp_port_set_settings        (2): Setting settings...
0.242989 gp_port_info_list_get_info  (2): Getting info of entry 4 (15 available)...
0.243552 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.243585 gp_port_set_settings        (2): Setting settings...
0.243610 gp_port_info_list_get_info  (2): Getting info of entry 5 (15 available)...
0.244170 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.244204 gp_port_set_settings        (2): Setting settings...
0.244228 gp_port_info_list_get_info  (2): Getting info of entry 6 (15 available)...
0.244834 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.244870 gp_port_set_settings        (2): Setting settings...
0.244895 gp_port_info_list_get_info  (2): Getting info of entry 7 (15 available)...
0.245644 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.245691 gp_port_set_settings        (2): Setting settings...
0.245722 gp_port_info_list_get_info  (2): Getting info of entry 8 (15 available)...
0.246407 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.246450 gp_port_set_settings        (2): Setting settings...
0.246476 gp_port_info_list_get_info  (2): Getting info of entry 9 (15 available)...
0.247136 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.247173 gp_port_set_settings        (2): Setting settings...
0.247199 gp_port_info_list_get_info  (2): Getting info of entry 10 (15 available)...
0.266274 gp_port_set_timeout         (2): Setting port timeout to 5000 milliseconds.
0.266340 gp_port_set_settings        (2): Setting settings...
0.266378 gp_libusb1_update           (2): (old int=0, conf=-1, alt=-1) port usb:, (new int=0, conf=-1, alt=-1) port usb:
0.266406 gp_libusb1_update           (2): lowlevel libusb1 port not yet opened, no need for libusb changes
0.266433 gp_abilities_list_detect_usb(2): Auto-detecting USB cameras...
0.267905 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.267963 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.267998 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.268024 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.268051 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.268075 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.268099 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.268122 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x29a, subclass, 0xffffffff, protocol 0xffffffff)...
0.269302 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.269430 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.269471 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.269505 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.269538 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.269569 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.269600 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.269630 gp_libusb1_find_device_by_class_lib(2): Looking for USB device (class 0x6, subclass, 0x1, protocol 0x1)...
0.269715 gp_port_free                (2): Freeing port...
0.269741 gp_port_close               (2): Closing port...
Model                          Port
----------------------------------------------------------
0.273023 gp_camera_free              (2): Freeing camera...
0.273080 gp_port_free                (2): Freeing port...
0.273110 gp_filesystem_reset         (2): resetting filesystem
0.273130 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.273219 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.273245 delete_all_folders          (2): Internally deleting all folders from '/'...
0.273268 lookup_folder               (2): Lookup folder '/'...
0.273290 lookup_folder               (2): Found! / is 0xa9db38
0.273312 recurse_delete_folder       (2): Recurse delete folder 0xa9db38//

Have you connected the snap to the raw-usb interface?

Anyway the driver loading problem might be solved with the layouts feature, or by hardcoding the LIBDIR during build configuration phase.

Yep, doesn’t make any difference.

Yeah I was trying to do that by modifying the LD_LIBRARY_PATH variable however I am not sure which variables gphoto is using and haven’t been successful so far.

Pretty sure this is the relevant info:

0.002348 gp_port_info_list_load [gphoto2-port-info-list.c:288](0): No iolibs found in '/usr/lib/arm-linux-gnueabihf/libgphoto2_port/0.12.0'
0.002392 gp_port_info_list_count [gphoto2-port-info-list.c:307](0): Invalid parameters: 'list' is NULL/FALSE.
0.002460 gp_abilities_list_load_dir  (2): Using ltdl to load camera libraries from '/usr/lib/arm-linux-gnueabihf/libgphoto2/2.5.9'...
0.002549 gp_abilities_list_load_dir  (2): Found 0 camera drivers.

add base: core18 to your yaml. This will light-up new functionality such as layout support. Then you can add this layout to your yaml which will make the library files appear where gphoto is searching for them:

layout:
  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libgphoto2:
    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libgphoto2
  /usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libgphoto2_port:
    bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/libgphoto2_port
1 Like

@lucyllewy Thanks for the tip, that fixes the issue with not loading the camera drivers however it still doesn’t detect any cameras.

erik@ubuntu ~/C/gphoto2-snap> /snap/bin/gphoto2 --auto-detect --debug
0.000007 main                        (2): ALWAYS INCLUDE THE FOLLOWING LINES WHEN SENDING DEBUG MESSAGES TO THE MAILING LIST:
0.000047 main                        (2): gphoto2 2.5.15
0.000053 main                        (2): gphoto2 has been compiled with the following options:
0.000055 main                        (2):  + gcc (C compiler used)
0.000056 main                        (2):  + popt (mandatory, for handling command-line parameters)
0.000058 main                        (2):  + exif (for displaying EXIF information)
0.000060 main                        (2):  + cdk (for accessing configuration options)
0.000061 main                        (2):  + aa (for displaying live previews)
0.000063 main                        (2):  + jpeg (for displaying live previews in JPEG format)
0.000065 main                        (2):  + readline (for easy navigation in the shell)
0.000067 main                        (2): libgphoto2 2.5.16
0.000069 main                        (2): libgphoto2 has been compiled with the following options:
0.000070 main                        (2):  + all camlibs
0.000072 main                        (2):  + gcc (C compiler used)
0.000074 main                        (2):  + ltdl (for portable loading of camlibs)
0.000075 main                        (2):  + EXIF (for special handling of EXIF files)
0.000077 main                        (2): libgphoto2_port 0.12.0
0.000079 main                        (2): libgphoto2_port has been compiled with the following options:
0.000080 main                        (2):  + iolibs: disk ptpip serial usb1 usbdiskdirect usbscsi
0.000082 main                        (2):  + gcc (C compiler used)
0.000083 main                        (2):  + ltdl (for portable loading of iolibs)
0.000085 main                        (2):  + USB (libusb1, for USB cameras)
0.000087 main                        (2):  + serial (for serial cameras)
0.000088 main                        (2):  + no resmgr (serial port access and locking)
0.000090 main                        (2):  + no ttylock (serial port locking)
0.000091 main                        (2):  + no lockdev (serial port locking)
0.000093 main                        (2): CAMLIBS env var not set, using compile-time default instead
0.000095 main                        (2): IOLIBS env var not set, using compile-time default instead
0.000096 main                        (2): invoked with following arguments:
0.000098 main                        (2):   --auto-detect
0.000100 main                        (2):   --debug
0.000110 load_settings               (2): Creating gphoto config directory ('/home/erik/snap/gphoto2/x3/.gphoto')
0.000159 verify_settings             (2): Can't open settings file '/home/erik/snap/gphoto2/x3/.gphoto/settings' for reading.
0.000164 load_settings               (2): Loading settings from file '/home/erik/snap/gphoto2/x3/.gphoto/settings'.
0.000168 load_settings               (2): Can't open settings file '/home/erik/snap/gphoto2/x3/.gphoto/settings' for reading.
0.000171 load_settings               (2): Creating gphoto config directory ('/home/erik/snap/gphoto2/x3/.gphoto')
0.000176 verify_settings             (2): Can't open settings file '/home/erik/snap/gphoto2/x3/.gphoto/settings' for reading.
0.000178 load_settings               (2): Loading settings from file '/home/erik/snap/gphoto2/x3/.gphoto/settings'.
0.000181 load_settings               (2): Can't open settings file '/home/erik/snap/gphoto2/x3/.gphoto/settings' for reading.
0.000250 gp_port_info_list_load      (2): Using ltdl to load io-drivers from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0'...
0.000349 foreach_func                (2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/disk'.
0.000971 foreach_func                (2): Loaded '' ('^disk:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/disk'.
0.000996 foreach_func                (2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/ptpip'.
0.001398 foreach_func                (2): Loaded 'PTP/IP Connection' ('ptpip:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/ptpip'.
0.001424 foreach_func                (2): Loaded '' ('^ptpip:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/ptpip'.
0.001429 foreach_func                (2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002263 foreach_func                (2): Loaded 'Serial Port 0' ('serial:/dev/ttyS0') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002290 foreach_func                (2): Loaded 'Serial Port 1' ('serial:/dev/ttyS1') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002294 foreach_func                (2): Loaded 'Serial Port 2' ('serial:/dev/ttyS2') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002296 foreach_func                (2): Loaded 'Serial Port 3' ('serial:/dev/ttyS3') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002299 foreach_func                (2): Loaded 'Serial Port 4' ('serial:/dev/ttyS4') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002301 foreach_func                (2): Loaded 'Serial Port 5' ('serial:/dev/ttyS5') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002303 foreach_func                (2): Loaded 'Serial Port 6' ('serial:/dev/ttyS6') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002305 foreach_func                (2): Loaded 'Serial Port 7' ('serial:/dev/ttyS7') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002307 foreach_func                (2): Loaded 'Serial Port 8' ('serial:/dev/ttyS8') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002309 foreach_func                (2): Loaded 'Serial Port 9' ('serial:/dev/ttyS9') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002311 foreach_func                (2): Loaded 'Serial Port 10' ('serial:/dev/ttyS10') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002313 foreach_func                (2): Loaded 'Serial Port 11' ('serial:/dev/ttyS11') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002315 foreach_func                (2): Loaded 'Serial Port 12' ('serial:/dev/ttyS12') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002317 foreach_func                (2): Loaded 'Serial Port 13' ('serial:/dev/ttyS13') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002319 foreach_func                (2): Loaded 'Serial Port 14' ('serial:/dev/ttyS14') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002321 foreach_func                (2): Loaded 'Serial Port 15' ('serial:/dev/ttyS15') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002323 foreach_func                (2): Loaded 'Serial Port 16' ('serial:/dev/ttyS16') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002325 foreach_func                (2): Loaded 'Serial Port 17' ('serial:/dev/ttyS17') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002342 foreach_func                (2): Loaded 'Serial Port 18' ('serial:/dev/ttyS18') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002347 foreach_func                (2): Loaded 'Serial Port 19' ('serial:/dev/ttyS19') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002349 foreach_func                (2): Loaded 'Serial Port 20' ('serial:/dev/ttyS20') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002352 foreach_func                (2): Loaded 'Serial Port 21' ('serial:/dev/ttyS21') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002354 foreach_func                (2): Loaded 'Serial Port 22' ('serial:/dev/ttyS22') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002357 foreach_func                (2): Loaded 'Serial Port 23' ('serial:/dev/ttyS23') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002359 foreach_func                (2): Loaded 'Serial Port 24' ('serial:/dev/ttyS24') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002362 foreach_func                (2): Loaded 'Serial Port 25' ('serial:/dev/ttyS25') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002364 foreach_func                (2): Loaded 'Serial Port 26' ('serial:/dev/ttyS26') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002366 foreach_func                (2): Loaded 'Serial Port 27' ('serial:/dev/ttyS27') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002369 foreach_func                (2): Loaded 'Serial Port 28' ('serial:/dev/ttyS28') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002371 foreach_func                (2): Loaded 'Serial Port 29' ('serial:/dev/ttyS29') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002373 foreach_func                (2): Loaded 'Serial Port 30' ('serial:/dev/ttyS30') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002375 foreach_func                (2): Loaded 'Serial Port 31' ('serial:/dev/ttyS31') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002377 foreach_func                (2): Loaded 'Serial Port Device' ('serial:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002380 foreach_func                (2): Loaded '' ('^serial:') from '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/serial'.
0.002383 foreach_func                (2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/usb1'.
0.011238 gp_port_library_list [libusb1.c:211](0): 'libusb_init (&ctx)' failed: Other error (-99)
0.011305 foreach_func [gphoto2-port-info-list.c:237](0): Error during assembling of port list: 'I/O problem' (-7).
0.011310 foreach_func                (2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/usbdiskdirect'.
0.011974 foreach_func                (2): Called for filename '/usr/lib/x86_64-linux-gnu/libgphoto2_port/0.12.0/usbscsi'.
0.013906 gp_port_info_list_count     (2): Counting entries (37 available)...
0.013963 gp_port_info_list_count     (2): 34 regular entries available.
0.013972 gp_port_info_list_count     (2): Counting entries (37 available)...
0.013976 gp_port_info_list_count     (2): 34 regular entries available.
0.014000 gp_abilities_list_load_dir  (2): Using ltdl to load camera libraries from '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16'...
0.014226 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/adc65'.
0.014390 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/agfa_cl20'.
0.014401 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/aox'.
0.014406 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/ax203'.
0.014411 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/barbie'.
0.014416 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/canon'.
0.014420 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/casio_qv'.
0.014426 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/clicksmart310'.
0.014431 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/digigr8'.
0.014435 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/digita'.
0.014440 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/dimagev'.
0.014444 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/dimera3500'.
0.014449 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/directory'.
0.014454 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/enigma13'.
0.014458 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/fuji'.
0.014463 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/gsmart300'.
0.014468 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/hp215'.
0.014472 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/iclick'.
0.014477 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/jamcam'.
0.014481 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/jd11'.
0.014486 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/jl2005a'.
0.014490 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/jl2005c'.
0.014495 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/kodak_dc120'.
0.014500 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/kodak_dc210'.
0.014505 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/kodak_dc240'.
0.014510 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/kodak_dc3200'.
0.014514 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/kodak_ez200'.
0.014566 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/konica'.
0.014585 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/konica_qm150'.
0.014593 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/largan'.
0.014600 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/lg_gsm'.
0.014607 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/mars'.
0.014615 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/mustek'.
0.014623 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/panasonic_coolshot'.
0.014633 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/panasonic_dc1000'.
0.014702 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/panasonic_dc1580'.
0.014715 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/panasonic_l859'.
0.014720 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/pccam300'.
0.014725 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/pccam600'.
0.014729 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/pentax'.
0.014736 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/polaroid_pdc320'.
0.014743 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/polaroid_pdc640'.
0.014750 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/polaroid_pdc700'.
0.014760 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/ptp2'.
0.014807 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/ricoh'.
0.014816 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/ricoh_g3'.
0.014820 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/samsung'.
0.014825 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/sierra'.
0.014865 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/sipix_blink2'.
0.014875 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/sipix_web2'.
0.014900 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/smal'.
0.014907 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/sonix'.
0.014913 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/sony_dscf1'.
0.014919 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/sony_dscf55'.
0.014927 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/soundvision'.
0.014932 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/spca50x'.
0.014937 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/sq905'.
0.015030 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/st2205'.
0.015059 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/stv0674'.
0.015113 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/stv0680'.
0.015169 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/sx330z'.
0.015192 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/topfield'.
0.015209 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/toshiba_pdrm11'.
0.015217 foreach_func                (2): Found '/usr/lib/x86_64-linux-gnu/libgphoto2/2.5.16/tp6801'.
0.015230 gp_abilities_list_load_dir  (2): Found 64 camera drivers.
0.319416 gp_port_info_list_count     (2): Counting entries (37 available)...   
0.319475 gp_port_info_list_count     (2): 34 regular entries available.
0.319484 gp_port_new                 (2): Creating new device...
0.319492 gp_port_info_list_get_info  (2): Getting info of entry 0 (37 available)...
0.319734 gp_port_set_settings        (2): Setting settings...
0.319813 gp_port_info_list_get_info  (2): Getting info of entry 1 (37 available)...
0.320077 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.320127 gp_port_set_settings        (2): Setting settings...
0.320137 gp_port_info_list_get_info  (2): Getting info of entry 2 (37 available)...
0.320360 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.320409 gp_port_set_settings        (2): Setting settings...
0.320418 gp_port_info_list_get_info  (2): Getting info of entry 3 (37 available)...
0.320658 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.320706 gp_port_set_settings        (2): Setting settings...
0.320715 gp_port_info_list_get_info  (2): Getting info of entry 4 (37 available)...
0.320926 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.320975 gp_port_set_settings        (2): Setting settings...
0.320985 gp_port_info_list_get_info  (2): Getting info of entry 5 (37 available)...
0.321190 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.321239 gp_port_set_settings        (2): Setting settings...
0.321248 gp_port_info_list_get_info  (2): Getting info of entry 6 (37 available)...
0.321452 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.321500 gp_port_set_settings        (2): Setting settings...
0.321509 gp_port_info_list_get_info  (2): Getting info of entry 7 (37 available)...
0.321747 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.321796 gp_port_set_settings        (2): Setting settings...
0.321805 gp_port_info_list_get_info  (2): Getting info of entry 8 (37 available)...
0.322026 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.322098 gp_port_set_settings        (2): Setting settings...
0.322108 gp_port_info_list_get_info  (2): Getting info of entry 9 (37 available)...
0.322356 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.322405 gp_port_set_settings        (2): Setting settings...
0.322442 gp_port_info_list_get_info  (2): Getting info of entry 10 (37 available)...
0.322654 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.322702 gp_port_set_settings        (2): Setting settings...
0.322711 gp_port_info_list_get_info  (2): Getting info of entry 11 (37 available)...
0.322912 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.322960 gp_port_set_settings        (2): Setting settings...
0.322969 gp_port_info_list_get_info  (2): Getting info of entry 12 (37 available)...
0.323169 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.323218 gp_port_set_settings        (2): Setting settings...
0.323227 gp_port_info_list_get_info  (2): Getting info of entry 13 (37 available)...
0.323532 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.323582 gp_port_set_settings        (2): Setting settings...
0.323590 gp_port_info_list_get_info  (2): Getting info of entry 14 (37 available)...
0.323795 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.323843 gp_port_set_settings        (2): Setting settings...
0.323852 gp_port_info_list_get_info  (2): Getting info of entry 15 (37 available)...
0.324054 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.324102 gp_port_set_settings        (2): Setting settings...
0.324111 gp_port_info_list_get_info  (2): Getting info of entry 16 (37 available)...
0.324359 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.324407 gp_port_set_settings        (2): Setting settings...
0.324416 gp_port_info_list_get_info  (2): Getting info of entry 17 (37 available)...
0.324657 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.324708 gp_port_set_settings        (2): Setting settings...
0.324717 gp_port_info_list_get_info  (2): Getting info of entry 18 (37 available)...
0.324948 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.324998 gp_port_set_settings        (2): Setting settings...
0.325007 gp_port_info_list_get_info  (2): Getting info of entry 19 (37 available)...
0.325408 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.325469 gp_port_set_settings        (2): Setting settings...
0.325480 gp_port_info_list_get_info  (2): Getting info of entry 20 (37 available)...
0.325703 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.325752 gp_port_set_settings        (2): Setting settings...
0.325761 gp_port_info_list_get_info  (2): Getting info of entry 21 (37 available)...
0.326074 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.326122 gp_port_set_settings        (2): Setting settings...
0.326131 gp_port_info_list_get_info  (2): Getting info of entry 22 (37 available)...
0.326402 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.326449 gp_port_set_settings        (2): Setting settings...
0.326458 gp_port_info_list_get_info  (2): Getting info of entry 23 (37 available)...
0.326662 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.326711 gp_port_set_settings        (2): Setting settings...
0.326719 gp_port_info_list_get_info  (2): Getting info of entry 24 (37 available)...
0.326959 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.327005 gp_port_set_settings        (2): Setting settings...
0.327014 gp_port_info_list_get_info  (2): Getting info of entry 25 (37 available)...
0.327217 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.327266 gp_port_set_settings        (2): Setting settings...
0.327274 gp_port_info_list_get_info  (2): Getting info of entry 26 (37 available)...
0.327536 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.327588 gp_port_set_settings        (2): Setting settings...
0.327597 gp_port_info_list_get_info  (2): Getting info of entry 27 (37 available)...
0.327864 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.327912 gp_port_set_settings        (2): Setting settings...
0.327920 gp_port_info_list_get_info  (2): Getting info of entry 28 (37 available)...
0.328128 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.328177 gp_port_set_settings        (2): Setting settings...
0.328186 gp_port_info_list_get_info  (2): Getting info of entry 29 (37 available)...
0.328388 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.328437 gp_port_set_settings        (2): Setting settings...
0.328446 gp_port_info_list_get_info  (2): Getting info of entry 30 (37 available)...
0.328647 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.328779 gp_port_set_settings        (2): Setting settings...
0.328789 gp_port_info_list_get_info  (2): Getting info of entry 31 (37 available)...
0.329004 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.329061 gp_port_set_settings        (2): Setting settings...
0.329065 gp_port_info_list_get_info  (2): Getting info of entry 32 (37 available)...
0.329176 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.329213 gp_port_set_settings        (2): Setting settings...
0.329222 gp_port_info_list_get_info  (2): Getting info of entry 33 (37 available)...
0.329346 gp_port_set_timeout         (2): Setting port timeout to 500 milliseconds.
0.329373 gp_port_set_settings        (2): Setting settings...
0.329378 gp_port_free                (2): Freeing port...
0.329380 gp_port_close               (2): Closing port...
0.329383 gp_port_serial_close [unix.c:465](0): Invalid parameters: 'path' is NULL/FALSE.
Model                          Port            
----------------------------------------------------------
0.329979 gp_camera_free              (2): Freeing camera...
0.330020 gp_port_free                (2): Freeing port...
0.330026 gp_filesystem_reset         (2): resetting filesystem
0.330028 gp_filesystem_lru_clear     (2): Clearing fscache LRU list...
0.330030 gp_filesystem_lru_clear     (2): fscache LRU list already empty
0.330032 delete_all_folders          (2): Internally deleting all folders from '/'...
0.330035 lookup_folder               (2): Lookup folder '/'...
0.330037 lookup_folder               (2): Found! / is 0x55b93102cdf0
0.330040 recurse_delete_folder       (2): Recurse delete folder 0x55b93102cdf0//

Libraries that loading “optional plugins” at runtime like that might ignore that.

Check the audit system denial logs and (possibly) find the missing resource files using the --strace option of the snap run command.

since nobody asked the obvious yet …

did you connect the camera interface (which gives you permissions to probe and access /dev/videoX ) ? it is normally not auto-connecting …

1 Like

Hey, I actually resolved this.

The problem was it needed access to the network-control interface for some reason.

3 Likes