Closed Etile0 closed 1 year ago
@Etile0 About Niutrans, Yandex and Iflytek, please pay attention to status of readme
, but thanks. About alibaba, please provide more information, such as your region about this, version, and other details (Because my test is normal).
Ah, I see about the first three
About alibaba,
I can access it (https://translate.alibaba.com/) in my country and use it there
I tried it on python3.10 and python3.8. Both didn't work so it's not my python version
I am using translators==5.4.8
I also tried using a VPN to try it in Hong Kong (My VPN doesn't have Beijing unfortunately), same error.
I also use linux but that shouldn't affect it, right?
I decided to debug it myself a bit
When the error started, here are the values of my variables:
language_dict: {'rgv587_flag': 'sm', 'url': '/trans/acquireSupportLanguage.do/_____tmd_____/punish?x5secdata=xb09bb0c28fac753a3141f3473d4a039fc1667634964a2025037794a560717130abazc2aaa__bx__translate.alibaba.com%3A443%2Ftrans%2FacquireSupportLanguage.do&x5step=2'}
language_url: 'https://translate.alibaba.com/trans/acquireSupportLanguage.do'
params: {'dmtrack_pageid': '00118446ca280724cb54cb217c29813dcb9db87c7c', 'biz_type': 'message'}
I would be willing to provide any other data that you need
@Etile0 Can you access this link: https://translate.alibaba.com/translationopenseviceapp/trans/acquire_supportLanguage.do
Yes, I can
From your pictures, we can see that the data we get from the same links are inconsistent. I think it may be caused by these two problems. One is the geographical location of the source and the other is the physical machine that accesses the source. Therefore, you can test as follows:
Sorry for not replying, I was a bit busy
I found a VPN in China and, even when I use that, it doesn't work
To answer your questions:
I get the same error from every location I try. I also tried from 3 different linux systems: my home computer (arch), my laptop (also arch) and my vps (ubuntu). All also have the same error
@Etile0 Hello friend
I just updated the new alibaba version, as well as debug_language_map
, you can pip the newest and try it again.
Just tested, it works now, thank you!
I decided to test out all the translation services in this library and found that some of them aren't working.
First I imported the library and got some text from the example:
Then I started testing. This is the issue with Niutrans:
The same error appears for Iflytech:
Yandex has a different issue. It says that the website is forbidden, although I can access it and use it just fine with my browser: ( Referenced by #94 )
Alibaba has the most complicated error:
I would also like to thank you for making this library. It has been a massive help in my projects.