question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

(temporary?) fix for AttributeError: 'NoneType' object has no attribute 'group'

See original GitHub issue

Found 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:closed
  • Created 5 years ago
  • Reactions:3
  • Comments:20

github_iconTop GitHub Comments

3reactions
SimonChicagocommented, Sep 24, 2018

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.

2reactions
anuj9196commented, Oct 8, 2018

gtts-token is install along with gTTS.

It is defined in setup.py line: 26

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found