We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
使用python3.10调用报错 使用pip安装的。manjaro linux系统。之前一直用的好好的,某次系统更新之后就出问题了。 Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details __import__(pkg_name) File "~/.local/lib/python3.10/site-packages/googletranslate/__init__.py", line 17, in <module> translator = Translator(map(lambda x: x.strip(), list(f))) File "~/.local/lib/python3.10/site-packages/googletranslate/client.py", line 39, in __init__ self.token_acquirer = TokenAcquirer(session=self.session, host=service_urls[0]) TypeError: 'map' object is not subscriptable
Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details __import__(pkg_name) File "~/.local/lib/python3.10/site-packages/googletranslate/__init__.py", line 17, in <module> translator = Translator(map(lambda x: x.strip(), list(f))) File "~/.local/lib/python3.10/site-packages/googletranslate/client.py", line 39, in __init__ self.token_acquirer = TokenAcquirer(session=self.session, host=service_urls[0]) TypeError: 'map' object is not subscriptable
The text was updated successfully, but these errors were encountered:
问题解决。重新用pip安装一遍即可。问题close
Sorry, something went wrong.
No branches or pull requests
使用python3.10调用报错
使用pip安装的。manjaro linux系统。之前一直用的好好的,某次系统更新之后就出问题了。
Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 187, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "/usr/lib/python3.10/runpy.py", line 146, in _get_module_details return _get_module_details(pkg_main_name, error) File "/usr/lib/python3.10/runpy.py", line 110, in _get_module_details __import__(pkg_name) File "~/.local/lib/python3.10/site-packages/googletranslate/__init__.py", line 17, in <module> translator = Translator(map(lambda x: x.strip(), list(f))) File "~/.local/lib/python3.10/site-packages/googletranslate/client.py", line 39, in __init__ self.token_acquirer = TokenAcquirer(session=self.session, host=service_urls[0]) TypeError: 'map' object is not subscriptable
The text was updated successfully, but these errors were encountered: