few-alarm-32433
03/26/2019, 1:44 AMaloof-angle-91616
03/26/2019, 1:46 AMaloof-angle-91616
03/26/2019, 1:46 AMenough-analyst-54434
03/26/2019, 5:05 AM['/usr/local/bin/python']
That says PEX is trying to execute a path that looks like a python singleton array literal. Are there relevant bits of your pants.ini this calls to mind that you could paste?enough-analyst-54434
03/26/2019, 12:32 PMfew-alarm-32433
03/26/2019, 3:07 PMenough-analyst-54434
03/26/2019, 3:25 PMdiff --git a/pex/interpreter.py b/pex/interpreter.py
index db8760a..130a3ed 100644
--- a/pex/interpreter.py
+++ b/pex/interpreter.py
@@ -320,8 +320,12 @@ class PythonInterpreter(object):
for fn in cls.expand_path(path):
basefile = os.path.basename(fn)
if hashbang == basefile:
+ from pex.executor import Executor
try:
return cls.from_binary(fn)
+ except Executor.NonZeroExit as e:
+ TRACER.log('Could not identify %s: %s\nSTDOUT:\n%s\nSTDERR:\n%s'
+ % (fn, e, e.stdout, e.stderr))
except Exception as e:
TRACER.log('Could not identify %s: %s' % (fn, e))
enough-analyst-54434
03/26/2019, 3:27 PMbuild-support/pants_dev_deps.py37.venv/lib/python3.7/site-packages/pex/interpreter.py
enough-analyst-54434
03/26/2019, 3:28 PMfew-alarm-32433
03/26/2019, 3:32 PMpip freeze
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Could not parse requirement: -sycopg2
Could not parse requirement: -orchfile
Could not parse requirement: -
absl-py==0.7.0
agate==1.6.1
agate-dbf==0.2.0
agate-excel==0.2.2
agate-sql==0.5.3
alembic==0.8.10
ansicolors==1.0.2
So something seemed to have gone wrong with my pythonsenough-analyst-54434
03/26/2019, 3:36 PM