Open hugocool opened 2 years ago
This error came after cloning: google_new_transError: Failed to connect. Probable cause: timeout.
Thanks a lot!
Ok half of the issues are now just people asking for a new PyPi release.
This is still a thing and its an annoying thing
since they are not updating..
i cloned locally and extracted google_trans_new.py
and constant.py
to my project folder
changed line 8
of google_trans_new.py
from
from .constant import LANGUAGES, DEFAULT_SERVICE_URLS
to
from constant import LANGUAGES, DEFAULT_SERVICE_URLS
removed _google_trans_new_ from requirements.txt
and so my original import from code can stay the same..
from google_trans_new import google_translator
working on heroku now :)
removed google_trans_new from requirements.txt
Can you tell me where the requirements.txt file is? I am unable to locate it when I cloned the repo (it isn't in the file list).
removed google_trans_new from requirements.txt
Can you tell me where the requirements.txt file is? I am unable to locate it when I cloned the repo (it isn't in the file list).
requirements.txt is a file i have in my repo, heroku pip installs all of them prior to running my code if you dont have it, it seems you're not using external python packages on heroku anyhow therefore putting google_trans_new.py and constant.py in your project folder will let you use the local version when importing
Google trans new does not work in Google Colab when installed through pypi
input:
error:
I think the package is not updated on pypi, the latest release dates from dec 2020, while your latest commit is from 17 days ago.
This can be temporarily solved by doing
A new pypi release might fix all the issues