Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-22-2013, 04:36 AM
|
#1
|
Senior Member
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425
Rep: 
|
Unable to edit book in Calibre 1.16.0
I am using Calibre 1.16.0 packaged by Alien Bob. When trying a new feature to edit e-books I gat the following error message.
Quote:
calibre 1.16 isfrozen: False is64bit: True
Linux-3.10.17-x86_64-Intel-R-_Core-TM-_i5-3550_CPU_@_3.30GHz-with-slackware-14.1 Linux ('64bit', 'ELF')
('Linux', '3.10.17', '#1 SMP Wed Oct 23 16:28:33 CDT 2013')
Python 2.7.5
Linux: ('Slackware ', '14.1', '')
Traceback (most recent call last):
File "/usr/lib64/calibre/calibre/gui2/actions/tweak_epub.py", line 97, in tweak_book
self.do_tweak(book_id)
File "/usr/lib64/calibre/calibre/gui2/actions/tweak_epub.py", line 100, in do_tweak
from calibre.ebooks.oeb.polish.main import SUPPORTED
File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/main.py", line 14, in <module>
from calibre.ebooks.oeb.polish.container import get_container
File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/container.py", line 17, in <module>
from cssutils import replaceUrls, getUrls
File "/usr/lib64/python2.7/site-packages/cssutils/__init__.py", line 115, in <module>
import css
File "/usr/lib64/python2.7/site-packages/cssutils/css/__init__.py", line 60, in <module>
from cssstylesheet import *
File "/usr/lib64/python2.7/site-packages/cssutils/css/cssstylesheet.py", line 17, in <module>
from cssvariablesdeclaration import CSSVariablesDeclaration
File "/usr/lib64/python2.7/site-packages/cssutils/css/cssvariablesdeclaration.py", line 10, in <module>
from value import PropertyValue
File "/usr/lib64/python2.7/site-packages/cssutils/css/value.py", line 283, in <module>
class ColorValue(Value):
File "/usr/lib64/python2.7/site-packages/cssutils/css/value.py", line 289, in ColorValue
from colors import COLORS
ImportError: No module named colors
|
Is anyone else seeing this, or have any suggestions on how to fix it.
samac
|
|
|
12-22-2013, 05:02 AM
|
#2
|
Moderator
Registered: May 2001
Posts: 29,417
|
Quote:
Originally Posted by samac
Code:
from colors import COLORS
ImportError: No module named colors
|
Can't you just first check if that Python module is installed or not?
|
|
|
12-22-2013, 05:19 AM
|
#3
|
Senior Member
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425
Original Poster
Rep: 
|
About the first thing I checked
Quote:
bash-4.2# slocate colors.py
/usr/lib64/calibre/calibre/ebooks/rtf2xml/colors.py
|
As you can see I have a version in the calibre directory but not in the python2.7 directory that is being searched, I suppose that I could symlink, but that is only hiding the problem not fixing it.
samac
|
|
|
12-22-2013, 05:54 AM
|
#4
|
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559
|
Works fine here samac: Slackware64 -current with my calibre-1.16.0 package.
The package was built in a fresh Slackware 14.1 Virtual Machine and works flawlessly on this desktop. I can edit a book from within Calibre, and I can also start "ebook-edit" from the commandline and load a book to edit.
Do you have version 0.9.9 of the python-cssutils installed? Older versions will not work.
Eric
|
|
1 members found this post helpful.
|
12-22-2013, 06:15 AM
|
#5
|
Senior Member
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425
Original Poster
Rep: 
|
Brilliant python-cssutils-0.9.9-x86_64-1alien was installed, but I reinstalled it and the problem is now fixed.
Thank you, marking as solved.
samac
|
|
|
All times are GMT -5. The time now is 10:13 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|