-
Notifications
You must be signed in to change notification settings - Fork 727
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
Announcement: Temporary Fix For (AttributeError: 'NoneType' object has no attribute 'group') in 3.0.0 Version #280
Comments
I am still having the same issue after installing googletrans==3.1.0a0
|
Hi @mzeidhassan, could you provide more information of your test environment. That translation actually worked for me at least... |
Hi @terryyz |
The issue still in googletrans==3.1.0a0
from googletrans import Translator
translator = Translator(service_urls=[
'translate.google.cn',
])
tranlated = translator.translate('hello.', dest='zh-CN')
print(tranlated) I can provide more information |
Oops, I think most of the service_urls don't actually work in this version. But I'll check the issue thoroughly. What if you just try the default setting? Like: from googletrans import Translator
translator = Translator()
tranlated = translator.translate('hello.', dest='zh-CN')
print(tranlated) |
from googletrans import Translator
translator = Translator()
tranlated = translator.translate('hello.', dest='zh-CN')
print(tranlated) This code have the same
Have you tested it in new environment? But is not your dev environment |
I'm testing on Ubuntu 20.04 python3.8.5 and it works for the default setting. |
Sorry. I'm in error environment test. Now try again test and install from googletrans import Translator
translator = Translator(service_urls=[
'translate.google.cn',
])
tranlated = translator.translate('hello.', dest='zh-CN')
print(tranlated) |
Yes, that's what I was saying :) |
If I use the default settings the translations work for a few requests, then translator returns the same string I submitted. If I try to specify the service URL I get the error:
Either way, it doesn't work. Edit: I am using |
This worked, thanks a lot for your efforts ! |
|
work for me in Colab environment! Thanks so much!! |
I have a problem with this version. The text is not translated and the >>> from googletrans import Translator
>>> translator = Translator()
>>> translator.translate(text='küche', dest='en')
Translated(src=en, dest=en, text=küche, pronunciation=küche, extra_data="{'translat...")
>>> translator.translate(text='küche', dest='en', src='de')
Translated(src=en, dest=en, text=küche, pronunciation=küche, extra_data="{'translat...") I would expect |
I'm seeing the same behaviour @LostInDarkMath |
The same problem @LostInDarkMath |
Hi, I'm also getting the same issue even after changing the install version. On Python 3.7.6. |
Hi folks! |
Hey there! Gettting the same problem as @LostInDarkMath even when translating from english. Thanks for all your hard work! |
While I look forward to the rewrite, I just got it working. My mistake was embarrassing! I didn't have wheel installed in my venv, so the install of this package failed. Just sharing in case others are stuck and getting the same issue. Originally got the "NoneType not iterable" problem. After pip3 install wheel, pip3 uninstall googletrans, pip3 install googletrans, this changed to "NoneType has not attribute group". After pip3 install googletrans==3.1.0a0 it worked. Thanks for your work people 🙏 |
after installing pip3 install googletrans==3.1.0a0. my code output: see if this helps |
does not work for me, using python 3.8.3 |
Mine is working now from googletrans import Translator Nnọọ. |
Working fine with me
If you just reinstalled the library, make sure to restart the runtime. |
I had this too, but then I noticed the response code was a 429 (Too many requests). I guess Google stops translating if that occurs. Check the response code of the response if a text is not translated. |
v3.0.0 is affted by this bug not still solved ssut/py-googletrans#280
File "e:\python\speechrecognition.py", line 121, in this error is coming for pip install googletrans==4.0.0rc1 also can any one help me out |
use this library as it works fine |
I fixed it by updating my python version to 3.8.12 |
This worked for me with
PD: some times first install without sudo fails and I retry then with sudo. Thx! |
It works, but I think this package is no longer updated, right? |
You are right, I haven't updated it for a long while.
I hope the new version of Google translate is compatible with python 2.7
I will lo9k it into it this week as I have some enhancements to do
…On Sun, 22 Oct 2023, 16:12 Vu Duc Anh, ***@***.***> wrote:
For anyone receives NoneType' object has no attribute 'group, if you are
currently using googletrans==3.0.0, please switch to googletrans==3.1.0a0
for the temporary fix.
Related Issue: #234 <#234>
I think this package is no longer updated, right?
—
Reply to this email directly, view it on GitHub
<#280 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKI3AKIN6WSBW5DWWGBUJLDYAUSVZAVCNFSM4Y6KAES2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGQYTANRRG42A>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
Dear contributors!
|
Unfortunately plex is built around python 2.7...
So we are tied to that!
…On Mon, 23 Oct 2023, 05:35 Vu Duc Anh, ***@***.***> wrote:
You are right, I haven't updated it for a long while. I hope the new
version of Google translate is compatible with python 2.7 I will lo9k it
into it this week as I have some enhancements to do
Dear *contributors*!
Please consider removing Python *2x* support (please see at
https://devguide.python.org/versions)
… <#m_3459509121603960181_>
On Sun, 22 Oct 2023, 16:12 Vu Duc Anh, *@*.*> wrote: For anyone receives
NoneType' object has no attribute 'group, if you are currently using
googletrans==3.0.0, please switch to googletrans==3.1.0a0 for the temporary
fix. Related Issue: #234
<#234> <#234
<#234>> I think this package
is no longer updated, right? — Reply to this email directly, view it on
GitHub <#280 (comment)
<#280 (comment)>>,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AKI3AKIN6WSBW5DWWGBUJLDYAUSVZAVCNFSM4Y6KAES2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGQYTANRRG42A
<https://github.com/notifications/unsubscribe-auth/AKI3AKIN6WSBW5DWWGBUJLDYAUSVZAVCNFSM4Y6KAES2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGQYTANRRG42A>
. You are receiving this because you commented.Message ID: @.*>
—
Reply to this email directly, view it on GitHub
<#280 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKI3AKPK5AJU6EBLEHRWU4LYAXQY3AVCNFSM4Y6KAES2U5DIOJSWCZC7NNSXTN2JONZXKZKDN5WW2ZLOOQ5TCNZXGQZTOOBWHAZA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
It works for me. |
version |
For anyone receives
NoneType' object has no attribute 'group
, if you are currently usinggoogletrans==3.0.0,
please switch togoogletrans==3.1.0a0
for the temporary fix.Related Issue: #234
The text was updated successfully, but these errors were encountered: