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

Issue with most basic option translation on newer releases #404

Closed
svrnhdl opened this issue May 27, 2024 · 2 comments
Closed

Issue with most basic option translation on newer releases #404

svrnhdl opened this issue May 27, 2024 · 2 comments

Comments

@svrnhdl
Copy link

svrnhdl commented May 27, 2024

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
Copy link
Owner

will check it today

@h9nara
Copy link

h9nara commented Jul 26, 2024

我也碰到一样的问题
···
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]
···
奇怪的是我转了第一本书,然后成功了, 然后当我要转第二本书的时候就遇到这个错误了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants