yihong0618 / bilingual_book_maker

Make bilingual epub books Using AI translate
MIT License
7.33k stars 1.05k forks source link

Issue with most basic option translation on newer releases #404

Closed svrnhdl closed 4 months ago

svrnhdl commented 4 months ago

I just set up this repo on a new machine, and I can't get the most basic example to work with anything other than v0.7.0.

python3 make_book.py --book_name test_books/animal_farm.epub --openai_key $key --test --language nl

/home/thibaut/repos/bilingual_book_maker/venv/lib/python3.11/site-packages/ebooklib/epub.py:1423: FutureWarning: This search incorrectly ignores the root element, and will be fixed in a future version. If you rely on the current behaviour, change it to './/xmlns:rootfile[@media-type]' for root_file in tree.findall('//xmlns:rootfile[@media-type]', namespaces={'xmlns': NAMESPACES['CONTAINERNS']}): 0%| | 0/10 [00:00<?, ?it/s] Animal Farm: A Fairy Story Connection error. NoneType takes no arguments you can resume it next time

This is kind of unintuitive. It works fine on v0.7.0.

yihong0618 commented 4 months ago

will check it today

h9nara commented 2 months ago

我也碰到一样的问题 ··· python3 make_book.py --book_name test_books/book_name_redacted.epub --model google /opt/homebrew/lib/python3.12/site-packages/ebooklib/epub.py:1423: FutureWarning: This search incorrectly ignores the root element, and will be fixed in a future version. If you rely on the current behaviour, change it to './/xmlns:rootfile[@media-type]' for root_file in tree.findall('//xmlns:rootfile[@media-type]', namespaces={'xmlns': NAMESPACES['CONTAINERNS']}): 0it [00:00, ?it/s] 0it [00:00, ?it/s] ··· 奇怪的是我转了第一本书,然后成功了, 然后当我要转第二本书的时候就遇到这个错误了