Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error: bad escape \H at position 74 #40

Closed
chenweil opened this issue May 12, 2023 · 2 comments
Closed

error: bad escape \H at position 74 #40

chenweil opened this issue May 12, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@chenweil
Copy link

chenweil commented May 12, 2023

I use a plugin to translate a book:Laravel: Up & Running

  • calibre:6.17.0
  • Plugin: v1.3.7

Traceback (most recent call last):
  File "sre_parse.py", line 1039, in parse_template
KeyError: '\\H'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "runpy.py", line 196, in _run_module_as_main
  File "runpy.py", line 86, in _run_code
  File "site.py", line 41, in <module>
  File "site.py", line 37, in main
  File "calibre/utils/ipc/worker.py", line 215, in main
  File "calibre/utils/ipc/worker.py", line 150, in arbitrary_n
  File "calibre_plugins.ebook_translator.convertion", line 123, in convert_book
  File "calibre/ebooks/conversion/plumber.py", line 1281, in run
  File "calibre_plugins.ebook_translator.convertion", line 119, in convert
  File "calibre_plugins.ebook_translator.translation", line 140, in handle
  File "calibre_plugins.ebook_translator.element", line 119, in apply_translation
  File "calibre_plugins.ebook_translator.element", line 51, in add_translation
  File "re.py", line 209, in sub
  File "re.py", line 326, in _subx
  File "re.py", line 317, in _compile_repl
  File "sre_parse.py", line 1042, in parse_template
re.error: bad escape \H at position 74

log:job.log

@bookfere bookfere added the bug Something isn't working label May 12, 2023
@bookfere
Copy link
Owner

bookfere commented May 12, 2023

The bug has been fixed. Please try the latest version, v1.3.8.

@chenweil
Copy link
Author

The bug has been fixed. Please try the latest version, v1.3.8.

__I tested it and the problem is solved in the new version. Thanks。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants