-
Notifications
You must be signed in to change notification settings - Fork 246
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
JSON object must be str, bytes or bytearray, not 'NoneType' #163
Comments
It seems to be this ssut/py-googletrans#234 caused by py-googletrans. Perhaps replacing the dependency to https://github.com/Saravananslb/py-googletranslation may solve this issue. Currently if you don't have too many subtitles files to do a bulk translation, you can use the following command to do a manual-copy-and-paste translation. (Not listed in the readme)
This will generate a txt file which contain a certain amount of words to be translated. Then you copy them to any of the translation website such as https://www.deepl.com/translator. After that you copy all the translation results from the website and then overwrite all the content in the previous txt. Then input enter in autosub and do these again until all the content being translated and the translated subtitles will be generated. |
Is there an easy way to make it use py-google translation instead? |
I tried these arguments and it works.
|
tried with the command and got the error |
@zhenghan3 You need to use the latest dev version in the github repo dev branch. |
Not working for me on MacOS:
Edit: after including the
|
20220510,[0.5.7-alpha]windows发布版使用翻译功能报错'NoneType' object has no attribute 'group',请问如何解决? |
|
Make sure you have read the readme, searched and read the issues related to yours. Otherwise it will be considered as a duplicate which will be closed immediately.
Describe the bug
Errors when trying to run.
To Reproduce
Steps to reproduce the behavior:
Ctrl-A
andCtrl-C
to copy all of them.Use this to display your config.
Expected behavior
A clear and concise description of what you expected to happen.
To complete without error.
Screenshots
If applicable, add screenshots to help explain your problem. But it is not recommended using screenshots to demonstrate the commandline output unless you think it really matters.
Environment (please complete the following information):
Additional context (Optional)
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: