Please backport libgphoto2 from Gutsy to Feisty - important bugfixes and new cameras support

Bug #110065 reported by jdo
10
Affects Status Importance Assigned to Milestone
Feisty Backports
Won't Fix
Undecided
Unassigned
libgphoto2 (Baltix)
Fix Released
Undecided
Unassigned
libgphoto2 (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Please backport libgphoto2 from Gutsy to Feisty - there are important bugfixes and new cameras support in stable 2.4.0 release (libgphoto2 in Feisty is unstable release - 2.3.1). Look at comments bellow for more info about bugs in Feisty's libgphoto2 library:

After updating to Ubuntu feisty (7.04) I can no longer import photo's from my camera. I tried the '386' and 'generic' kernel and the 'desktop' LiveCD, all have the same problem.

I write a message at the bottom of Bug #78756, but decided to start a new bug. Bug #85879 looks alike, but the fix metioned in Bug #103439 didn't work. And my camera (04a9:30f8) is already listed in 45-libgphoto2.rules.

Connecting the camera : The "import photos" dialog shows, but hangs 9 out of 10 times. If it works, I can import photos, although a ptp error is shortly shown.
gphoto2 --auto-detect : Shows "Canon PowerShot A430 (PTP mode)".
gphoto2 -L : hangs, also with sudo.
gphoto2 -P : hangs, also with sudo.

The following is a part of the debug output for "gphoto2 -L". After that, it is repeating to open a PTP session and trying to write.

0.444802 gphoto2-port-usb(1): Looking for USB device (vendor 0x4a9, product 0x30f8)... found.
0.444931 gphoto2-port-usb(1): Detected defaults: config 1, interface 0, altsetting 0, inep 82, outep 01, intep 83, class 06, subclass 01
0.445047 gphoto2-camera(2): Loading '/usr/lib/libgphoto2/2.3.0/ptp2'...
0.445978 gphoto2-port(2): Opening USB port...
0.446272 gphoto2-port(0): Could not query kernel driver of device.
0.446613 gphoto2-port(2): Setting timeout to 8000 millisecond(s)...
0.446749 ptp(2): PTP: Opening session
0.446872 gphoto2-port(2): Writing 16=0x10 byte(s) to port...
0.446995 gphoto2-port(3): Hexdump of 16 = 0x10 bytes follows:
0000 10 00 00 00 01 00 02 10-00 00 00 00 01 00 00 00 ................

8.451809 PTP2/library.c(2): PTP: gp_port_* function returned 0xffffffdd -35
8.452050 ptp(2): PTP: Opening session

Tags: feisty
Revision history for this message
jdo (jdo-deactivatedaccount) wrote :

This is probably the problem:
http://www.nabble.com/Problems-using-gphoto2-connected-through-USB-with-Canon-Powershot-A430.-t3596630.html

Is it possible to compile a new version for Ubuntu?

jdo

Revision history for this message
jdo (jdo-deactivatedaccount) wrote :

workaround:
(1) take the memory card from the camera and use a card reader.
(2) use ptpcam from the libptp package ( http://libptp.sourceforge.net/ ), this works very well, but the syntax of the sources have to be changed to be able to compile them.
(3) use libgphoto-2-2 package of ubuntu 6.10 (edgy eft), this is not a nice solution and causes some errors.
(4) wait for newer version.

Revision history for this message
Lorenzo De Tomasi (lorenzo-detomasi) wrote :

Please release the newer version for Ubuntu 7.04. I have read the bug has been fixed in library.c of libgphoto2.
Thank you

Revision history for this message
Gareth Fitzworthington (mapping-gp-deactivatedaccount) wrote :

I can confirm this bug on two separate Feisty installations & with the Live CD. Problem is just as described by jdo above.

It appears from the Nabble link above that unfortunately adventurous libgphoto code got caught in feisty distribution.

Much looking forward to ubuntu upgrade for libgphoto2.
Thanks

Revision history for this message
Gotty (alaniray-hotmail) wrote :

I have exactly the same problem with the same camera. Other cameras such as Nikon D70 or another Canon camera I forgot the name work, so I figured it was a misconfiguration of this specific one.

Revision history for this message
Serge Hartmann (shartmann) wrote :

Probably the same problem than Bug #91265 .
I got a Canon Powershot S45, and feisty is unable to read the filesystem on it.

Revision history for this message
udude (igal) wrote :

I've reported a (probably) related Bug #117247 on powershot S3-IS.
For me, the "import photos" doesn't hang but neither works.
It's not clear that this is the same problem, so will not mark it as duplicate for now

Revision history for this message
Gaetano Pepe (gape) wrote :

I have the same problem with F-spot and Canon A430 -
The strange is that few days ago I was able to download the pictures without problems.

Revision history for this message
jdo (jdo-deactivatedaccount) wrote :

The problem of Serge Hartmann (2007-05-29) and Yigael (2007-05-29) seems to be a different problem.
Gaetano Pepe has the same problem, and also with Canon A430. F-spot uses the same libgphoto2 library.

1 out 10 times I can download pictures from my camera. So it is possible, but I don't know what makes it work 1 out of 10 times.

Still, it seems that we have to wait for october for a new Ubuntu version.
This bug isn't even assigned to someone.

Revision history for this message
Mantas Kriaučiūnas (mantas) wrote : Latest stable libgphoto2 version (2.4.0) works fine with Canon A430 !

This bug is fixed in latest stable libgphoto2 version (2.4.0), but Ubuntu still has old version in Gutsy and Feisty.
I've merged Ubuntu changes with latest stable libgphoto2 version (2.4.0) from Debian new packages for Ubuntu 7.04 ("Feisty") and 7.10 ("Gutsy") are available at my personal package archive (PPA):

http://ppa.launchpad.net/mantas/ubuntu/pool/main/libg/libgphoto2/libgphoto2-port0_2.4.0-2feisty2_i386.deb
http://ppa.launchpad.net/mantas/ubuntu/pool/main/libg/libgphoto2/libgphoto2-2_2.4.0-2feisty2_i386.deb

I've tested and didn't found any problems during photos import with Canon A430 !

To Ubuntu developers: should I report a new bug about updating libgphoto2 packages in 7.10 ("Gutsy") or this bug is enough ?

Revision history for this message
Achim Bohnet (allee) wrote : Re: unable to import photos after update to feisty

Lure has packages for gutsy already:

 https://launchpad.net/~lure/+archive

and that are currently tested. With the hope to get a UVF for gusty.
Please join the thread on 'libgphoto2 2.4.0 package for testing'
on ubuntu-devel-discuss or kubuntu-devel. Thx.

Achim

Revision history for this message
jdo (jdo-deactivatedaccount) wrote :

I am closing this bug.

The new Ubuntu 7.10 (Gutsy Gibbon) has already new library and the testing versions are okay for the Canon PowerShot A430.

The new 'lure' libraries can't be integrated with Ubuntu 7.04 (Feisty Fawn) since other new libraries are needed.

The packages provide Mantas Kriaučiūnas (thanks!) in his message on 14 sep 2007 work perfect with Feisty Fawn. It might be a security risk to install packages which are not in the repository, but if you can't wait another month for the new Ubuntu version they make it work.

kind regards,
jdo

Changed in libgphoto2:
status: New → Fix Released
Revision history for this message
Achim Bohnet (allee) wrote :

Please add your test results to

   https://bugs.launchpad.net/ubuntu/+source/libgphoto2/+bug/110065

tests reports will help to get 2.4.0 into gutsy. It's quite late in the release cycle!!

description: updated
Revision history for this message
Jérôme Guelfucci (jerome-guelfucci-deactivatedaccount) wrote :

Builds fine in a pbuilder and installs fine, rdeps install fine.

Revision history for this message
John Dong (jdong) wrote :

I dislike performing library backports like this. If either the maintainer or some other Ubuntu developer can say with certainty this will not cause ABI/API breakage or regressions, I will take a look at it.

Changed in feisty-backports:
status: New → Incomplete
Revision history for this message
jdo (jdo-deactivatedaccount) wrote :

This bug was started (by me) with the title "unable to import photos after update to feisty".
The title and first message were altered by someone else.

The Canon PowerShot A430 can be used with "Gutsy Gibbon" (7.10), so everyone with "Feisty Fawn" (7.04) should upgrade.
The packages provided by Mantas Kriaučiūnas (see his message on 2007-09-14) can be used to make this camera work with "Feisty" if needed.

As far as I know this problem is only with this single camera and only with "Feisty".
My suggestion is to just close this bug.

kind regards,
jdo

Revision history for this message
John Dong (jdong) wrote :

That sounds good. Since this only affects a small number of people and packages are available for those, I'd rather not risk doing the backport globally and ending up with other unrelated regressions.

Changed in feisty-backports:
status: Incomplete → Won't Fix
Revision history for this message
Serge Hartmann (shartmann) wrote :

I confirm Canon Powershot S45 and S50 work fine now with Gutsy.

Przemek K. (azrael)
Changed in libgphoto2 (Baltix):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related questions

Remote bug watches

Bug watches keep track of this bug in other bug trackers.