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

cannot import name '__title__' from 'requests.__version__ #47

Open
torajx opened this issue Aug 2, 2021 · 1 comment
Open

cannot import name '__title__' from 'requests.__version__ #47

torajx opened this issue Aug 2, 2021 · 1 comment

Comments

@torajx
Copy link

torajx commented Aug 2, 2021

Hi,
I installed google_trans_new, six, requests with pip3, my python version is 3.7.7
but I get the following error:

Traceback (most recent call last):
File "/Users/toraj/Projects/GitProjects/python/translate/app.py", line 3, in
from google_trans_new import google_translator
File "/Users/toraj/Projects/GitProjects/python/translate/venv/lib/python3.7/site-packages/google_trans_new/init.py", line 7, in
from .google_trans_new import google_translator
File "/Users/toraj/Projects/GitProjects/python/translate/venv/lib/python3.7/site-packages/google_trans_new/google_trans_new.py", line 4, in
import json, requests, random, re
File "/Users/toraj/Projects/GitProjects/python/translate/venv/lib/python3.7/site-packages/requests/init.py", line 129, in
from .version import title, description, url, version
ImportError: cannot import name 'title' from 'requests.version' (/Users/toraj/Projects/GitProjects/python/translate/venv/lib/python3.7/site-packages/requests/version.py)

@torajx
Copy link
Author

torajx commented Aug 2, 2021

here is my sample code

from google_trans_new import google_translator

translator = google_translator()
translate_text = translator.translate('สวัสดีจีน', lang_tgt='en')
print(translate_text)

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

1 participant