yihong0618 / bilingual_book_maker

Make bilingual epub books Using AI translate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`--resume` would raise error: `'NoneType' object has no attribute 'replace' you can resume it next time`

imWildCat opened this issue · comments

Hello, the resume functionality seems to be broken.

I tried it like

bbook_maker --openai_key xxx --api_base 'https://xxx.openai.azure.com/' --deployment_id 'gpt35' --book_name xxx --resume

it just returned

'NoneType' object has no attribute 'replace'
you can resume it next time

there's no call stack shown

@imWildCat try to fix it, not sure if its this problem, reopen it

please try to use the latest package(or code)

thank you!

using the latest version, it now shows:

  0%|                                                                                | 0/4728 [00:00<?, ?it/s]









NoneType takes no arguments
you can resume it next time

seems something is wrong will take a look tonight or romorrow and revert the latest commit

@imWildCat seems fixed this time

I can confirm the fix. thanks for your quick action!