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

TypeError: 'NoneType' object is not subscriptable #156

Closed
Andrea-lyz opened this issue Dec 18, 2020 · 2 comments
Closed

TypeError: 'NoneType' object is not subscriptable #156

Andrea-lyz opened this issue Dec 18, 2020 · 2 comments

Comments

@Andrea-lyz
Copy link

Andrea-lyz commented Dec 18, 2020

#155 安装googletrans 4.0.0rc1后,出现以下错误

Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.8/bin/autosub", line 8, in <module> sys.exit(main()) File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/autosub/__init__.py", line 170, in main cmdline_utils.sub_trans(args, File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/autosub/cmdline_utils.py", line 796, in sub_trans translated_text, args.src_language = core.list_to_googletrans( File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/autosub/core.py", line 578, in list_to_googletrans translator = googletrans.Translator( File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/googletrans/client.py", line 88, in __init__ client=self.client, host=self.service_urls[0]) TypeError: 'NoneType' object is not subscriptable
麻烦大大@BingLingGroup 教我如何解决,国外上课急需555

@BingLingGroup
Copy link
Owner

可以按照issue格式填写吗

@BingLingGroup
Copy link
Owner

BingLingGroup commented Dec 18, 2020

刚才试了下 #155 中的解决方法,使用autosub dev分支最新代码,成功安装后没遇到你说的这个问题

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

No branches or pull requests

2 participants