View Single Post
Old 09-14-2019, 02:08 PM   #1
hyegeek
Groupie
hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.hyegeek ought to be getting tired of karma fortunes by now.
 
Posts: 171
Karma: 258122
Join Date: Dec 2007
Device: Ez Reader (hanlin v3)
A recent DRM free purchase from Amazon is not working on the Linux version

Kind of a long title, but it covers what is going wrong.

Trying to load either the azw file (from XP version of kindle) or the mobi file (from Win7 Version of kindle) both get a traceback when tyring to load them on the Linux version of calibre.

I can load (at least the mobi version) into the windows version of calibre without errors. I then converted it to an epub. Still no errors. I took that epub and tried to load it in the linux version and once again a trace back.

Both windows and linux are running version 3.48 of calibre.

Here's the traceback

Code:
calibre 3.48  embedded-python: False is64bit: True
Linux-4.19.71-gentoo.zfs-x86_64-Intel-R-_Core-TM-_i7-4790_CPU_@_3.60GHz-with-gentoo-2.6 Linux ('64bit', 'ELF')
('Linux', '4.19.71-gentoo.zfs', '#1 SMP PREEMPT Sun Sep 8 05:11:07 PDT 2019')
Python 2.7.15
Linux: ('Gentoo Base System', '2.6', '')
Interface language: None
Successfully initialized third party plugins: Find Duplicates (1, 6, 3)
Traceback (most recent call last):
  File "/usr/lib64/calibre/calibre/gui2/viewer/main.py", line 1025, in load_ebook
    self.metadata.show_metadata(self.iterator.mi, self.iterator.book_format)
  File "/usr/lib64/calibre/calibre/gui2/viewer/ui.py", line 102, in show_metadata
    html = render_html(mi, css(), True, self, render_data_func=render_data)
  File "/usr/lib64/calibre/calibre/gui2/book_details.py", line 113, in render_html
    use_roman_numbers=config['use_roman_numerals_for_series_number'])
  File "/usr/lib64/calibre/calibre/gui2/viewer/ui.py", line 99, in render_data
    default_author_link=default_author_link()
  File "/usr/lib64/calibre/calibre/ebooks/metadata/book/render.py", line 128, in mi_to_html
    val = comments_to_html(val)
  File "/usr/lib64/calibre/calibre/library/comments.py", line 103, in comments_to_html
    pTag = result.new_tag('p')
TypeError: 'NoneType' object is not callable
Any ideas?
hyegeek is offline   Reply With Quote