Skip to content

Commit ca5508e

Browse files
Fix tqdm import and update requirements.txt to include networkx and matplotlib
1 parent d57f269 commit ca5508e

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

requirements.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
scapy
22
speedtest-cli
33
python-nmap
4-
tqdm
4+
tqdm
5+
networkx
6+
matplotlib

src/main.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
# Optional visualization imports
3434
import matplotlib.pyplot as plt
3535
import networkx as nx
36-
3736
visualization_available = True
3837
except ImportError:
3938
visualization_available = False
@@ -180,7 +179,7 @@ def traceroute(self, target, max_hops=30, timeout=1, save_to_file=False):
180179
results = []
181180
reached_target = False
182181

183-
with tqdm(total=max_hops, desc="Tracing route") as pbar:
182+
with tqdm.tqdm(total=max_hops, desc="Tracing route") as pbar:
184183
for ttl in range(1, max_hops + 1):
185184
try:
186185
packet = IP(dst=target, ttl=ttl) / ICMP()

0 commit comments

Comments
 (0)