New submission from Peter Xu <[email protected]>:
When running python pypy_interact.py path/to/pypy-c-sandbox, we get:
$ python pypy_interact.py ../goal/pypy-c-sandbox
Traceback (most recent call last):
File "pypy_interact.py", line 25, in <module>
from rpython.translator.sandbox.sandlib import SimpleIOSandboxedProc
ImportError: No module named rpython.translator.sandbox.sandlib
This is because of the line:
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__),
'..', '..', '..')))
Which doesn't work for the new directory structure (it used to be
pypy/translator/sandbox rather than pypy/sandbox).
Substituting in
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__),
'..', '..')))
fixes the problem.
________________________________________
PyPy bug tracker <[email protected]>
<https://bugs.pypy.org/issue1742>
________________________________________
_______________________________________________
pypy-issue mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-issue