View Single Post
Old 04-25-2022, 01:58 PM   #1641
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,476
Karma: 8025702
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by KingSlav View Post
Novice Question: Updated to the latest Modify ePub (version 1.7.2) using calibre 4.23 (64 bit) and now get a syntax error message when using Modify ePub.
calibre, version 4.23.0 (win32, embedded-python: True)
Failed to modify ePubs: Failed: Modify ePubs version (1, 7, 2)

Modify ePubs version (1, 7, 2)
Python function terminated unexpectedly
invalid syntax (calibre_plugins.modify_epub.container, line 932) (Error Code: 1)
Traceback (most recent call last):
File "site.py", line 114, in main
File "site.py", line 88, in run_entry_point
File "site-packages\calibre\utils\ipc\worker.py", line 209, in main
File "site-packages\calibre\utils\ipc\worker.py", line 143, in arbitrary_n
File "importlib\__init__.py", line 37, in import_module
File "site-packages\calibre\customize\zipplugin.py", line 185, in load_module
File "calibre_plugins.modify_epub.jobs", line 14, in <module>
File "site-packages\calibre\customize\zipplugin.py", line 185, in load_module
File "calibre_plugins.modify_epub.modify", line 23, in <module>
File "site-packages\calibre\customize\zipplugin.py", line 181, in load_module
File "calibre_plugins.modify_epub.container", line 932
self.log(f'\tncx name: {self.ncx_name}')
^
SyntaxError: invalid syntax
Any suggestions?
My oops. I left some python 5 (calibre 5) code in the plugin. The file in the first post has been updated. You can get it there or wait for calibre to tell you it is available.
chaley is offline   Reply With Quote