Skip to content
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

crash: round(float(darwin_re.search(line).group(5))): AttributeError: 'NoneType' ... #58

Closed
G-Harmon opened this issue Jan 8, 2019 · 1 comment

Comments

@G-Harmon
Copy link

G-Harmon commented Jan 8, 2019

This looks newer than #2 and #11, though it seems similar.

Traceback (most recent call last):
File "/usr/local/bin/gping", line 11, in
sys.exit(run())
File "/usr/local/lib/python3.6/site-packages/gping/pinger.py", line 314, in run
_run()
File "/usr/local/lib/python3.6/site-packages/gping/pinger.py", line 339, in _run
for line in it(options):
File "/usr/local/lib/python3.6/site-packages/gping/pinger.py", line 264, in _inner
result = func(line)
File "/usr/local/lib/python3.6/site-packages/gping/pinger.py", line 293, in darwin_ping
return round(float(darwin_re.search(line).group(5)))
AttributeError: 'NoneType' object...

I see this once in awhile, but not sure what triggers it. I'll try adding some debug output...

@G-Harmon
Copy link
Author

G-Harmon commented Jan 8, 2019

It looks like my code is older than HEAD. But I tried using pip to uninstall and reinstall, and I still have the same code. Is pip supposed to get more recent code?
Should I install some other way to get HEAD?
I reinstalled with:
$sudo pip3 uninstall pinggraph
$sudo pip3 install pinggraph

@orf orf closed this as completed Nov 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants