Token unavailable again? AttributeError: 'NoneType' object has no attribute 'group'
See original GitHub issueToday when I run simple test :
(gTTS==1.2.1
gTTS-token==1.1.2)
tts = gTTS('Hello', lang='en')
tts.save('hello.mp3')
It shows me
lib/python2.7/site-packages/gtts_token/gtts_token.py", line 57, in _get_token_key
tkk_expr = re.search(".*?(TKK=.*?;)W.*?", line).group(1)
AttributeError: 'NoneType' object has no attribute 'group'
Is token changed again?
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (2 by maintainers)
Top Results From Across the Web
Python regex AttributeError: 'NoneType' object has no attribute ...
I managed to figure out this solution: omit group() for the situation where the searchbox reply is "No results" and thus doesn't match...
Read more >AttributeError: 'NoneType' object has no attribute 'group'
The Python "AttributeError: 'NoneType' object has no attribute" occurs when we try to call the group() method on a None value, e.g. after ......
Read more >[Solved] AttributeError: Nonetype Object Has No Attribute Group
In this article we will discuss AttributeError:Nonetype object has no Attribute Group. We will understand it and then find solution for it.
Read more >Python AttributeError — What is it and how do you fix it?
AttributeError : '***' object has no attribute '***'What is an AttributeError in Python ? What can you do to fix it? When does...
Read more >AttributeError: 'NoneType' object has no attribute 'group' - Reddit
So you're either running an older version, or you unconsciously corrected the mistake while copying the code to your post.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ugly workaround:
Open /usr/local/lib/python2.7/dist-packages/gtts_token/gtts_token.py
And replace _get_token_key function with:
This should be fixed in gTTS-token 1.1.3. Please update and verify