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

Python 3.7 has the below error. #1

Open
karunakarhv opened this issue Aug 28, 2019 · 1 comment
Open

Python 3.7 has the below error. #1

karunakarhv opened this issue Aug 28, 2019 · 1 comment

Comments

@karunakarhv
Copy link

.. C:\Users\kvenkatesh\eclipse-workspace\python3_ping.py:216: 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
default_timer = time.clock()
Traceback (most recent call last):
File "C:\Users\kvenkatesh\eclipse-workspace\python3_ping.py", line 603, in
verbose_ping("heise.de")
File "C:\Users\kvenkatesh\eclipse-workspace\python3_ping.py", line 589, in verbose_ping
delay = do_one(dest_addr, timeout)
TypeError: do_one() missing 4 required positional arguments: 'hostname', 'timeout', 'mySeqNumber', and 'packet_size'

@kuzmeech
Copy link

kuzmeech commented Apr 8, 2021

On 3.7 I was able to fix it with this diff:

79c79
<     default_timer = time.clock
---
>     default_timer = time.perf_counter

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