AttributeError: 'int' object has no attribute 'seconds'
therealcljohn opened this issue · 2 comments
Hi,
I´m getting an error while trying to graph the throughput with captcp on actual Kubuntu 13.04 64bit. I would fix this mysef if i could write python but I can´t so here is the output for you:
floh1111@floh1111-VirtualBox:~/Rechnernetze/ns-allinone-3.16/ns-3.16$ captcp throughput -s 0.1 -i -f 45.2 -o throughput-graph/ meine_aufgabe-5-2.pcap
# captcp 2010-2013 Hagen Paul Pfeifer (c)
# Packet link type not know (9)! Interpret at Ethernet now - but be carefull!
# Packet link type not know (9)! Interpret at Ethernet now - but be carefull!
Traceback (most recent call last):
File "/usr/bin/captcp", line 4345, in <module>
sys.exit(captcp.run())
File "/usr/bin/captcp", line 4331, in run
ret = classinstance.process_final()
File "/usr/bin/captcp", line 2711, in process_final
timediff = Utils.ts_tofloat(self.end_time - self.start_time)
File "/usr/bin/captcp", line 455, in ts_tofloat
return float(ts.seconds) + ts.microseconds / 1E6 + ts.days * 86400
AttributeError: 'int' object has no attribute 'seconds'
I´m running a plain installation in an virtual machine but I think I installed all needed packages: sudo apt-get install python-dpkt python-numpy make gnuplot texlive-latex-extra mupdf
Regards
Floh1111
Can you send me the pcap file (or send a link where I can download the file)? (meine_aufgabe-5-2.pcap)
One tip: you should always start with "captcp statistic" to identify the right stream:
captcp statistic /tmp/meine_aufgabe-5-2.pcap
[...]
1 10.0.5.1:49155<->10.0.2.1:50000
Packets processed: 2515 (100.0%)
Duration: 54 seconds
Flow 1.1 10.0.5.1:49155 -> 10.0.2.1:50000
Flow 1.2 10.0.2.1:50000 -> 10.0.5.1:49155
[...]
Here stream 1.1 and 1.2 are available. Then you just can generate the graph via:
captcp.py throughput -i -f 1.1 -o throughput-graph/ /tmp/meine_aufgabe-5-2.pcap
cd throughput-graph/
make pdf