(temporary?) fix for AttributeError: 'NoneType' object has no attribute 'group'
See original GitHub issueFound a fix (atleast temporary)
in gtts_token/gtts_token.py
remove lines
tkk_expr = re.search(".*?(TKK=.*?;)W.*?", line).group(1)
a = re.search("a\\\\x3d(-?\d+);", tkk_expr).group(1)
b = re.search("b\\\\x3d(-?\d+);", tkk_expr).group(1)
result = str(hours) + "." + str(int(a) + int(b))
replace them with line
result = re.search("TKK='(.+?)';", line).group(1)
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:20
Top Results From Across the Web
AttributeError: 'NoneType' object has no attribute 'group'
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 >[Solved] AttributeError: Nonetype Object Has No Attribute Group
“AttributeError Nonetype object has no attribute group” is the error raised by the python interpreter when it fails to fetch or access “group...
Read more >How To Fix Error: 'NoneType' Object Has No Attribute ' ...
Summary: NoneType attribute error occurs when the type of object being referenced is ... AttributeError: 'tuple' object has no attribute 'insert'.
Read more >Temporary Fix For (AttributeError: 'NoneType' object has no ...
For anyone receives NoneType' object has no attribute 'group , if you are currently using googletrans==3.0.0, please switch to googletrans==3.1.
Read more >'NoneType' object has no attribute 'span' pytube - YouTube
In this video,I will show you how to fix the error: AttributeError : ' NoneType ' object has no attribute 'span' **My Social...
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
Apparently pip update install gtts_token didn’t work. Try this one:
pip uninstall gtts_token pip install gtts_token
This should update the script to the latest version and it will just work.
gtts-token
is install along withgTTS
.It is defined in setup.py line: 26