View Single Post
Old 06-01-2022, 05:49 PM   #147
hamedi
Junior Member
hamedi began at the beginning.
 
Posts: 5
Karma: 10
Join Date: Jun 2022
Device: PW7
kindlegen plugin error

Hi!
- macOS 10.15.7
- Sigil 1.9.10 installed in "Applications" folder
- no Kindle Previewer installed
- path to kindlegen executable "/Users/XXX/Library/Application Support/sigil-ebook/sigil/"
- Doitsu's kindlegen plugin 0.6.6 (checked "Use Bundle Python")

Run kindlegen plugin shows error

Code:
Traceback (most recent call last):
  File "/Applications/Sigil.app/Contents/plugin_launchers/python/launcher.py", line 142, in launch
    self.exitcode = target_script.run(container)
  File "/Users/XXX/Library/Application Support/sigil-ebook/sigil/plugins/KindleGenQt/plugin.py", line 644, in run
    kg_path, calibre_debug_path = findKindleGen(bk)
  File "/Users/XXX/Library/Application Support/sigil-ebook/sigil/plugins/KindleGenQt/plugin.py", line 239, in findKindleGen
    kg_path = which_osx_path
UnboundLocalError: local variable 'which_osx_path' referenced before assignment
Error: local variable 'which_osx_path' referenced before assignment
And "OK" button...
Doitsu's kindlegen plugin 0.5.5 works fine.

How to fix this error? Many thanks for answers!
hamedi is offline   Reply With Quote