View Single Post
Old Today, 06:32 AM   #252
Morozko
Junior Member
Morozko began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Mar 2020
Device: Kindle PW3
When I try to run this plugin in the Ebook Editor, it shows an error message, and doesn't run:

Code:
NameError: name 'self' is not defined
Expanding the error shows me

Code:
Traceback (most recent call last):
  File "calibre_plugins.epub_check.main", line 166, in parse_epubcheck_json
    data = json.loads(json_output)
  File "/usr/lib/python3.14/json/__init__.py", line 352, in loads
    return _default_decoder.decode(s)
           ~~~~~~~~~~~~~~~~~~~~~~~^^^
  File "/usr/lib/python3.14/json/decoder.py", line 345, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
               ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.14/json/decoder.py", line 363, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "calibre_plugins.epub_check.main", line 923, in ask_user
    info = parse_epubcheck_json(stdout)
  File "calibre_plugins.epub_check.main", line 169, in parse_epubcheck_json
    self.gui,
    ^^^^
NameError: name 'self' is not defined
This is with Calibre 9.18, and EpubCheck plugin 0.3.1

My guess is it might have something to do with the prompt that pops up asking to update EpubCheck, which I just haven't selected "Yes" to for a while, and it not popping up now, but thinking that it did?
Morozko is offline   Reply With Quote