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

gping only works in the local Network #43

Closed
JPRuehmann opened this issue Aug 5, 2017 · 6 comments
Closed

gping only works in the local Network #43

JPRuehmann opened this issue Aug 5, 2017 · 6 comments

Comments

@JPRuehmann
Copy link

JPRuehmann commented Aug 5, 2017

If I start gping for local devices (192.168.1.*/24) it works fine.
but if I try such as gping google.com I get the following error.

Traceback (most recent call last):
  File "/usr/local/bin/gping", line 9, in <module>
    load_entry_point('pinggraph==1.0', 'console_scripts', 'gping')()
  File "/usr/local/lib/python2.7/dist-packages/gping/pinger.py", line 313, in run
    _run()
  File "/usr/local/lib/python2.7/dist-packages/gping/pinger.py", line 343, in _run
    plotted = plot(width, height, buff, host)
  File "/usr/local/lib/python2.7/dist-packages/gping/pinger.py", line 181, in plot
    u"█", column + 2, 2, 2 + bar_height, paint=_paint
  File "/usr/local/lib/python2.7/dist-packages/gping/pinger.py", line 72, in vertical_line
    self[column, y] = (next(data_iter), paint)
StopIteration

How can I make it work?
Thanks

@JPRuehmann
Copy link
Author

Why it works only on local Computers?
I've tried with multiple Computers but none works?
I am using Kubuntu 16.04 LTS
Thanks,

@orf
Copy link
Owner

orf commented Aug 7, 2017 via email

@JPRuehmann
Copy link
Author

JPRuehmann commented Aug 7, 2017

the snap cannot be found by snap.
error: cannot install "gping": snap not found
normal ping just works fine.
PING google.com (216.58.207.46) 56(84) bytes of data. 64 bytes from fra16s24-in-f14.1e100.net (216.58.207.46): icmp_seq=1 ttl=56 time=29.6 ms
on my Laptop behind a Firewall localhost is the only working Address all other in my Local net aren reachable by gping but with normal ping they work, on all other PCs the Local Net works, But nothing outside.
Thanks,

@orf
Copy link
Owner

orf commented Aug 9, 2017

Hmm. I think I know what could be causing this, it must be a unicode/locale issue.

Can you run this on Python 3? pip uninstall gping && pip3 install gping

Thanks for reporting this, if it works on Python 3 I think I can fix this. the u"█" statement must have a length of two on your system for some reason...

@orf
Copy link
Owner

orf commented Aug 10, 2017

This should be fixed in the new release. Please update the package and let me know if it fails 👍

@orf orf closed this as completed Aug 10, 2017
@JPRuehmann
Copy link
Author

JPRuehmann commented Aug 10, 2017

Thanks now it works as expected.

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