Probleme de connexion à un appareil photo avec gphoto2

Bonjour à tous

Je possède un appareil photo numérique Canon EOS 300D. Je souhaiterais récupérer les photos depuis l’appareil via un cable USB avec gphoto2. J’utilise une debian sarge.
Je ne suis même pas e mesure de lister les fichiers présent sur la carte de l’appareil.
A la commande gphoto2 --debug -L en tant que root (pour être sûr d’avoir les permission read/write) j’obtiens l’erreur suivante :

[color=brown]0.000293 main(2): TOUJOURS FOURNIR LES LIGNES CI-DESSOUS LORS DE L’ENVOI DE MESSAGE(S) DE DÉBOGAGE À LA LISTE DE DIFFUSION :
0.001544 main(2): gphoto2 2.1.5
0.002196 main(2): gphoto2 has been compiled with the following options:
0.002720 main(2): + gcc (C compiler used)
0.003045 main(2): + popt (for handling command-line parameters)
0.003409 main(2): + exif (for displaying EXIF information)
0.003761 main(2): + cdk (for accessing configuration options)
0.004120 main(2): + no aa (for displaying live previews)
0.004466 main(2): + jpeg (for displaying live previews in JPEG format)
0.004845 main(2): + readline (for easy navigation in the shell)
0.005229 main(2): libgphoto2 2.1.5
0.005560 main(2): libgphoto2 has been compiled with the following options:
0.006224 main(2): + gcc (C compiler used)
0.006557 main(2): + EXIF (for special handling of EXIF files)
0.007406 main(2): + no ltdl (working around buggy libltdl, eh? :slightly_smiling:
0.007796 main(2): + /proc/meminfo (adapts cache size to memory available)
0.008206 main(2): libgphoto2_port 0.5.1
0.008555 main(2): libgphoto2_port has been compiled with the following options:
0.008961 main(2): + gcc (C compiler used)
0.009271 main(2): + USB (for USB cameras)
0.009580 main(2): + serial (for serial cameras)
0.009905 main(2): + no resmgr (serial port access and locking)
0.010262 main(2): + no baudboy (serial port locking)
0.010600 main(2): + no ttylock (serial port locking)
0.010937 main(2): + no lockdev (serial port locking)
0.011272 main(2): + no ltdl (working around buggy libltdl, eh? :slightly_smiling:
0.011927 main(2): The user has not specified both a model and a port. Try to figure them out.
0.012442 gp-port-info-list(2): Loading io-drivers from ‘/usr/lib/gphoto2_port/0.5.1’…
0.013278 gphoto2-port-serial(2): Trying to lock ‘/dev/ttyS0’…

0.026654 gphoto2-port-serial(2): Trying to lock ‘/dev/ttyS32’…
0.027058 gphoto2-port-core(2): Loaded ‘Port série 0’ (serial:/dev/ttyS0) from ‘libgphoto2_port_serial.so’

028943 gphoto2-port-core(2): Loaded ‘Port série 4’ (serial:/dev/ttyS4) from 'libgphoto2_port_serial.so’
0.029401 gphoto2-port-core(2): Loaded ‘’ (^serial) from 'libgphoto2_port_serial.so’
0.031380 gphoto2-port-core(2): Loaded ‘Universal Serial Bus’ (usb:) from 'libgphoto2_port_usb.so’
0.032189 gphoto2-port-core(2): Loaded ‘Universal Serial Bus’ (usb:001,002) from 'libgphoto2_port_usb.so’
0.032655 gphoto2-port-core(2): Loaded ‘Universal Serial Bus’ (usb:001,003) from 'libgphoto2_port_usb.so’
0.033814 gphoto2-port-info-list(2): Counting entries (9 available)…
0.034889 gphoto2-port-info-list(2): 8 regular entries available.
0.035351 gphoto2-port(2): Creating new device…
0.035718 gphoto2-port-info-list(2): Getting info of entry 0 (9 available)…
0.037163 gphoto2-port(2): Setting timeout to 500 millisecond(s)…
0.037718 gphoto2-port(2): Setting settings…
0.038054 gphoto2-port-info-list(2): Getting info of entry 1 (9 available)…
0.038705 gphoto2-port(2): Setting timeout to 500 millisecond(s)…
0.039217 gphoto2-port(2): Setting settings…
0.039543 gphoto2-port-info-list(2): Getting info of entry 2 (9 available)…
0.040154 gphoto2-port(2): Setting timeout to 500 millisecond(s)…
0.119740 gphoto2-port(2): Setting settings…
0.120284 gphoto2-port-info-list(2): Getting info of entry 3 (9 available)…
0.121033 gphoto2-port(2): Setting timeout to 500 millisecond(s)…
0.121529 gphoto2-port(2): Setting settings…
0.121858 gphoto2-port-info-list(2): Getting info of entry 4 (9 available)…
0.122470 gphoto2-port(2): Setting timeout to 500 millisecond(s)…
0.123375 gphoto2-port(2): Setting settings…
0.123765 gphoto2-port-info-list(2): Getting info of entry 5 (9 available)…
0.125202 gphoto2-port(2): Setting timeout to 5000 millisecond(s)…
0.125951 gphoto2-port(2): Setting settings…
0.125978 gphoto2-abilities-list.c(1): Auto-detecting USB cameras…
0.126187 gphoto2-port(0): Impossible de trouver le périphérique USB (fabricant 0x553, produit 0x202). Assurez-vous qu’il est bien connecté à l’ordinateur.

0.138876 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x3084)… found.
0.138894 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class ff, subclass ff
0.138914 gphoto2-abilities-list.c(2): Found ‘Canon EOS 300D (normal mode)’ (0x4a9,0x3084)
0.138942 gphoto2-port-info-list(2): Getting info of entry 6 (9 available)…
0.140033 gphoto2-port(2): Setting timeout to 5000 millisecond(s)…
0.140074 gphoto2-port(2): Setting settings…
0.140090 gphoto2-abilities-list.c(1): Auto-detecting USB cameras…
0.140191 gphoto2-port(0): Impossible de trouver le périphérique USB (fabricant 0x553, produit 0x202). Assurez-vous qu’il est bien connecté à l’ordinateur.

0.695634 gphoto2-port(0): Impossible de trouver le périphérique USB (fabricant 0x4a9, produit 0x30ec). Assurez-vous qu’il est bien connecté à l’ordinateur.
0.695677 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x3084)… found.
0.695696 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class ff, subclass ff
0.695717 gphoto2-abilities-list.c(2): Found ‘Canon EOS 300D (normal mode)’ (0x4a9,0x3084)
0.695750 gphoto2-port(2): Freeing port…
0.695772 gphoto2-port(2): Closing port…
0.696090 gphoto2-camera(2): Setting abilities (‘Canon EOS 300D (normal mode)’)…
0.696132 setting/gphoto2-setting.c(2): Creating $HOME/.gphoto
0.696846 setting/gphoto2-setting.c(2): Can’t open settings file for reading
0.696875 setting/gphoto2-setting.c(2): Loading settings from file "/root/.gphoto/settings"
0.696897 setting/gphoto2-setting.c(2): Can’t open settings for reading
0.696911 gphoto2-setting(2): Setting key ‘model’ to value ‘Canon EOS 300D (normal mode)’ (gphoto2)
0.696943 gphoto2-setting(2): Saving 1 setting(s) to file "/root/.gphoto/settings"
0.697200 gp-port-info-list(2): Loading io-drivers from ‘/usr/lib/gphoto2_port/0.5.1’…
0.697485 gphoto2-port-serial(2): Trying to lock ‘/dev/ttyS0’…

0.710123 gphoto2-port-serial(2): Trying to lock ‘/dev/ttyS32’…
0.710187 gphoto2-port-core(2): Loaded ‘Port série 0’ (serial:/dev/ttyS0) from ‘libgphoto2_port_serial.so’

0.710249 gphoto2-port-core(2): Loaded ‘Port série 4’ (serial:/dev/ttyS4) from 'libgphoto2_port_serial.so’
0.710262 gphoto2-port-core(2): Loaded ‘’ (^serial) from 'libgphoto2_port_serial.so’
0.711448 gphoto2-port-core(2): Loaded ‘Universal Serial Bus’ (usb:) from 'libgphoto2_port_usb.so’
0.711495 gphoto2-port-core(2): Loaded ‘Universal Serial Bus’ (usb:001,002) from 'libgphoto2_port_usb.so’
0.711509 gphoto2-port-core(2): Loaded ‘Universal Serial Bus’ (usb:001,003) from 'libgphoto2_port_usb.so’
0.711593 gphoto2-port-info-list(2): Looking for path ‘usb:’ (9 entries available)…
0.711634 gphoto2-port-info-list(2): Getting info of entry 5 (9 available)…
0.711679 gphoto2-camera(2): Setting port info for port ‘Universal Serial Bus’ at ‘usb:’…
0.712518 gphoto2-port(2): Setting timeout to 5000 millisecond(s)…
0.712555 gphoto2-port(2): Setting settings…
0.712571 gphoto2-setting(2): Setting key ‘port’ to value ‘usb:’ (gphoto2)
0.712592 gphoto2-setting(2): Saving 2 setting(s) to file "/root/.gphoto/settings"
0.712948 foreach(2): Executing action ‘List Files’ for folder ‘/’.
0.713476 gphoto2-camera(2): Listing files in ‘/’…
0.713584 gphoto2-camera(2): Initializing camera…
0.713673 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x3084)… found.
0.713708 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 81, outep 02, intep 83, class ff, subclass ff
0.713730 gphoto2-camera(2): Loading ‘/usr/lib/gphoto2/2.1.5/libgphoto2_canon.so’…
0.714267 gphoto2-port(2): Opening USB port…
0.714764 gphoto2-port(0): Could not query kernel driver of device.
0.714861 gphoto2-port(0): Could not claim interface 0 (Opération non permise). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
0.715020 context(0): Une erreur est intervenue dans la bibliothèque d’entrée-sortie (‘Impossible d’utiliser le périphérique USB’): Could not claim interface 0 (Opération non permise). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.

*** Erreur ***
Une erreur est intervenue dans la bibliothèque d’entrée-sortie (‘Impossible d’utiliser le périphérique USB’): Could not claim interface 0 (Opération non permise). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.
*** Erreur (-53: ‘Impossible d’utiliser le périphérique USB’) ***

Pour obtenir les messages de débogage, merci d’utiliser l’option --debug.
Ces messages peuvent aider à trouver une solution à votre problème.
Si vous avez l’intention d’envoyer un message d’erreur ou de débogage à la
liste de distribution des développeurs gPhoto gphoto-devel@lists.sourceforge.net,
merci de lancer gphoto2 comme suit :

env LANG=C gphoto2 --debug --debug -L

Please make sure there is sufficient quoting around the arguments.

0.813889 gp-camera(2): Freeing camera…
0.813919 gphoto2-port(2): Freeing port…
0.813933 gphoto2-port(2): Closing port…
0.814073 gphoto2-port(0): Impossible de relâcher l’interface 0 (Opération non permise).
0.814205 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list…
0.814222 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.814234 gphoto2-filesystem(2): Internally deleting all folders from ‘/’…[/color]

Merci de m’orienter vers la solution car je sèche sur ce problème. :open_mouth:

as tu verifié que les modules cités ne s"étaient pas chargés par erreur ?
Que donne ton lsmod ?

J’ai été amené à faire un backport de gphoto2 2.1.6-2.1 pour sarge que tu trouveras sur

deb boisson.homeip.net/sarge/ ./

Mais je ne pense pas que ça resolve ton problème, ton appareil semble reconnu.

0.714764 gphoto2-port(0): Could not query kernel driver of device.
0.714861 gphoto2-port(0): Could not claim interface 0 (Opération non permise). Make sure no other program or kernel module (such as sdc2xx, stv680, spca50x) is using the device and you have read/write access to the device.

me fait penser que ton appareil est peut être confondu, je vois deux pbms envisageables:

  • Tu as un module qui se charge lors de l’insertion de ton appareil et qui accapare le port (ton appareil fait webcam??) [edit: c’est ce que veux dire aussi MatOTop, suis cette idée d’abord en regardant si un module se charge quand tu met l’appareil]

  • Tu utilises udev et il y a un souci à la création du fichier /dev

Essayes de voir avec strace peut être…

Merci de vos reponses

j’ai donc lancer un ls mod et je ne vois aucun module qui resemble à (such as sdc2xx, stv680, spca50x)

$ lsmod
Module Size Used by Not tainted
ppp_deflate 3320 1 (autoclean)
zlib_deflate 18968 0 (autoclean) [ppp_deflate]
bsd_comp 4248 0 (autoclean)
ppp_async 6688 1 (autoclean)
ppp_generic 20388 3 (autoclean) [ppp_deflate bsd_comp ppp_async]
slhc 4784 1 (autoclean) [ppp_generic]
lp 6724 0
mousedev 4148 1
hid 21220 0 (unused)
input 3648 0 [mousedev hid]
usb-uhci 23344 0 (unused)
es1371 26444 0
ac97_codec 13300 0 [es1371]
soundcore 3940 4 [es1371]
gameport 1676 0 [es1371]
ide-scsi 10032 0
parport_pc 23880 1
parport 26504 1 [lp parport_pc]
vfat 10540 1 (autoclean)
fat 31960 0 (autoclean) [vfat]
nls_cp437 4348 3 (autoclean)
ntfs 54304 1 (autoclean)
dm-mod 46808 0 (unused)
usb-storage 65088 0 (unused)
usbcore 62924 1 [hid usb-uhci usb-storage]
sg 31932 0 (unused)
sd_mod 11756 0 (unused)
scsi_mod 95108 3 [ide-scsi usb-storage sg sd_mod]
ide-cd 31296 0
cdrom 29828 0 [ide-cd]
rtc 6440 0 (autoclean)
ext3 81068 2 (autoclean)
jbd 42468 2 (autoclean) [ext3]
ide-detect 288 0 (autoclean) (unused)
via82cxxx 10824 1 (autoclean)
ide-disk 16800 5 (autoclean)
ide-core 108568 5 (autoclean) [ide-scsi usb-storage ide-cd ide-detect via82cxxx ide-disk]
unix 14960 123 (autoclean)

Je ne sais pas à quoi sert udev et je ne sais pas si je l’utilise.
Je vais donc creuser le sujet. Je suis preneur de bonnes pistes pour des explications en français (malheureusement je parle la langue GB comme une vache espagnole).
Merci encore
Existe t-il un autre moyen d’acceder à la carte mémoire de l’appareil par hasard?
J’ai suivi les conseils de avision et j’ai effectué un
$ lsusb
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 002: ID 046d:c03e Logitech, Inc.
Bus 001 Device 005: ID 04a9:3084 Canon, Inc. EOS 300D / EOS Digital Rebel