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

Re: calibre / python: ImportError: No module named cssutils



Hallo Sebastian,

Sebastian Niehaus schrieb am Donnerstag, den 24.03.2011 um 07:27:
> ich habe ein Problem mit calibre: es startet nicht:
> 
> | niehaus@ceramic:~$ 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/__init__.py", line 50, in <module>
> |     import cssutils
> | ImportError: No module named cssutils
> | niehaus@ceramic:~$
> 
> 
> an den cssutils kann es eigentlich auch nicht mangeln, die sind installiert
> 
> | niehaus@ceramic:~$ apt-cache search  cssutils
> | python-cssutils-doc - CSS Cascading Style Sheets parser and builder -
> | API documentation
> | python-cssutils - CSS Cascading Style Sheets parser and builder
> | niehaus@ceramic:~$ apt-cache policy python-cssutils
> | python-cssutils:
> |   Installiert: 0.9.7~b2-2
> |   Kandidat:    0.9.7~b2-2
> |   Versionstabelle:
> |  *** 0.9.7~b2-2 0
> |         500 http://ftp.freenet.de/debian/ squeeze/main amd64 Packages
> |         100 /var/lib/dpkg/status
> | niehaus@ceramic:~$
> 
> Hat jemand eine Idee, was ich hier kaputt gemacht habe?

Das geht aus der Fehlermeldung nicht genau hervor:  Um die Sache näher
zu untersuchen, muß zunächst festgestellt werden, welche Python-Version
auf dem System voreingestellt ist.  Dazu kann der Python-Interpreter
mit dem Kommando "python" einfach so aufgerufen werden und meldet sich 
dann z.B. so:

 | Python 2.6.5 (r265:79063, Apr 16 2010, 13:57:41) [GCC 4.4.3] on linux2
 | Type "help", "copyright", "credits" or "license" for more information.
 | >>> 

oder so:

 | Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14) [GCC 4.3.2] on linux2
 | Type "help", "copyright", "credits" or "license" for more information.
 | >>> 

oder so ähnlich.

An dem Prompt dann einfach mal "import cssutils" eintippen und schauen,
ob dann der Fehler ebenfalls auftritt.  Ich habe hier gerade leider nur 
einen Notebook mit Ubuntu 10.04 LTS zum Testen und dort funktioniert 
calibre mit cssutils-0.9.6 .  Deshalb kann ich zu squeeze im Moment nicht
konkret testen und ausprobieren, ob das eventuell ein systematisches
Problem ist.

Mit freundlichen Grüßen,
Peter Funk
-- 
Peter Funk, home: ✉Oldenburger Str.86, D-27777 Ganderkesee
mobile:+49-179-640-8878 phone:+49-421-20419-0 <http://www.artcom-gmbh.de/>
office: ArtCom GmbH, ✉Haferwende 2, D-28357 Bremen, Germany


Reply to: