Separating the two issues and answering the easy one first...
Quote:
Originally Posted by wold
I did get one error messages, but since it posed no problem, I judging it to be specific to that readers and ignored it:
A) Involving _Marvin.py:
Code:
File "/usr/lib/calibre/calibre/gui2/ui.py", line 236, in initialize
ac.do_genesis()
File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 147, in do_genesis
self.genesis()
File "calibre_plugins.annotations.action", line 457, in genesis
File "calibre_plugins.annotations.action", line 872, in load_dynamic_reader_classes
File "/usr/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/calibre_annotations_plugin/_Marvin.py", line 15, in <module>
from calibre.ebooks.BeautifulSoup import UnicodeDammit
ImportError: cannot import name 'UnicodeDammit' from 'calibre.ebooks.BeautifulSoup' (/usr/lib/calibre/calibre/ebooks/BeautifulSoup.py)
Removing _Marvin.py made syncing work. But placing it back, with the same error, did not break fetching...
B) Removing _Marvin.py did reveal another 'masked' error in _iBooks.py:
Code:
Traceback (most recent call last):
File "/usr/lib/calibre/calibre/gui2/ui.py", line 236, in initialize
ac.do_genesis()
File "/usr/lib/calibre/calibre/gui2/actions/__init__.py", line 147, in do_genesis
self.genesis()
File "calibre_plugins.annotations.action", line 457, in genesis
File "calibre_plugins.annotations.action", line 872, in load_dynamic_reader_classes
File "/usr/lib/python3.8/imp.py", line 171, in load_source
module = _load(spec)
File "<frozen importlib._bootstrap>", line 702, in _load
File "<frozen importlib._bootstrap>", line 671, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 783, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/tmp/calibre_annotations_plugin/_iBooks.py", line 11, in <module>
import cStringIO, os, re, sqlite3
ModuleNotFoundError: No module named 'cStringIO'
This is a Python3 error:
https://stackoverflow.com/questions/...amed-cstringio
|
I assume the above is with your build of the plugin. The official build doesn't include the reader plugins whose name starts with an underscore. Those plugins do not work because of issues with iOS. They have not worked for a long time and are just around in case someone was looking for sample code.
But, for safety, I will add a check in the reader loading code to exclude them here as well.