Re: error connecting to camera 0.3.2



Hi Hubert,

On 2/5/07, Hubert Figuiere <hub figuiere net> wrote:
Todd Slater wrote:
> 0.3.2 built from source on Ubuntu Edgy.
>
> Received error "Could not claim the USB device" while connecting to camera.
>
> Testing gphoto path = usb:
> PortInfo Universal Serial Bus, usb:
> Error USBClaim: LibGPhoto2.GPhotoException: Could not claim the USB device
>   at LibGPhoto2.Error.CheckError (ErrorCode error) [0x00000]
>   at LibGPhoto2.Camera.Init (LibGPhoto2.Context context) [0x00000]
>   at GPhotoCamera.InitializeCamera () [0x00000]
>   at MainWindow.ImportCamera (System.String camera_device) [0x00000]
>
> This was fine when I used Dapper.

Does it work in gphoto2 command-line? Since you changed distro, lot of
things have changed.

Here's what I ran from the command line:

env LANG=C gphoto2 --debug --auto-detect --summary --debug

The output is kinda long, I posted it at
http://webonaire.com/~dontodd/gphoto.log.

Perhaps the relevant stuff at the end:

0.423192 gphoto2-port-usb(1): Looking for USB device (class 0x6,
subclass, 0x1, protocol 0x1)... found.
0.423213 gphoto2-port-usb(1): Detected defaults: config 1, interface
0, altsetting 0, idVendor ID 040a, idProduct 05a2, inep 81, outep 01,
intep 82
0.423235 gphoto2-abilities-list.c(2): Found 'PTP/IP Camera' (0x6,0x1,0x1)
0.423259 gphoto2-port(2): Freeing port...
0.423279 gphoto2-port(2): Closing port...
0.423570 gphoto2-camera(2): Initializing camera...
0.423606 gphoto2-port(0): The supplied vendor or product id (0x0,0x0)
is not valid.
0.423627 gphoto2-port-usb(1): Looking for USB device (class 0x6,
subclass, 0x1, protocol 0x1)... found.
0.423647 gphoto2-port-usb(1): Detected defaults: config 1, interface
0, altsetting 0, idVendor ID 040a, idProduct 05a2, inep 81, outep 01,
intep 82
0.423668 gphoto2-camera(2): Loading '/usr/lib/libgphoto2/2.2.1/ptp2'...
0.424205 gphoto2-port(2): Opening USB port...
0.424293 gphoto2-port(0): Could not query kernel driver of device.
0.424329 gphoto2-port(0): Could not claim interface 0 (Operation not
permitted). 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.424385 context(0): An error occurred in the io-library ('Could not
claim the USB device'): Could not claim interface 0 (Operation not
permitted). 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.

*** Error ***
An error occurred in the io-library ('Could not claim the USB
device'): Could not claim interface 0 (Operation not permitted). 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.
*** Error (-53: 'Could not claim the USB device') ***

0.424640 gp-camera(2): Freeing camera...
0.424663 gphoto2-port(2): Freeing port...
0.424683 gphoto2-port(2): Closing port...
0.424713 gphoto2-port(0): Could not release interface 0 (Operation not
permitted).
0.424807 libgphoto2/gphoto2-filesys.c(2): Clearing fscache LRU list...
0.424828 libgphoto2/gphoto2-filesys.c(2): fscache LRU list already empty
0.424850 gphoto2-filesystem(2): Internally deleting all folders from '/'...
Model                          Port
----------------------------------------------------------
PTP/IP Camera                  usb:

So then this is likely not an f-spot problem but a gphoto2 problem?

Thanks,

Todd



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]