View Single Post
Old 04-29-2014, 12:53 AM   #1
Ahmad Samir
Zealot
Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!Ahmad Samir , Klaatu Barada Niktu!
 
Posts: 114
Karma: 5246
Join Date: Jul 2010
Device: none
ebook-edit fails to merge css files

Hello. I was trying to merge some css files in an EPUB, but the operation failed, the backtrace follows:
Code:
Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/gui2/tweak_book/boss.py", line 67, in ans
    return func(*args, **kwargs)
  File "/usr/lib64/calibre/calibre/gui2/tweak_book/boss.py", line 951, in merge_requested
    merge(current_container(), category, names, master)
  File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/split.py", line 459, in merge
    merge_css(container, names, master)
  File "/usr/lib64/calibre/calibre/ebooks/oeb/polish/split.py", line 421, in merge_css
    [sheet.remove(r) for r in cr]
AttributeError: 'CSSStyleSheet' object has no attribute 'remove'
The same issue happens when using ebook-edit from the calibre-1.34 binary tarball.
Ahmad Samir is offline   Reply With Quote