[SRU] Calibre: Error in viewing/changing Preferences

Bug #457301 reported by Mike Basinger
38
This bug affects 6 people
Affects Status Importance Assigned to Milestone
calibre (Ubuntu)
Fix Released
Medium
Fabrice Coutadeur
Karmic
Fix Released
Undecided
Fabrice Coutadeur

Bug Description

Binary package hint: calibre

When I view or try to change Preference I get the following error.

ERROR: ERROR: Unhandled exception: <b>TypeError</b>:<lambda>() takes exactly 2 arguments (3 given)

TypeError: <lambda>() takes exactly 2 arguments (3 given)

ProblemType: Bug
Architecture: i386
Date: Wed Oct 21 10:13:10 2009
DistroRelease: Ubuntu 9.10
InstallationMedia: Ubuntu 9.10 "Karmic Koala" - Alpha i386 (20091016)
NonfreeKernelModules: nvidia wl
Package: calibre 0.6.13+dfsg-0ubuntu3
PackageArchitecture: all
ProcEnviron:
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.48-generic
SourcePackage: calibre
Uname: Linux 2.6.31-14-generic i686

Related branches

Revision history for this message
Mike Basinger (mike.basinger) wrote :
Revision history for this message
Mike Basinger (mike.basinger) wrote :

dbasinge@mikebuntu:~$ calibre
link hasn't been detected!
link hasn't been detected!
link hasn't been detected!
link hasn't been detected!
link hasn't been detected!
link hasn't been detected!
TypeError: <lambda>() takes exactly 2 arguments (3 given)

link hasn't been detected!
link hasn't been detected!
link hasn't been detected!
link hasn't been detected!
TypeError: <lambda>() takes exactly 2 arguments (3 given)

summary: - Error in viewing/changing Preferences
+ Calibre: Error in viewing/changing Preferences
Revision history for this message
andschuster (andreas-schuster2) wrote : Re: Calibre: Error in viewing/changing Preferences

I can confirm hat bug using karmic RC

Changed in calibre (Ubuntu):
status: New → Confirmed
Revision history for this message
Hanno (hzulla) wrote :

Calibre is basically broken in Karmic due to this bug. A manual install solved this. Please update Calibre to the latest version.

Revision history for this message
Luigi Rosa (luigi-rosa) wrote :

Confirmed on 64bit AMD platform after fresh install of calibre. Impossible to use.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

I confirm I get this error, but calibre works perfectly and beside this error, I'm able to set preferences.
So why do you say it's broken?

Fabrice

Changed in calibre (Ubuntu):
importance: Undecided → Wishlist
Revision history for this message
Luigi Rosa (luigi-rosa) wrote :

fabrice_sp: I am NOT able to set preferences. If I hit the Preferences button appears the error, then General preferences. If I hit other buttons (Interface, vonversion...) in the Preference window, appears the error and the right side of the window display always General options.

I have AMD64 and English-GB localization.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

You're right: the same here.
As I was able to set preferences on the first tab, I thought it was ok.
Increasing the Importance of the bug report.

Changed in calibre (Ubuntu):
importance: Wishlist → Medium
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

From the author of calibre:
"0.6.19 is not compatible with PyQt 4.6. Either wait for 0.6.20 or downgrade PyQt to 4.5.x"
As Ubuntu has PyQt 4.6, let's see what is the patch to see if it's possible to apply it to actual version.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

I've retrofitted 2 patches that I found in the bazaar repository t fix this issue.
I've uploaded the resulting package in my ppa (https://launchpad.net/~fabricesp/+archive/experimental/+packages). It should be built in 9 hours. When built, can you test and report success / failure?
If it works, I'll fulfill a SRU to get it included in Karmic.

Thanks,
Fabrice

Changed in calibre (Ubuntu):
assignee: nobody → fabrice_sp (fabricesp)
status: Confirmed → In Progress
Revision history for this message
Mike Basinger (mike.basinger) wrote :

@fabrice_sp No change with the new deb.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Strange: it fixed it in my case (just reinstalled it from the ppa).
Can you please post the result of the following commands:
apt-cache policy calibre
apt-cache policy calibre-bin

Thanks,
Fabrice

Revision history for this message
Luigi Rosa (luigi-rosa) wrote :

@fabrice_sp No change with the new Ubuntu 9.10 64bit. Same problem.

$ apt-cache policy calibre
calibre:
  Installed: 0.6.13+dfsg-0ubuntu3
  Candidate: 0.6.13+dfsg-0ubuntu3
  Version table:
 *** 0.6.13+dfsg-0ubuntu3 0
        500 http://it.archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

$ apt-cache policy calibre-bin
calibre-bin:
  Installed: 0.6.13+dfsg-0ubuntu3.1~ppa~karmic
  Candidate: 0.6.13+dfsg-0ubuntu3.1~ppa~karmic
  Version table:
 *** 0.6.13+dfsg-0ubuntu3.1~ppa~karmic 0
        100 /var/lib/dpkg/status
     0.6.13+dfsg-0ubuntu3 0
        500 http://it.archive.ubuntu.com karmic/universe Packages

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

You should also install the calibre package (the first one), and not only the calibre-bin: the python part of calibre (the one that is failing) is in this package.

Please update and report success or failure.

Thanks,
Fabrice

Revision history for this message
Luigi Rosa (luigi-rosa) wrote :

WORKS! Sorry about the previoous mistake, but oly the -bin package was available at first time.

I make a complete removal of previous packages and installed calibre-bin first and calibre after and it works.

Thank you fabrice_sp!

Revision history for this message
Mike Basinger (mike.basinger) wrote :

I must had calibre working in the background, cause it worked after a reboot.

Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Documentation of the SRU:

Impact of the bug: the application cannot be configured, and is therefore a lot less usable.

How the bug has been addressed: The fixes has been retrofitted from upstream. Some adaptation has been required as this will be solved with release 0.6.20 and we are at 0.6.13.

TEST CASE: run calibre, click on the Preference button. The first error happen. Click now on one tab on the left, and the same error also happen.

Potential regression: the fix affect 8 different sources, but I only could test 4, so potentially, some functionalities may stop working, even if the risk is low as the change is taken from upstream.

summary: - Calibre: Error in viewing/changing Preferences
+ [SRU] Calibre: Error in viewing/changing Preferences
Revision history for this message
Martin Pitt (pitti) wrote : Please test proposed package

Accepted calibre into karmic-proposed, the package will build now and be available in a few hours. Please test and give feedback here. See https://wiki.ubuntu.com/Testing/EnableProposed for documentation how to enable and use -proposed. Thank you in advance!

Changed in calibre (Ubuntu Karmic):
status: New → Fix Committed
tags: added: verification-needed
Revision history for this message
Fabrice Coutadeur (fabricesp) wrote :

Hi,

I've just installed the version from proposed:
apt-cache policy calibre calibre-bin
calibre:
  Installed: 0.6.13+dfsg-0ubuntu3.1
  Candidate: 0.6.13+dfsg-0ubuntu3.1
  Version table:
 *** 0.6.13+dfsg-0ubuntu3.1 0
        500 http://archive.ubuntu.com karmic-proposed/universe Packages
        100 /var/lib/dpkg/status
     0.6.13+dfsg-0ubuntu3.1~ppa~karmic 0
        500 http://ppa.launchpad.net karmic/main Packages
     0.6.13+dfsg-0ubuntu3 0
        500 http://archive.ubuntu.com karmic/universe Packages
calibre-bin:
  Installed: 0.6.13+dfsg-0ubuntu3.1
  Candidate: 0.6.13+dfsg-0ubuntu3.1
  Version table:
 *** 0.6.13+dfsg-0ubuntu3.1 0
        500 http://archive.ubuntu.com karmic-proposed/universe Packages
        100 /var/lib/dpkg/status
     0.6.13+dfsg-0ubuntu3.1~ppa~karmic 0
        500 http://ppa.launchpad.net karmic/main Packages
     0.6.13+dfsg-0ubuntu3 0
        500 http://archive.ubuntu.com karmic/universe Packages

and the error does not show anymore. I've also converted some books, and send them to my ebook reader, so the program seems to work fine.

Fabrice

Revision history for this message
Psycona (jonathan-hepburn) wrote :

Agreed. Seems to work without any trouble here.

apt-cache policy calibre calibre-bin
calibre:
  Installed: 0.6.13+dfsg-0ubuntu3.1
  Candidate: 0.6.13+dfsg-0ubuntu3.1
  Version table:
 *** 0.6.13+dfsg-0ubuntu3.1 0
        500 http://ftp.netspace.net.au karmic-proposed/universe Packages
        100 /var/lib/dpkg/status
     0.6.13+dfsg-0ubuntu3 0
        500 http://ftp.netspace.net.au karmic/universe Packages
calibre-bin:
  Installed: 0.6.13+dfsg-0ubuntu3.1
  Candidate: 0.6.13+dfsg-0ubuntu3.1
  Version table:
 *** 0.6.13+dfsg-0ubuntu3.1 0
        500 http://ftp.netspace.net.au karmic-proposed/universe Packages
        100 /var/lib/dpkg/status
     0.6.13+dfsg-0ubuntu3 0
        500 http://ftp.netspace.net.au karmic/universe Packages

Martin Pitt (pitti)
tags: added: verification-done
removed: verification-needed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package calibre - 0.6.13+dfsg-0ubuntu3.1

---------------
calibre (0.6.13+dfsg-0ubuntu3.1) karmic-proposed; urgency=low

  * fix_PyQt_4.6.patch: cherrypicked for upstream to make calibre works with
    PyQt 4.6 (LP: #457301)

 -- Fabrice Coutadeur <email address hidden> Fri, 30 Oct 2009 21:44:08 +0100

Changed in calibre (Ubuntu Karmic):
status: Fix Committed → Fix Released
Revision history for this message
Martin Pitt (pitti) wrote :

copied to lucid.

Changed in calibre (Ubuntu):
status: In Progress → Fix Released
Changed in calibre (Ubuntu Karmic):
status: Fix Released → Fix Committed
assignee: nobody → fabrice_sp (fabricesp)
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package calibre - 0.6.13+dfsg-0ubuntu3.1

---------------
calibre (0.6.13+dfsg-0ubuntu3.1) karmic-proposed; urgency=low

  * fix_PyQt_4.6.patch: cherrypicked for upstream to make calibre works with
    PyQt 4.6 (LP: #457301)

 -- Fabrice Coutadeur <email address hidden> Fri, 30 Oct 2009 21:44:08 +0100

Changed in calibre (Ubuntu Karmic):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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