Andreyt34 / namebench

Automatically exported from code.google.com/p/namebench
Apache License 2.0
0 stars 0 forks source link

Unable to save to chosen CSV File - AttributeError: 'NameBenchCli' object has no attribute 'options_csv_file' #259

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.namebench -x -i alexa -q 1 -O 192.168.1.254 -c "teste.csv"

What is the expected output? What do you see instead?
It should finish the test and save csv.
CSV is not saves and program aborts with error:
AttributeError: 'NameBenchCli' object has no attribute 'options_csv_file'

What version of the product are you using? On what operating system?
Running latest version on Ubuntu 14.04. Also tested cygwin and it is the same 
result.

Please provide any additional information below.

namebench -x -i alexa -q 1 -O 192.168.1.254 -c "teste.csv"
namebench 1.3.1 - alexa (automatic) on 2014-06-03 02:00:47.532779
threads=40/2 queries=1 runs=1 timeout=3.5 health_timeout=3.75 servers=11
------------------------------------------------------------------------------
- Reading Top 2,000 Websites (Alexa): 
/usr/share/namebench/data/alexa-top-2000-domains.txt (0.7MB)
- Generating tests from Top 2,000 Websites (Alexa) (33575 records, selecting 1 
automatic)
- Selecting 1 out of 33542 sanitized records (weighted mode).

- Checking query interception status...
- Checking connection quality: 1/3...3/3
- Congestion level is 3.59X (check duration: 143.72ms)
- Applied 3.59X timeout multiplier due to congestion: 1.8 ping, 13.5 health.
- Checking latest sanity reference

Final list of nameservers considered:
------------------------------------------------------------------------------
192.168.1.254   192.168.1.254      0   ms | 

- Sending 1 queries to 1 servers: 0/1.1/1

Fastest individual response (in milliseconds):
----------------------------------------------
192.168.1.254    ##################################################### 36.74293

Mean response (in milliseconds):
--------------------------------
192.168.1.254    ##################################################### 36.74

Response Distribution Chart URL (200ms):
----------------------------------------
http://chart.apis.google.com/chart?cht=lxy&chs=720x415&chxt=x,y&chg=10,20&chxr=0
,0,37|1,0,100&chd=t:0,100|0,100&chco=ff9900&chxt=x,y,x,y&chxl=2:||Duration+in+ms
||3:||%25|&chdl=192.168.1.254

Response Distribution Chart URL (Full):
---------------------------------------
http://chart.apis.google.com/chart?cht=lxy&chs=720x415&chxt=x,y&chg=10,20&chxr=0
,0,37|1,0,100&chd=t:0,100|0,100&chco=ff9900&chxt=x,y,x,y&chxl=2:||Duration+in+ms
||3:||%25|&chdl=192.168.1.254

Recommended configuration (fastest + nearest):
----------------------------------------------
nameserver 192.168.1.254   # 192.168.1.254  

********************************************************************************
In this test, 192.168.1.254 is N/A:  
********************************************************************************

Traceback (most recent call last):
  File "/usr/bin/namebench", line 73, in <module>
    namebench.Execute()
  File "/usr/share/namebench/libnamebench/cli.py", line 127, in Execute
    self.RunAndOpenReports()
  File "/usr/share/namebench/libnamebench/cli.py", line 99, in RunAndOpenReports
    self.CreateReports()
  File "/usr/share/namebench/libnamebench/base_ui.py", line 171, in CreateReports
    self.csv_path = self.options_csv_file
AttributeError: 'NameBenchCli' object has no attribute 'options_csv_file'

Original issue reported on code.google.com by hvaran...@gmail.com on 3 Jun 2014 at 1:17