You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I get the error "ping() got an unexpected keyword argument 'count'"
I am running Python version 3.9 within Visual Studio Community within a Flask App.
The exact code that will not function:
hostname = "8.8.8.8"
host = ping('8.8.8.8', count=10, interval=0.2)
if host.is_alive == True:
color = "green"
pingresult = hostname + " is up"
else:
color = "red"
pingresult = hostname + " is down"
Not sure what the deal is. Documentation states it should work with Python 3.7+ and the app I am testing with is very very basic use of this. Multiping works fine.
The text was updated successfully, but these errors were encountered:
Just using the basic ping example posted here: https://pypi.org/project/icmplib/
I get the error "ping() got an unexpected keyword argument 'count'"
I am running Python version 3.9 within Visual Studio Community within a Flask App.
The exact code that will not function:
hostname = "8.8.8.8"
host = ping('8.8.8.8', count=10, interval=0.2)
if host.is_alive == True:
color = "green"
pingresult = hostname + " is up"
else:
color = "red"
pingresult = hostname + " is down"
Not sure what the deal is. Documentation states it should work with Python 3.7+ and the app I am testing with is very very basic use of this. Multiping works fine.
The text was updated successfully, but these errors were encountered: