Running Calibre 2.0 fails on Ubuntu precise 64bit

Bug #1362312 reported by Robert Fekete
This bug report is a duplicate of:  Bug #1360200: 2.0 installs but crashes on startup. Edit Remove
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
calibre
New
Undecided
Unassigned

Bug Description

I've been successfully running various versions of calibre on Ubuntu Precise 64-bit, using the binary installer.
However, after installing version 2.0, calibre does not start:
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 163, in __init__
  File "site-packages/calibre/gui2/ui.py", line 177, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 582, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.kindle_collections.ui", line 11, in <module>
ImportError: No module named PyQt4.Qt
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 163, in __init__
  File "site-packages/calibre/gui2/ui.py", line 177, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 582, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.find_duplicates.action", line 11, in <module>
ImportError: No module named PyQt4.Qt
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
Segmentation fault (core dumped)

Revision history for this message
Kovid Goyal (kovid) wrote : Re: calibre bug 1362312

Duplicate of https://bugs.launchpad.net/calibre/+bug/1360200

 duplicate 1360200

Revision history for this message
Robert Fekete (fekete77-robert) wrote :
Download full text (3.3 KiB)

Hi Kovid, thank you very much for your reply, and also for creating this awesome application!

Unfortunately, the beta you linked in bug #1360200 does not solve the problem.

1. The traceback in my original post appears when I run calibre from the terminal without any parameters (that is, without --detach)

2. Running "calibre-debug -g 1> log.txt 2>&1" gives the following output:
 calibre 2.0 isfrozen: True is64bit: True
Linux-3.5.0-54-generic-x86_64-with-debian-wheezy-sid Linux ('64bit', 'ELF')
('Linux', '3.5.0-54-generic', '#81~precise1-Ubuntu SMP Tue Jul 15 04:02:22 UTC 2014')
Python 2.7.8
Linux: ('debian', 'wheezy/sid', '')
Successfully initialized third party plugins: Kindle Collections && Antikvarium_hu && Libri_hu && Find Duplicates && Barnes & Noble && Moly_hu && Manage Series && Goodreads
Starting up...
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 163, in __init__
  File "site-packages/calibre/gui2/ui.py", line 177, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 582, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.kindle_collections.ui", line 11, in <module>
ImportError: No module named PyQt4.Qt
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 163, in __init__
  File "site-packages/calibre/gui2/ui.py", line 177, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 582, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.find_duplicates.action", line 11, in <module>
ImportError: No module named PyQt4.Qt
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

3. Running "calibre-debug -c "import os; os.fork() != 0 and sys.exit(0); os.setsid(); from calibre.gui2.main import main; main()""
produces:

Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 163, in __init__
  File "site-packages/calibre/gui2/ui.py", line 177, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 582, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.kindle_collections.ui", line 11, in <module>
ImportError: No module named PyQt4.Qt
Traceback (most recent call last):
  File "site-packages/calibre/gui2/ui.py", line 163, in __init__
  File "site-packages/calibre/gui2/ui.py", line 177, in init_iaction
  File "site-packages/calibre/customize/__init__.py", line 582, in load_actual_plugin
  File "importlib/__init__.py", line 37, in import_module
  File "site-packages/calibre/customize/zipplugin.py", line 179, in load_module
  File "calibre_plugins.find_duplicates.action", line 11, in <module>
ImportError: No module named PyQt4.Qt
libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

4. Running "calibre-debug -c "from calibre.gui2 import detach_gui; det...

Read more...

Revision history for this message
Kovid Goyal (kovid) wrote :

Those errors come from plugins, you have installed, just ignore them, the plugins will be automatically disabled when calibre runs. Most of those plugins have been updated, once you update them on your machine, they will return to working.

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.