08-01-2023, 07:44 PM | #61 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2023
Device: kindle
|
error last update
Hello!! Since the last update it has been giving me an error when I try to translate, unfortunately I can't identify what is happening, and I always have to close or restart the program.
calibre, version 5.44.0 ERRO: Exceção sem tratamento: <b>TypeError</b>:int() argument must be a string, a bytes-like object or a number, not 'NoneType' calibre 5.44 [64bit] embedded-python: True is64bit: True Windows-8.1-6.3.9600 Windows ('64bit', 'WindowsPE') ('Windows', '8.1', '6.3.9600') Python 3.8.5 Windows: ('8.1', '6.3.9600', '', 'Multiprocessor Free') Interface language: pt_BR Successfully initialized third party plugins: ACE (1, 1, 6) && Amazon.com Multiple Countries (1, 0, 0) && Count Pages (1, 13, 0) && Ebook Translator (2, 1, 1) && Extract ISBN (1, 6, 0) && Hyphenate This! (0, 1, 3) && Kindle hi-res covers (0, 5, 0) && Language Cleaner (2023, 7, 8) && LanguageTool (0, 1, 2) && Quality Check (1, 13, 4) && Search The Internet (1, 10, 1) Traceback (most recent call last): File "calibre_plugins.ebook_translator.ui", line 131, in show_cache File "calibre_plugins.ebook_translator.cache", line 37, in __init__ File "calibre_plugins.ebook_translator.cache", line 104, in table_widget File "calibre_plugins.ebook_translator.cache", line 201, in __init__ File "calibre_plugins.ebook_translator.cache", line 206, in wrapper File "calibre_plugins.ebook_translator.cache", line 228, in refresh File "calibre_plugins.ebook_translator.lib.cache", line 120, in get_list TypeError: int() argument must be a string, a bytes-like object or a number, not 'NoneType' |
08-02-2023, 05:15 AM | #62 |
Enthusiast
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
|
@degevic
This error was solved in latest version v2.1.2. Please update to use. |
Advert | |
|
08-02-2023, 10:15 AM | #63 |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2023
Device: kindle
|
error continue
|
08-02-2023, 09:54 PM | #64 |
Enthusiast
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
|
Do you mean the same error happens more frequently after the update?
If it is different error, please give me the new error message. BTW, you can roll back to the previous version v2.1.1 by downloading the zip file and install via "Load from file" if you want. |
08-03-2023, 02:40 PM | #65 | |
Junior Member
Posts: 3
Karma: 10
Join Date: Jul 2023
Device: kindle
|
the same error as always,
Quote:
|
|
Advert | |
|
08-21-2023, 07:56 AM | #66 |
Member
Posts: 20
Karma: 10
Join Date: Nov 2022
Device: none
|
Hello!! Thank you for this super amazing plugin!!! It works really well on txt and docx files so far! But I've tried this plugin on multiple of my epubs and mobi files, but it failed to process and translate any of them...
I generate my epubs using two different programs: The Chrome Extension "WebToEpub" --> https://chrome.google.com/webstore/d...mnifcnibaigelm And the program called "Novelgrabber" --> https://github.com/Flameish/Novel-Grabber It is perhaps possible to add support to your plugin for epubs/mobi files that are generated from these two specific programs that I've listed? Again, thank you very very much for all your time and effort!! |
08-31-2023, 08:50 AM | #67 | |
Enthusiast
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
|
Quote:
|
|
09-03-2023, 10:09 AM | #68 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Windows 10, 64bit.
I chose the batch mode to translate a whole book, input and output format: .docx. translation engine: ChatGPT. The plugin ran about three quarters of an hour, and at first, everything seemed to be o. k. Unluckily, at last I received this error message: Code:
[Auto detect > German] Translating "Los renglones torcidos de Dios" InputFormatPlugin: DOCX Input running on C:\Users\Juerg\Dropbox\Public\Calibre\Torcuato Luca de Tena\Los renglones torcidos de Dios (1284)\Los renglones torcidos de Dios - Torcuato Luca de Tena.docx Parsing all content... Generating default TOC from spine... Merging user specified metadata... Detecting structure... Auto generated TOC with 0 entries. Flattening CSS and remapping font sizes... Source base font size is 16.00000pt Removing fake margins... Cleaning up manifest... Trimming unused files from manifest... Creating DOCX Output... Translating ebook content ... (this will take a while) ============================== | Diagnosis Information ============================== | Calibre Version: 6.25.0 | Plugin Version: v2.1.3 | Translate Engine: ChatGPT | Source Language: Auto detect | Target Language: German | Cache Enabled: True | Merging Length: 0 | Concurrent requests: 1 | Request Interval: 20 | Request Attempt: 3 | Request Timeout: 10.0 | Input Path: C:\Users\Juerg\Dropbox\Public\Calibre\Torcuato Luca de Tena\Los renglones torcidos de Dios (1284)\Los renglones torcidos de Dios - Torcuato Luca de Tena.docx | Output Path: C:\Users\Juerg\AppData\Local\Temp\calibre_be05ew_h\41ur6l8m.docx 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 83, in <module> File "site.py", line 78, in main File "site.py", line 50, in run_entry_point 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.lib.conversion", line 108, in convert_book File "calibre\ebooks\conversion\plumber.py", line 1281, in run File "calibre_plugins.ebook_translator.lib.conversion", line 99, in convert File "calibre_plugins.ebook_translator.lib.translation", line 247, in handle Exception: Translation failed. Nevertheless, a great plugin, thanks a lot for it! |
09-04-2023, 12:19 AM | #69 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2011
Device: Kindle
|
TypeError: Argument must be bytes or unicode, got 'NoneType'
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 82, in <module> File "site.py", line 77, in main File "site.py", line 49, in run_entry_point 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.lib.conversi on", line 108, in convert_book File "calibre\ebooks\conversion\plumber.py", line 1281, in run File "calibre_plugins.ebook_translator.lib.conversi on", line 100, in convert File "calibre_plugins.ebook_translator.lib.element" , line 298, in add_translations File "calibre_plugins.ebook_translator.lib.element" , line 109, in add_translation File "src/lxml/etree.pyx", line 833, in lxml.etree._Element.set File "src/lxml/apihelpers.pxi", line 594, in lxml.etree._setAttributeValue File "src/lxml/apihelpers.pxi", line 1539, in lxml.etree._utf8 TypeError: Argument must be bytes or unicode, got 'NoneType' The Version I used are 2.1.2 and 2.1.3. Both got the error message. When I translate book from Simplified Chinese to Traditional Chinese, If I keep the original text in the book, I can generate a complete epub. When I just output the traditional Chinese translation, the above error message will appear. How to solve this problem? Best Regards, Last edited by mimicxz; 09-04-2023 at 03:35 AM. |
09-05-2023, 11:05 AM | #70 | |
Member
Posts: 20
Karma: 10
Join Date: Nov 2022
Device: none
|
Quote:
Code:
----------------------------------- Error: Failed to retrieve data from translate engine API. Can not parse returned response. Raw data: Traceback (most recent call last): File "calibre_plugins.ebook_translator.engines.base", line 171, in get_result File "mechanize\_mechanize.py", line 257, in open File "mechanize\_mechanize.py", line 313, in _mech_open mechanize._response.get_seek_wrapper_class.<locals>.httperror_seek_wrapper: HTTP Error 400: Bad Request ============================== 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 83, in <module> File "site.py", line 78, in main File "site.py", line 50, in run_entry_point 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.lib.conversion", line 108, in convert_book File "calibre\ebooks\conversion\plumber.py", line 1281, in run File "calibre_plugins.ebook_translator.lib.conversion", line 99, in convert File "calibre_plugins.ebook_translator.lib.translation", line 246, in handle Exception: Translation failed. |
|
09-05-2023, 01:10 PM | #71 |
Enthusiast
Posts: 47
Karma: 220512
Join Date: Jul 2016
Device: PW2
|
@Leonatus @mimicxz @vanessabluellie
Thanks for all your feedback. We've tried to fix the errors based on the information you provided. Please download the updated version for testing, and feel free to provide further feedback. Last edited by kindlefere; 09-09-2023 at 01:45 PM. |
09-05-2023, 10:37 PM | #72 |
Member
Posts: 13
Karma: 10
Join Date: Nov 2011
Device: Kindle
|
|
09-06-2023, 03:46 AM | #73 |
Wizard
Posts: 1,035
Karma: 11227259
Join Date: Mar 2013
Location: Guben, Brandenburg, Germany
Device: Kobo Clara 2E, Tolino Shine 3
|
Confirm! Great! Thank you so much!
Nevertheless: In case of failure, would there be a chance to save the text translated until the point the failure happens? |
09-06-2023, 07:04 AM | #74 |
want to learn what I want
Posts: 1,269
Karma: 6433040
Join Date: Sep 2020
Device: Calibre E-book viewer
|
Spoiler:
Hi, Sometimes I wish I could use Deepl (free), as I don't have an API key. But it gives me the error above. Is that fixable? Also, I guess this is by design, but I'd prefer if the Settings dialog could remember its last vertical size. The default height keeps resetting itself to 545px, though a min-height of 655px would be more comfortable IMO, as that's enough for displaying the new Manage cache option, see: Last edited by Comfy.n; 09-06-2023 at 08:11 AM. |
09-06-2023, 08:44 AM | #75 |
Member
Posts: 20
Karma: 10
Join Date: Nov 2022
Device: none
|
Thank you so much for your fast reply and all your hard work! The error has been fixed and all epubs from both programs now work perfectly in your plugin!!!! Super amazing, thank you again!!! <3
|
Tags |
calibre, translate |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[GUI Plugin] Noosfere_util, a companion plugin to noosfere DB | lrpirlet | Plugins | 2 | 08-18-2022 04:15 PM |
[GUI Plugin] Save Virtual Libraries To Column (GUI) | chaley | Plugins | 14 | 04-04-2021 06:25 AM |
ebook-convert.exe doesn't work with deDRM plugin, unlike GUI or calibredb.exe | fireattack | Conversion | 8 | 09-26-2020 08:14 PM |
[GUI Plugin] Plugin Updater **Deprecated** | kiwidude | Plugins | 159 | 06-19-2011 01:27 PM |