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

[Bug report] UnboundLocalError: cannot access local variable 'metadata' where it is not associated with a value #233

Closed
thorsby-1 opened this issue Mar 15, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@thorsby-1
Copy link

Can't save the output after successful translation:

Basic informationcalibre, version 7.7.0

calibre 7.7 embedded-python: True
Windows-10-10.0.19045-SP0 Windows ('64bit', 'WindowsPE')
('Windows', '10', '10.0.19045')
Python 3.11.5
Windows: ('10', '10.0.19045', 'SP0', 'Multiprocessor Free')
Interface language: de
EXE path: C:\Program Files\Calibre2\calibre.exe
Successfully initialized third party plugins: DeDRM (7, 2, 1) && Ebook Translator (2, 3, 1)
Traceback (most recent call last):
File "calibre\gui2_init_.py", line 756, in dispatch
File "calibre_plugins.ebook_translator.lib.conversion", line 269, in translate_done
UnboundLocalError: cannot access local variable 'metadata' where it is not associated with a value

@bookfere bookfere added the bug Something isn't working label Mar 15, 2024
bookfere added a commit that referenced this issue Mar 15, 2024
1. Fixed the bug preventing output when file lacks metadata. fixed #234, #233
2. Fixed the bug in processing srt/pgn formats in lower versions of Calibre.
bookfere added a commit that referenced this issue Mar 15, 2024
1. Fixed the bug preventing output when file lacks metadata. fixed #234, #233
2. Fixed the bug in processing srt/pgn formats in lower versions of Calibre.
3. Fixed the bug causing disorderly translation when translating ebooks partially.
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