[docs] [issue15964] SyntaxError in asdl when building 2.7 with system Python 3
report at bugs.python.org
Mon Sep 24 05:37:48 CEST 2012
Chris Jerdonek added the comment:
> So can you find out why asdl_c.py actually printed this error?
I collected some additional information. Here is the beginning of Parser/asdl_c.py:
#! /usr/bin/env python
"""Generate C code from an ASDL description."""
And in the scenario of this issue I have--
-bash: /opt/local/Library/Frameworks/Python.framework/Versions/Current/bin/python: No such file or directory
$ /usr/bin/env python -V
Some more data:
$ /usr/bin/env python -c "import sys; print(sys.executable)"
$ echo $PATH
$ which python
$ /opt/local/bin/python -c "import sys; print(sys.executable)"
It's not immediately clear to me why running `python` doesn't find python in the second $PATH entry even though `which python` does. Also, creating a new terminal doesn't seem to exhibit the same problem, so the error state may not be fully reproducible after all (at least on my machine).
In any case, Christian's work-around does resolve the issue for this particular error state while other solutions don't.
Python tracker <report at bugs.python.org>
More information about the docs