samuel / python-ping

Pure Python version of ICMP ping
229 stars 309 forks source link

Python3 about win32 #14

Open ZhaoXuDongTJ opened 5 years ago

ZhaoXuDongTJ commented 5 years ago

we can't run in windows

D:\Program Files\Python3>python ping_new1.py ping_new1.py:168: DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead data = struct.pack("d", default_timer()) + data.encode() ping_new1.py:130: DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead startedSelect = default_timer() ping_new1.py:132: DeprecationWarning: time.clock has been deprecated in Python 3.3 and will be removed from Python 3.8: use time.perf_counter or time.process_time instead howLongInSelect = (default_timer() - startedSelect) ping 'heise.de' ... Timeout > 2s ping 'heise.de' ... Timeout > 2s ping 'heise.de' ... Timeout > 2s ping 'heise.de' ... Timeout > 2s ping 'baidu.com' ... Timeout > 2s ping 'baidu.com' ... Timeout > 2s ping 'baidu.com' ... Timeout > 2s ping 'baidu.com' ... Timeout > 2s

I have much time to solve this problem, I need your help! Thanks !