Closed rifen closed 4 years ago
Hi, thank you for using my library 😃
The error you get may be related to an indentation error. Can you repost your indented code into a code block (or take a screenshot of your code)? https://help.github.com/en/github/writing-on-github/creating-and-highlighting-code-blocks
Otherwise, this line is incorrect:
hops = traceroute("{address}", count=3, interval=0.5, timeout=2, max_hops=10, fast_mode=False)
"{address}"
is a string. It is not the address
variable. Use instead:
hops = traceroute(address, count=3, interval=0.5, timeout=2, max_hops=10, fast_mode=False)
I hope this will help you.
Using your library I am having issues with the traceroute portion. Below is my code. I feel like I have practically followed your example besides using input instead of a pre-defined IP.
I am a beginner so maybe I am doing something wrong but it seems like hop isn't defined in your library.