LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 12-22-2013, 04:36 AM   #1
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Rep: Reputation: 139Reputation: 139
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
 
Old 12-22-2013, 05:02 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,417
Blog Entries: 55

Rep: Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627Reputation: 3627
Quote:
Originally Posted by samac View Post
Code:
from colors import COLORS
 ImportError: No module named colors
Can't you just first check if that Python module is installed or not?
 
Old 12-22-2013, 05:19 AM   #3
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Original Poster
Rep: Reputation: 139Reputation: 139
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
 
Old 12-22-2013, 05:54 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 8,559

Rep: Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120Reputation: 8120
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.
Old 12-22-2013, 06:15 AM   #5
samac
Senior Member
 
Registered: Mar 2004
Location: Kirkwall, Orkney
Distribution: Linux Mint 20.3 - Cinnamon
Posts: 1,425

Original Poster
Rep: Reputation: 139Reputation: 139
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Calibre 1.16 Greatly Improves the EPUB and AZW3 Book Editing Function LXer Syndicated Linux News 0 12-20-2013 04:42 PM
LXer: Calibre 1.15 eBook Manager Now Features a Native and Complete Book Editor LXer Syndicated Linux News 0 12-13-2013 12:01 PM
LXer: Search and Read Books from Calibre's Library in Ubuntu 13.10 with Unity Calibre Scope LXer Syndicated Linux News 0 11-22-2013 08:12 PM
LXer: Calibre - Really Good E-Book Management Tool for Linux LXer Syndicated Linux News 0 03-17-2011 05:20 PM
LXer: Calibre 0.6: Zusätzliche E-Book-Formate LXer Syndicated Linux News 0 07-28-2009 03:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration