-
Notifications
You must be signed in to change notification settings - Fork 79
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
Bug in netperf-wrapper_0.5.6 with python3 #2
Comments
That bug should be fixed in git version. However, I'm a bit puzzled as dpkg -L netperf-wrapper Thanks, -Toke |
Thanks for your fast reply, PS : running install 2013/4/18 Toke Høiland-Jørgensen notifications@github.com
"*We build software for people that build software.."Ahmed Bessifi*Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis, |
Ah, then things make sense. In that case, please test the current git -Toke |
Hi :D, Best regards, 2013/4/18 Toke Høiland-Jørgensen notifications@github.com
"*We build software for people that build software.."Ahmed Bessifi*Étudiant ingénieur en informatique à la Faculté des Sciences de Tunis, |
Excellent. Closing this bug, then. :)
Getting a working matplotlib on Debian squeeze with python 3 is a There's a javascript-based plotting engine here: -Toke |
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1685, in init |
what is the problem here |
for above i installed ...netperf and matplotlib |
It looks like you're running this on a box with no X-server running, and
Just what it says; it can't find matplotlib. How did you install -Toke |
i am not getting graphs |
other data i am getting,,, i am using windows 7 64 bit matplotlib-1.2.1 |
i am geeting Json data... from that how can i genrate graphs tell me.. |
netperf -P 0 -v 0 -D -0.2 -4 -H 200.200.100.1 -t TCP_STREAM -l 60 -f m |
How did you install netperf-wrapper and matplotlib? |
root@nswteam:/home/tapan/tmp/hanumanth/New folder/netperf-wrapper-master# ./genrate_plot.sh tcp_bidirectional-2013-07-16T175148.774280.json.gz |
tell me what is the problem above,,,, |
$ ./genrate_plot.sh tcp_bidirectional-2013-07-16T175148.774280.json.gz |
THANKS |
james123456 notifications@github.com writes:
What, exactly, does 'genrate_plot.sh' do? Also, what, if any, is the output of this command: python -c 'import matplotlib; import numpy' -Toke |
its script ,,, that genrates the graphs from json... any other way to get it,,, /home/netperf-wrapper-master /home/netperf-wrapper-master |
otherwise tell me exact installation steps |
from those two command i am not getting any output.. |
Right. That means that numpy and matplotlib are installed correctly, Since you say you built matplotlib from source, my next guess would be netperf-wrapper -i data.json.gz -f plot -o test.svg Those should save the graph data to files in the different formats. If -Toke |
all are working fine ... 2nd one .......with .ps its not fine |
Right, there's something dodgy with the .ps backend. However, you should -Toke |
THANKS ... but while ggiving out put file with -o what can i give .png .pdf like that are just with file name ... i am asking when i will run ... and here -f is not working ... help me on this topic ... otherwise provide me some examples..Thanks i saw graph ,, i am happy |
Basically, -f selects the output format, currently one of 'plot', Now, the plot formatter is special in that it produces images, and so I realise this overloading of the -o option is not terribly intuitive, So basically, to save an image file, you need to specify both -f plot
Excellent. Good luck with you benchmarking. :) -Toke |
$ ./netperf-wrapper -H 200.200.100.1 tcp_bidirectional -f plot -o test |
Warning: Command produced no valid data. |
You need to put a file format on the output. E.g. -o test.pdf |
This usually happens when all the ping packets are lost; shouldn't be |
i need to get ping data also what i have to do |
if it works then ping data will be present in graph... |
If it doesn't, I would advise you to try installing fping instead: -Toke |
make all-recursive |
i am getting some error .. |
thanks |
in bellow case i am getting that error ........ after getting json its getting plot but its not allowing me while running this command$ ./netperf-wrapper -H 200.200.100.1 tcp_bidirectional -f plot -o test.png $ ./netperf-wrapper -H 200.200.100.1 tcp_bidirectional -f plot -o test.pdf Error occurred: Unable to plot -- matplotlib is missing! Please install it if yo u want plots.the below command works fine ... but me getting error in abovenetperf-wrapper -i tcp_bidirectional-2013-07-16T175148.774280.json.gz -f plot -o test.png |
Dunno if it's just copy/pasted differently, but do you run In that case, what's the output of netperf-wrapper -V and -Toke |
$ netperf-wrapper -V |
in above python version is different |
Yes, but the Python versions are different. My guess is you only have The solution is to either install matplotlib for python3 as well, or to -Toke |
tell me for that ping ri.... thanks |
Looks like some missing dependencies or something. I've never compiled -Toke |
ping -D is not present .. thats the main reson i am not getting ping data in graph... |
Hi,
Am using python3 and netperf_2.6.0 as mentioned here :
http://archive.tohojo.dk/apt/dists/squeeze/Release
I could successfully install "netperf-wrapper_0.5.6" but when I started this command line "netperf-wrapper -H localhost ping" it takes some seconds and shows me the below error :
root@xenServer:/home/ahmed/Downloads# netperf-wrapper -H localhost ping
Traceback (most recent call last):
File "/usr/local/bin/netperf-wrapper", line 62, in
results[0].dump_dir(os.path.dirname(settings.OUTPUT) or ".")
File "/usr/local/lib/python3.1/dist-packages/netperf_wrapper/resultset.py", line 174, in dump_dir
fp = gzip_open(self._dump_file, "wt")
File "/usr/local/lib/python3.1/dist-packages/netperf_wrapper/util.py", line 110, in gzip_open
binary_file = _gzip_open(filename, mode)
File "/usr/lib/python3.1/gzip.py", line 132, in init
self.closed = False
AttributeError: can't set attribute
Exception AttributeError: "can't set attribute" in <bound method GzipFile.del of <gzip on 0xb718d08c>> ignored
The text was updated successfully, but these errors were encountered: