Open mrmelf opened 3 years ago
I explained to you what you were doing wrong in your other thread:
Hi
Thank you - but still getting error messages
See below console
Thank you
Mel
from google_trans_new import google_translator
def translate(translatethis,langdest):
print (' in new google translate routine ' ) translator = google_translator() englishtext = ' hello world' langdestest = 'es' translated_text = translator.translate(englishtext,lang_tgt=langdestest) print (translated_text, 'translated text in spanish' ) spanish_text = translated_text translated_text = translator.translate(spanish_text,lang_tgt='en') print (translated_text, 'translated text in english' ) translated_text = translator.translate(translatethis,lang_tgt=langdest) return (translated_text)
in new google translate routine
in new google translate routin2021-07-15 22:05:39 ERROR translated text in spanish2021-07-15 22:05:39 ERROR translated text in english2021-07-15 22:05:39 fx to english result ERROR2021-07-15 22:05:39 engvalue = ERROR2021-07-15 22:05:39 check for profanity 2021-07-15 22:05:39 statement in profane routine Spanish2021-07-15 22:05:41 too_word called 2021-07-15 22:05:41 length of the statement -- number of words = 12021-07-15 22:05:41 wordy function 2021-07-15 22:05:41 []2021-07-15 22:05:41 number of messages for this user is in new_user = 42021-07-15 22:05:41 in new google translate routine 2021-07-15 22:05:41 ERROR translated text in spanish2021-07-15 22:05:41 ERROR translated text in english On Thursday, July 15, 2021, 10:41:35 AM EDT, Sapereaude9 @.***> wrote:
I explained to you what you were doing wrong in your other thread:
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Hi Following up..
It appears to me that the server that has GOOGLETRANS is receiving my message but does not like my request and is throwing my request on the "floor"and my APP is getting a null respons
Thank you Here is the null response from pythonanywhere to twilio server. Thanks again...
POSTnull2021-07-15 22:03:54 UTCRequestURLParametersShow RawMessage TextShow Raw | sourceComponent | "14100" | | url | "null" | | ErrorCode | "11200" | | LogLevel | "ERROR" | | Msg | "The URI scheme, of the URI null, must be equal (ignoring case) to 'http', 'https', 'ws', or 'wss'" | | EmailNotification | "false" |
ResponseHeadersBodyNo body.
On Thursday, July 15, 2021, 6:38:52 PM EDT, melvyn feuerman ***@***.***> wrote:
Hi
Thank you - but still getting error messages
See below console
Thank you
Mel
from google_trans_new import google_translator
def translate(translatethis,langdest):
print (' in new google translate routine ' ) translator = google_translator() englishtext = ' hello world' langdestest = 'es' translated_text = translator.translate(englishtext,lang_tgt=langdestest) print (translated_text, 'translated text in spanish' ) spanish_text = translated_text translated_text = translator.translate(spanish_text,lang_tgt='en') print (translated_text, 'translated text in english' ) translated_text = translator.translate(translatethis,lang_tgt=langdest) return (translated_text)
in new google translate routine
in new google translate routin2021-07-15 22:05:39 ERROR translated text in spanish2021-07-15 22:05:39 ERROR translated text in english2021-07-15 22:05:39 fx to english result ERROR2021-07-15 22:05:39 engvalue = ERROR2021-07-15 22:05:39 check for profanity 2021-07-15 22:05:39 statement in profane routine Spanish2021-07-15 22:05:41 too_word called 2021-07-15 22:05:41 length of the statement -- number of words = 12021-07-15 22:05:41 wordy function 2021-07-15 22:05:41 []2021-07-15 22:05:41 number of messages for this user is in new_user = 42021-07-15 22:05:41 in new google translate routine 2021-07-15 22:05:41 ERROR translated text in spanish2021-07-15 22:05:41 ERROR translated text in english On Thursday, July 15, 2021, 10:41:35 AM EDT, Sapereaude9 @.***> wrote:
I explained to you what you were doing wrong in your other thread:
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
Could you provide a screenshot of the output? Also, what Python version and operating system are you running?
Hi Thank you for getting back to me. See screen shot below... It looks to me that the error has something to do with GOOGLTRANS not replying to the Twilio or PYTHON because to the 1410 and null response( sww below) I am using ( i think ) python 3,7.of pyhonawnywhere.. The overall domain is run by Twilio hence the 1410 response in the message.
Thank you..
Mel
The PythonAnywhere help pages
The PythonAnywhere help pages
PythonAnywere
Many of your questions about PythonAnywhere are likely to be answered below. If not, the best place to get suppo... |
|
|
On Friday, July 16, 2021, 7:04:00 AM EDT, Sapereaude9 ***@***.***> wrote:
Could you provide a screenshot of the output? Also, what Python version and operating system are you running?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
I suspected it was something like that. Is it impossible for you to run the script locally? Other than that, I don't know what else to suggest. I can't see any screenshot, by the way.
Whoever is making that request to twilio, the request doesn't have the correct message text. On 07/16-15:49, melvyn feuerman wrote:
Hi Thank you for getting back to me. See screen shot below... It looks to me that the error has something to do with GOOGLTRANS not replying to the Twilio or PYTHON because to the 1410 and null response( sww below) I am using ( i think ) python 3,7.of pyhonawnywhere.. The overall domain is run by Twilio hence the 1410 response in the message.
Thank you..
Mel
The PythonAnywhere help pages
The PythonAnywhere help pages
PythonAnywere
Many of your questions about PythonAnywhere are likely to be answered below. If not, the best place to get suppo... |
|
|
On Friday, July 16, 2021, 7:04:00 AM EDT, Sapereaude9 @.***> wrote:
Could you provide a screenshot of the output? Also, what Python version and operating system are you running?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
-- Conrad Ho @.***
PythonAnywhere: Develop Python in your browser http://pythonanywhere.com/
PythonAnywhere LLP 17a Clerkenwell Road, London EC1M 5RD, UK VAT No.: GB 893 5643 79 Registered in England and Wales as company number OC378414. Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
(1) phone message to whatsapp(2) whtsapp to twilio(3) twilo sends message to flaskserver on python any where (4) flask server needs to translate phrase using googletrans 1.flask server makes a request to twilio or directly to googletrans ( not sure) 2. twilio or pythonanywhere sends request to google trans 3. Google trans responds with a nulls (I think) to pythonanywhere flask server
So the problem is that Googletrans does not line the message he is getting from Twilio orpython anywhere and is responding with NULLS..
Not I believe that this code worked for anout a year with no problems Any suggestions. Thanks Mel
On Friday, July 16, 2021, 10:52:17 PM EDT, Conrad Ho ***@***.***> wrote:
Whoever is making that request to twilio, the request doesn't have the correct message text. On 07/16-15:49, melvyn feuerman wrote:
Hi Thank you for getting back to me. See screen shot below... It looks to me that the error has something to do with GOOGLTRANS not replying to the Twilio or PYTHON because to the 1410 and null response( sww below) I am using ( i think ) python 3,7.of pyhonawnywhere.. The overall domain is run by Twilio hence the 1410 response in the message.
Thank you..
Mel
The PythonAnywhere help pages
The PythonAnywhere help pages
PythonAnywere
Many of your questions about PythonAnywhere are likely to be answered below. If not, the best place to get suppo... |
|
|
On Friday, July 16, 2021, 7:04:00 AM EDT, Sapereaude9 @.***> wrote:
Could you provide a screenshot of the output? Also, what Python version and operating system are you running?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.
-- Conrad Ho @.***
PythonAnywhere: Develop Python in your browser http://pythonanywhere.com/
PythonAnywhere LLP 17a Clerkenwell Road, London EC1M 5RD, UK VAT No.: GB 893 5643 79 Registered in England and Wales as company number OC378414. Registered address: 28 Ely Place, 3rd Floor, London EC1N 6TD, UK
I don't understand such as googetrans can be allowed to fail in 2021!!
I can't fine a reliable version googletrans that works with python
memelf