Ubuntu

calibre does not start

Reported by lipstick on 2010-12-17
32
This bug affects 7 people
Affects Status Importance Assigned to Milestone
calibre
Undecided
Unassigned
calibre (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: calibre

Traceback (most recent call last):
  File "/usr/bin/calibre", line 18, in <module>
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/__init__.py", line 18, in <module>
    from calibre.ebooks.metadata.meta import get_metadata, metadata_from_formats
  File "/usr/lib/calibre/calibre/ebooks/metadata/meta.py", line 9, in <module>
    from calibre.ebooks.metadata.opf2 import OPF
  File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
    from lxml import etree
  File "lxml.etree.pyx", line 183, in init lxml.etree (src/lxml/lxml.etree.c:141500)
LookupError: unknown encoding: ASCII

John C Hatch (henwyn) wrote :

The latest downloaded version from the developer does not have this bug but the Ubuntu distro package does. I tried reinstalling the package and had the same results. Traceback from attempting to open Calibre from a terminal:

 Traceback (most recent call last):
  File "/usr/bin/calibre", line 19, in <module>
    sys.exit(main())
  File "/usr/lib/calibre/calibre/gui2/main.py", line 321, in main
    app, opts, args, actions = init_qt(args)
  File "/usr/lib/calibre/calibre/gui2/main.py", line 40, in init_qt
    from calibre.gui2.ui import Main
  File "/usr/lib/calibre/calibre/gui2/ui.py", line 31, in <module>
    from calibre.gui2.widgets import ProgressIndicator
  File "/usr/lib/calibre/calibre/gui2/widgets.py", line 26, in <module>
    from calibre.gui2.progress_indicator import ProgressIndicator as
 _ProgressIndicator
  File "/usr/lib/calibre/calibre/gui2/progress_indicator/__init__.py",
 line 15, in <module>
    pi_error)
 RuntimeError: Failed to load the Progress Indicator plugin: the sip module
 implements API v8.0 but the progress_indicator module requires API v7.1

Fabrice Coutadeur (fabricesp) wrote :

Hi,

I'm not able to reproduce the bug in Maverick or Natty. Could you please post the output of the following command:
apt-cache policy calibre

Thanks,
Fabrice

Changed in calibre (Ubuntu):
status: New → Incomplete

sinan@sinan-1015PEM:~$ apt-cache policy calibre
calibre:
  Kurulu: 0.7.43+dfsg-1
  Aday: 0.7.43+dfsg-1
  Sürüm tablosu:
 *** 0.7.43+dfsg-1 0
        500 http://tr.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

2011/2/6 Fabrice Coutadeur <email address hidden>:
> Hi,
>
> I'm not able to reproduce the bug in Maverick or Natty. Could you please post the output of the following command:
> apt-cache policy calibre
>
> Thanks,
> Fabrice
>
> ** Changed in: calibre (Ubuntu)
>       Status: New => Incomplete
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/691608
>
> Title:
>  calibre does not start
>
> Status in “calibre” package in Ubuntu:
>  Incomplete
>
> Bug description:
>  Binary package hint: calibre
>
>  Traceback (most recent call last):
>    File "/usr/bin/calibre", line 18, in <module>
>      from calibre.gui2.main import main
>    File "/usr/lib/calibre/calibre/gui2/__init__.py", line 18, in <module>
>      from calibre.ebooks.metadata.meta import get_metadata, metadata_from_formats
>    File "/usr/lib/calibre/calibre/ebooks/metadata/meta.py", line 9, in <module>
>      from calibre.ebooks.metadata.opf2 import OPF
>    File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
>      from lxml import etree
>    File "lxml.etree.pyx", line 183, in init lxml.etree (src/lxml/lxml.etree.c:141500)
>  LookupError: unknown encoding: ASCII
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/calibre/+bug/691608/+subscribe
>

--
twitter.com/sinan_aykut

Fabrice Coutadeur (fabricesp) wrote :

Hi,

Sorry for the late answer: could you also please post the output of the following command:
apt-cache policy python-sip

It seems that there is a ppa with a newer version of python-sip that may be the root cause of the problem.

thanks,
Fabrice

lipstick (sinanaykut-gmail) wrote :

python-sip:
  Kurulu: 4.12.1-0ubuntu1
  Aday: 4.12.1-0ubuntu1
  Sürüm tablosu:
 *** 4.12.1-0ubuntu1 0
        500 http://tr.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

2011/3/3 Fabrice Coutadeur <email address hidden>:
> Hi,
>
> Sorry for the late answer: could you also please post the output of the following command:
> apt-cache policy python-sip
>
> It seems that there is a ppa with a newer version of python-sip that may
> be the root cause of the problem.
>
> thanks,
> Fabrice
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/691608
>
> Title:
>  calibre does not start
>
> Status in “calibre” package in Ubuntu:
>  Incomplete
>
> Bug description:
>  Binary package hint: calibre
>
>  Traceback (most recent call last):
>    File "/usr/bin/calibre", line 18, in <module>
>      from calibre.gui2.main import main
>    File "/usr/lib/calibre/calibre/gui2/__init__.py", line 18, in <module>
>      from calibre.ebooks.metadata.meta import get_metadata, metadata_from_formats
>    File "/usr/lib/calibre/calibre/ebooks/metadata/meta.py", line 9, in <module>
>      from calibre.ebooks.metadata.opf2 import OPF
>    File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
>      from lxml import etree
>    File "lxml.etree.pyx", line 183, in init lxml.etree (src/lxml/lxml.etree.c:141500)
>  LookupError: unknown encoding: ASCII
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/calibre/+bug/691608/+subscribe
>

--
twitter.com/sinan_aykut

Fabrice Coutadeur (fabricesp) wrote :

Hi,

calibre has been updated 3 weeks ago to 0.7.44. Could you check that you are using the latest version of calibre and still have the issue?

Thanks,
Fabrice

S.Rey (s.rey) wrote :

Hi,
I've just upgraded from maverick to natty, and now calibre doesn't open. It's 0.7.44 here.

calibre 0.7.44+dfsg-1build1
python-sip 4.12.1-1

lipstick (sinanaykut-gmail) wrote :
Download full text (3.4 KiB)

No, I have got this error.

sinan@sinan-1015PEM:~$ calibre
Traceback (most recent call last):
  File "/usr/bin/calibre", line 18, in <module>
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/__init__.py", line 19, in <module>
    from calibre.ebooks.metadata.meta import get_metadata, metadata_from_formats
  File "/usr/lib/calibre/calibre/ebooks/metadata/meta.py", line 9, in <module>
    from calibre.ebooks.metadata.opf2 import OPF
  File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
    from lxml import etree
  File "lxml.etree.pyx", line 239, in init lxml.etree
(src/lxml/lxml.etree.c:156733)
  File "lxml.etree.pyx", line 201, in lxml.etree.__unpackDottedVersion
(src/lxml/lxml.etree.c:7109)
LookupError: unknown encoding: ASCII
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line
94, in apport_excepthook
    if pr.check_ignored():
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 763,
in check_ignored
    dom = self._get_ignore_dom()
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 724,
in _get_ignore_dom
    dom = xml.dom.getDOMImplementation().createDocument(None, 'apport', None)
  File "/usr/lib/python2.7/dist-packages/cssutils/__init__.py", line
160, in createDocument
    raise NotImplementedError
NotImplementedError

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/calibre", line 18, in <module>
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/__init__.py", line 19, in <module>
    from calibre.ebooks.metadata.meta import get_metadata, metadata_from_formats
  File "/usr/lib/calibre/calibre/ebooks/metadata/meta.py", line 9, in <module>
    from calibre.ebooks.metadata.opf2 import OPF
  File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
    from lxml import etree
  File "lxml.etree.pyx", line 239, in init lxml.etree
(src/lxml/lxml.etree.c:156733)
  File "lxml.etree.pyx", line 201, in lxml.etree.__unpackDottedVersion
(src/lxml/lxml.etree.c:7109)
LookupError: unknown encoding: ASCII

2011/4/10 S.Rey <email address hidden>:
> Hi,
> I've just upgraded from maverick to natty, and now calibre doesn't open. It's 0.7.44 here.
>
> calibre 0.7.44+dfsg-1build1
> python-sip 4.12.1-1
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/691608
>
> Title:
>  calibre does not start
>
> Status in “calibre” package in Ubuntu:
>  Incomplete
>
> Bug description:
>  Binary package hint: calibre
>
>  Traceback (most recent call last):
>    File "/usr/bin/calibre", line 18, in <module>
>      from calibre.gui2.main import main
>    File "/usr/lib/calibre/calibre/gui2/__init__.py", line 18, in <module>
>      from calibre.ebooks.metadata.meta import get_metadata, metadata_from_formats
>    File "/usr/lib/calibre/calibre/ebooks/metadata/meta.py", line 9, in <module>
>      from calibre.ebooks.metadata.opf2 import OPF
>    File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
>      from lxml import etree
>    File "lxml.etree....

Read more...

Fabrice Coutadeur (fabricesp) wrote :

Hi,

@S.Rey: what is the error you're getting if you start calibre from the command line?. If this is different than the one that there is in the Description, please open a new bug report.

@lipstick: I'm still unable to reproduce the bug report. What is the version of calibre-bin and the version of python-lxml ?

Thanks,
Fabrice

lipstick (sinanaykut-gmail) wrote :

sinan@sinan-1015PEM:~$ apt-cache policy calibre-bin
calibre-bin:
  Kurulu: 0.7.44+dfsg-1build1
  Aday: 0.7.44+dfsg-1build1
  Sürüm tablosu:
 *** 0.7.44+dfsg-1build1 0
        500 http://tr.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

python-lxml:
  Kurulu: 2.3-0.1
  Aday: 2.3-0.1
  Sürüm tablosu:
 *** 2.3-0.1 0
        500 http://tr.archive.ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

2011/4/10 Fabrice Coutadeur <email address hidden>:
> Hi,
>
> @S.Rey: what is the error you're getting if you start calibre from the
> command line?. If this is different than the one that there is in the
> Description, please open a new bug report.
>
> @lipstick: I'm still unable to reproduce the bug report. What is the
> version of calibre-bin and the version of python-lxml ?
>
> Thanks,
> Fabrice
>
> --
> You received this bug notification because you are a direct subscriber
> of the bug.
> https://bugs.launchpad.net/bugs/691608
>
> Title:
>  calibre does not start
>
> Status in “calibre” package in Ubuntu:
>  Incomplete
>
> Bug description:
>  Binary package hint: calibre
>
>  Traceback (most recent call last):
>    File "/usr/bin/calibre", line 18, in <module>
>      from calibre.gui2.main import main
>    File "/usr/lib/calibre/calibre/gui2/__init__.py", line 18, in <module>
>      from calibre.ebooks.metadata.meta import get_metadata, metadata_from_formats
>    File "/usr/lib/calibre/calibre/ebooks/metadata/meta.py", line 9, in <module>
>      from calibre.ebooks.metadata.opf2 import OPF
>    File "/usr/lib/calibre/calibre/ebooks/metadata/opf2.py", line 14, in <module>
>      from lxml import etree
>    File "lxml.etree.pyx", line 183, in init lxml.etree (src/lxml/lxml.etree.c:141500)
>  LookupError: unknown encoding: ASCII
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/ubuntu/+source/calibre/+bug/691608/+subscribe
>

--
twitter.com/sinan_aykut

S.Rey (s.rey) wrote :

I get this. I thought it was the same, but i've noticed now the "bad magic number" at the end. Could it be something went bad on updating the python version on system upgrade?

srey@computer:~$ calibre
Traceback (most recent call last):
  File "/usr/bin/calibre", line 18, in <module>
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/main.py", line 19, in <module>
    from calibre.library.database2 import LibraryDatabase2
  File "/usr/lib/calibre/calibre/library/database2.py", line 22, in <module>
    from calibre.library.caches import ResultCache
  File "/usr/lib/calibre/calibre/library/caches.py", line 16, in <module>
    from calibre.utils.search_query_parser import SearchQueryParser
  File "/usr/lib/calibre/calibre/utils/search_query_parser.py", line 21, in <module>
    from pyparsing import CaselessKeyword, Group, Forward, \
ImportError: Bad magic number in /usr/lib/calibre/calibre/utils/pyparsing.pyc
Error in sys.excepthook:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/apport_python_hook.py", line 94, in apport_excepthook
    if pr.check_ignored():
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 763, in check_ignored
    dom = self._get_ignore_dom()
  File "/usr/lib/python2.7/dist-packages/apport/report.py", line 724, in _get_ignore_dom
    dom = xml.dom.getDOMImplementation().createDocument(None, 'apport', None)
  File "/usr/lib/python2.7/dist-packages/cssutils/__init__.py", line 160, in createDocument
    raise NotImplementedError
NotImplementedError

Original exception was:
Traceback (most recent call last):
  File "/usr/bin/calibre", line 18, in <module>
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/main.py", line 19, in <module>
    from calibre.library.database2 import LibraryDatabase2
  File "/usr/lib/calibre/calibre/library/database2.py", line 22, in <module>
    from calibre.library.caches import ResultCache
  File "/usr/lib/calibre/calibre/library/caches.py", line 16, in <module>
    from calibre.utils.search_query_parser import SearchQueryParser
  File "/usr/lib/calibre/calibre/utils/search_query_parser.py", line 21, in <module>
    from pyparsing import CaselessKeyword, Group, Forward, \
ImportError: Bad magic number in /usr/lib/calibre/calibre/utils/pyparsing.pyc

windracer (windracer) wrote :

I'm seeing a similar 'magic number' error when trying to start Calibre after the upgrade from Maverick to Natty:

Traceback (most recent call last):
  File "/usr/bin/calibre-server", line 18, in <module>
    from calibre.library.server.main import main
  File "/usr/lib/calibre/calibre/library/server/main.py", line 12, in <module>
    from calibre.library.server.base import LibraryServer
  File "/usr/lib/calibre/calibre/library/server/base.py", line 21, in <module>
    from calibre.library.server.content import ContentServer
  File "/usr/lib/calibre/calibre/library/server/content.py", line 14, in <module>
    from calibre.library.caches import SortKeyGenerator
  File "/usr/lib/calibre/calibre/library/caches.py", line 16, in <module>
    from calibre.utils.search_query_parser import SearchQueryParser
  File "/usr/lib/calibre/calibre/utils/search_query_parser.py", line 21, in <module>
    from pyparsing import CaselessKeyword, Group, Forward, \
ImportError: Bad magic number in /usr/lib/calibre/calibre/utils/pyparsing.pyc

S.Rey (s.rey) wrote :

Hi,

@windracer
If your problem is the same as mine, It seems to be caused by the upgrade. At least in my case, after a fresh install of natty final, calibre works as expected.

Anyway, it seems to be completely unrelated to this bug report, so if you can't afford a fresh installation, you might want to open a new bug.

windracer (windracer) wrote :

Ugh, I'd rather not have to do a fresh install of Natty. I'll keep digging ...

windracer (windracer) wrote :

Hey hey! Removing calibre and re-installing it fixed the problem, no need to re-install Natty. Phew!

Bob Blanchett (bobblanchett) wrote :

same problem after upgrade to natty:
still get the error after remove/install of calibre via apt
==
bob@grytpype:~$ calibre
Traceback (most recent call last):
  File "/usr/bin/calibre", line 18, in <module>
    from calibre.gui2.main import main
  File "/usr/lib/calibre/calibre/gui2/main.py", line 19, in <module>
    from calibre.library.database2 import LibraryDatabase2
  File "/usr/lib/calibre/calibre/library/database2.py", line 22, in <module>
    from calibre.library.caches import ResultCache
  File "/usr/lib/calibre/calibre/library/caches.py", line 16, in <module>
    from calibre.utils.search_query_parser import SearchQueryParser
  File "/usr/lib/calibre/calibre/utils/search_query_parser.py", line 21, in <module>
    from pyparsing import CaselessKeyword, Group, Forward, \
ImportError: Bad magic number in /usr/lib/calibre/calibre/utils/pyparsing.pyc
bob@grytpype:~$ sudo apt-cache policy calibre
calibre:
  Installed: 0.7.44+dfsg-1build1
  Candidate: 0.7.44+dfsg-1build1
  Version table:
 *** 0.7.44+dfsg-1build1 0
        500 http://ftp.iinet.net.au/pub/ubuntu/ natty/universe amd64 Packages
        100 /var/lib/dpkg/status
bob@grytpype:~$ sudo apt-cache policy python-sip
python-sip:
  Installed: 4.12.1-1
  Candidate: 4.12.1-1
  Version table:
 *** 4.12.1-1 0
        500 http://ftp.iinet.net.au/pub/ubuntu/ natty/main amd64 Packages
        100 /var/lib/dpkg/status
bob@grytpype:~$

LinkedIn
------------

Bug,

Sizi LinkedIn'deki profesyonel profilime eklemek istiyorum.

- Sinan

Sinan Aykut
Şu okulda öğrenci: Afyon Kocatepe Üniversitesi
Türkiye

Sinan Aykut adlı kişiyi tanıdığınızı onaylayın
https://www.linkedin.com/e/-i1qh68-gqm80equ-6q/isd/3670125293/ZJya_bLV/

--
(c) 2011, LinkedIn Corporation

Jason (themacster) wrote :

I am running 11.10 on an amd x4 processor with ati fglrx graphics driver.
Calibre was running fine on natty 11.04, but since upgrading to 11.10, calibre fails to start and kills compiz-decorator at the same time.
After uninstalling & reinstalling, calibre ran at first launch, but now fails with the original fault.

I do not provide support for people using distro provided packages. If you are using a distro provided package, uninstall it and install the official calibre binary from http://calibre-ebook.com/download_linux and if you can reproduce the bug with that, re-open the ticket. Of course, if you are already using the official binary, apologies and feel free to re-open the ticket immediately :)

 status invalid

Changed in calibre:
status: New → Invalid
Fabrice Coutadeur (fabricesp) wrote :

@Jason: this is a known issue in Oneiric, that is not linked to the issue described here.
Please check bug 805303

thanks,
Fabrice

Horst Seeger (horstseeger) wrote :
Download full text (27.3 KiB)

This is the output if I start calibre. It stays caught in an endless loop:
horst@horst-desktop:~$ calibre
Connected to accessibility bus at: "unix:abstract=/tmp/dbus-dR97FQSB6N,guid=d97ccde511c9273562c0a4ef00006b40"
Registered DEC: true
Invalid parent: 0xb0c6f48 Application(0xaff6308, name = "calibre")
Creating accessible with different object than the original interface!
show QSplashScreen(0xb0c0a50)
Creating accessible with different object than the original interface!
Requesting child objects for an interface that is a virtual child itself.
Requesting child objects for an interface that is a virtual child itself.
Requesting child objects for an interface that is a virtual child itself.
Requesting child objects for an interface that is a virtual child itself.
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Requesting child objects for an interface that is a virtual child itself.
Requesting child objects for an interface that is a virtual child itself.
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with different object than the original interface!
Creating accessible with differen...

Fabrice Coutadeur (fabricesp) wrote :

Hi,

@Horst Seeger: your bug is totally different (and I'm not able to reproduce it anyway). Could you please open a separate bug report? Thanks,

Fabrice

Launchpad Janitor (janitor) wrote :

[Expired for calibre (Ubuntu) because there has been no activity for 60 days.]

Changed in calibre (Ubuntu):
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers