Yipfrr / namebench

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

Namebench does not allow selection of "Test Data Source" on OS X 10.6.3 (Untested on other versions of Mac OS) #122

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open Namebench
2. Problem is immediate, cannot select the box called "Test Data Source"
3. Other selection and check boxes can be selected during this time
4. The "Start Benchmark" button can also be pressed but the error " 
(AttributeError: 'NoneType' 
object has no attribute 'startswith') " is shown

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system? version 
1.2 of Namebench 
on Mac OS X 10.6.3

Please provide any additional information below.

Original issue reported on code.google.com by virtualt...@gmail.com on 17 May 2010 at 9:05

GoogleCodeExporter commented 8 years ago
I'm facing the same exact issue using Namebench 1.2 on Mac OS X 10.6.3.

Original comment by jen...@gmail.com on 17 May 2010 at 9:14

GoogleCodeExporter commented 8 years ago
I have same problem.

Original comment by mdree...@gmail.com on 17 May 2010 at 11:06

GoogleCodeExporter commented 8 years ago
I suspect this is because the Alexa data in the 1.2 release has inadvertently 
expired, and no web browser 
histories can be found. Can someone provide logs so that I can debug this 
issue? To do so, open:

/Applications/Utilities/Console

You should see messages sent from namebench here. If you could paste those into 
this bug, it would be greatly 
appreciated!

Original comment by helixblue on 17 May 2010 at 12:30

GoogleCodeExporter commented 8 years ago
Also, it would be helpful if you mentioned which web browser you actively use 
on this machine.

Original comment by helixblue on 17 May 2010 at 12:31

GoogleCodeExporter commented 8 years ago
Sorry, I'm new to filing bug reports. I'm using the latest version of Safari 
(4.0.5) , haven't tried it with any other 
browsers.

Original comment by virtualt...@gmail.com on 17 May 2010 at 12:42

GoogleCodeExporter commented 8 years ago
Oh, forgot the console log, here it is...

17/05/2010 13:44:35 namebench[197]  pwd: /
17/05/2010 13:44:35 namebench[197]  argv[0]: 
/Applications/namebench.app/Contents/MacOS/namebench
17/05/2010 13:44:35 namebench[197]  Using configuration: 
/Applications/namebench.app/Contents/Resources/config/namebench.cfg
17/05/2010 13:44:35 namebench[197]  Discovering sources
17/05/2010 13:44:35 namebench[197]  Populating Form...
17/05/2010 13:44:35 namebench[197]  Ignoring 
/Applications/namebench.app/Contents/Resources/data/alexa-top-10000-global.txt 
from alexa (79 days 
old)
17/05/2010 13:44:35 namebench[197]  Ignoring 
/Users/virtualtaoist/Library/Safari/History.plist (only 
1701 bytes)
17/05/2010 13:44:35 namebench[197]  namebench 1.2 is ready!
17/05/2010 13:44:35 namebench[197]  Application did finish launching.
17/05/2010 13:44:37 namebench[197]  Processing form inputs
17/05/2010 13:44:42 namebench[197]  An exception has occured:
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197] Traceback (most 
recent call 
last):
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197]   File 
"/System/Library/Frameworks/Python.framework/Versions/2.5/Extras/lib/python/PyOb
jCTools/AppHelper.py
", line 235, in runEventLoop
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197]   File 
"/Applications/namebench.app/Contents/Resources/controller.py", line 79, in 
startJob_
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197]     
self.ProcessForm()
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197]   File 
"/Applications/namebench.app/Contents/Resources/controller.py", line 117, in 
ProcessForm
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197]     
self.options.input_source = 
self.data_src.ConvertSourceTitleToType(self.data_source.titleOfSelectedItem())
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197]   File 
"/Applications/namebench.app/Contents/Resources/libnamebench/data_sources.py", 
line 124, in 
ConvertSourceTitleToType
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197]     if 
detail.startswith(self.source_config[source_type]['name']):
17/05/2010 13:44:42 [0x0-0x23023].org.opensource.namebench[197] AttributeError: 
'NoneType' 
object has no attribute 'startswith'

Original comment by virtualt...@gmail.com on 17 May 2010 at 12:48

GoogleCodeExporter commented 8 years ago
Thanks for the console output! It appears the bug is caused because namebench 
is not able to find a suitable 
source of test data. Part of this is due to the inadvertent expiry of the 
built-in Alexa data - see issue 116

However, in your case, it is also ignoring the Safari history because the file 
is suspiciously small. Either this file 
is no longer where history is stored in Mac OS X 10.6, or your web browser has 
not been to very many 
websites. Is this a brand new install of Mac OS X 10.6?

If I recall, Safari does not write its history file until the browser has 
exited. It may be possible that the browser 
has not exited in a very long time. Can you try quitting Safari and see if 
namebench works then?

Either way - this bug should be fixed in the upcoming namebench 1.3 beta.

Original comment by helixblue on 17 May 2010 at 12:55

GoogleCodeExporter commented 8 years ago
It's not a fresh install of Mac OS, and I use the browser alot, although I am 
in the habit of using the "Reset Safari" 
option to clear any temporary/cache files the browser may leave. I like to keep 
my system clean (habit from my 
days using windows and it's endless build up of temporary crap all over the 
system)

Original comment by virtualt...@gmail.com on 19 May 2010 at 6:23

GoogleCodeExporter commented 8 years ago
Can you try the newly released namebench 1.3-BETA1 to see if it resolves this 
bug?

Original comment by helixblue on 20 May 2010 at 3:20

GoogleCodeExporter commented 8 years ago
1.3-BETA1 works a treat :D thankyou

Original comment by virtualt...@gmail.com on 20 May 2010 at 7:09

GoogleCodeExporter commented 8 years ago
Thanks!

Original comment by helixblue on 20 May 2010 at 11:24