KeyError: 'SPECfp_rate2006'
Closed this issue · 4 comments
Hi,
thanks for the scripts ... I apreciate the work!
Can you please help me out with the following error:
Analyzing 56100/58082 ...
Analyzing 56200/58082 ...
Analyzing 56300/58082 ...
Traceback (most recent call last):File "", line 1, in
runfile('C:/Users/MRMoeR114-admin/Documents/GitHub/analyze-spec-benchmarks/analyze-pages.py', wdir='C:/Users/MRMoeR114-admin/Documents/GitHub/analyze-spec-benchmarks')File "C:\ProgramData\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 710, in runfile
execfile(filename, namespace)File "C:\ProgramData\Anaconda2\lib\site-packages\spyder\utils\site\sitecustomize.py", line 86, in execfile
exec(compile(scripttext, filename, 'exec'), glob, loc)File "C:/Users/MRMoeR114-admin/Documents/GitHub/analyze-spec-benchmarks/analyze-pages.py", line 249, in
iterRecords()File "C:/Users/MRMoeR114-admin/Documents/GitHub/analyze-spec-benchmarks/analyze-pages.py", line 231, in iterRecords
t, b = func(arg)File "C:/Users/MRMoeR114-admin/Documents/GitHub/analyze-spec-benchmarks/analyze-pages.py", line 186, in parse2006
}[benchType]KeyError: 'SPECfp_rate2006'
The fetching works perfectly as does the make_graphs.py (tested with the prepared files).
Thanks in advance
Hi mo-ca, if you can get the value of path
at the time when the exception is raised, it should tell you which file it is failing on. Use a debugger or add some print
statements.
Hi preshing,
thanks for your reply. The file raising the error is:
\cpu2006[cpu2006-20170918-49394.txt](https://github.com/preshing/analyze-spec-benchmarks/files/1635292/cpu2006-20170918-49394.txt)
Perhaps they changed the syntax a bit. Can you help with that?
The problem is that line 81 of the file you linked doesn't match what analyze-pages.py
expects. I submitted a possible fix -- it's totally untested, but you can give it a try.
thanks a lot ... seems to be working