[PyPy-issue] [issue687] Patch to make the generated C filenames reflect the RPython source filenames

Dave Malcolm pypy-dev-issue at codespeak.net
Wed Apr 20 20:56:45 CEST 2011


Dave Malcolm <dmalcolm at redhat.com> added the comment:

The http://bitbucket.org/pypy/benchmarks suite doesn't seem to have a "-v" option (I'm looking at "runner.py")  Were you referring to the 
hg.python.org/benchmarks suite?

There doesn't appear to be any documentation on running the latter benchmark suite.

I tried running 
$ ./runner.py \
  --baseline=../../pypy-dmalcolm-bitbucket/pypy-c-filenames/pypy/translator/goal/pypy-c-without-patch \
  --pypy-c=../../pypy-dmalcolm-bitbucket/pypy-c-filenames/pypy/translator/goal/pypy-c-with-patch-v2 

and it appeared to be comparing the control and experiment, but it eventually died with this ImportError.  Is there some installation method 
needed by the benchmark suite, or should I be setting PYTHONPATH?


Traceback (most recent call last):
  File "./runner.py", line 113, in <module>
    main(sys.argv[1:])
  File "./runner.py", line 110, in main
    baseline=options.baseline, full_store=options.full_store)
  File "./runner.py", line 27, in run_and_store
    results = perf.main(opts, funcs)
  File "/home/david/coding/pypy-dmalcolm-bitbucket/benchmarks/unladen_swallow/perf.py", line 1608, in main
    options)))
  File "/home/david/coding/pypy-dmalcolm-bitbucket/benchmarks/benchmarks.py", line 35, in BM
    return SimpleBenchmark(Measure, *args, **kwds)
  File "/home/david/coding/pypy-dmalcolm-bitbucket/benchmarks/unladen_swallow/perf.py", line 455, in SimpleBenchmark
    *args, **kwargs)
  File "/home/david/coding/pypy-dmalcolm-bitbucket/benchmarks/benchmarks.py", line 31, in Measure
    return MeasureGeneric(python, options, bm_path, parser=parser, **opts)
  File "/home/david/coding/pypy-dmalcolm-bitbucket/benchmarks/unladen_swallow/perf.py", line 804, in MeasureGeneric
    inherit_env=options.inherit_env)
  File "/home/david/coding/pypy-dmalcolm-bitbucket/benchmarks/unladen_swallow/perf.py", line 760, in CallAndCaptureOutput
    raise RuntimeError("Benchmark died: " + err)
RuntimeError: Benchmark died: Traceback (most recent call last):
  File "app_main.py", line 53, in run_toplevel
  File "/home/david/coding/pypy-dmalcolm-bitbucket/benchmarks/own/twisted/iteration.py", line 4, in <module>
    from benchlib import Client, driver
  File "/home/david/coding/pypy-dmalcolm-bitbucket/benchmarks/own/twisted/benchlib.py", line 3, in <module>
    from twisted.internet.defer import Deferred
ImportError: No module named twisted

_______________________________________________________
PyPy development tracker <pypy-dev-issue at codespeak.net>
<https://codespeak.net/issue/pypy-dev/issue687>
_______________________________________________________



More information about the Pypy-issue mailing list