faint-holiday-3863
07/18/2016, 11:04 PMrough-minister-58256
07/19/2016, 12:08 AMAttributeError
from earlier: https://github.com/pantsbuild/pex/pull/292rough-minister-58256
07/19/2016, 12:09 AMpex.executor.Executor.ExecutionError: PermissionError(13, 'Permission denied') while trying to execute `/private/var/folders/3t/xkwqrkld4xxgklk2s4n41jb80000gn/T/tmpkux_60jg/tmp`
rough-minister-58256
07/19/2016, 12:12 AMfaint-holiday-3863
07/19/2016, 6:48 AM””
rough-minister-58256
07/19/2016, 6:49 AMrough-minister-58256
07/19/2016, 6:49 AM[illuminati ~]$ pex requests -o /tmp/throwaway.pex
[illuminati ~]$ /tmp/throwaway.pex
Python 2.7.10 (default, Dec 16 2015, 14:09:45)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
(InteractiveConsole)
>>> import sys
>>> sys.executable
'/opt/twitter_mde/package/python2.7/current/bin/python'
>>>
faint-holiday-3863
07/19/2016, 6:50 AMprint “CURRENT PYTHON: %s” % sys.executable
in the main module of a pex and got:faint-holiday-3863
07/19/2016, 6:51 AMCURRENT PYTHON:
rough-minister-58256
07/19/2016, 6:51 AMsys.executable
A string giving the absolute path of the executable binary for the Python interpreter, on systems where this makes sense. If Python is unable to retrieve the real path to its executable, sys.executable will be an empty string or None.
faint-holiday-3863
07/19/2016, 6:51 AMrough-minister-58256
07/19/2016, 6:51 AMfaint-holiday-3863
07/19/2016, 6:51 AMrough-minister-58256
07/19/2016, 6:51 AMrough-minister-58256
07/19/2016, 6:51 AMfaint-holiday-3863
07/19/2016, 6:52 AMfaint-holiday-3863
07/19/2016, 6:52 AM<e55476a949b9dc1d4a94e1b8/execroot/bazel_rules_pex$ python
Python 2.7.6 (default, Jun 22 2015, 17:58:13)
[GCC 4.8.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.executable
‘’
rough-minister-58256
07/19/2016, 6:52 AMfaint-holiday-3863
07/19/2016, 6:52 AMfaint-holiday-3863
07/19/2016, 6:53 AMfaint-holiday-3863
07/19/2016, 6:54 AMfaint-holiday-3863
07/19/2016, 7:02 AMfaint-holiday-3863
07/19/2016, 7:18 AMfaint-holiday-3863
07/19/2016, 7:18 AMfaint-holiday-3863
07/19/2016, 7:43 AMfaint-holiday-3863
07/19/2016, 7:44 AMTraceback (most recent call last):
File ".bootstrap/_pex/pex.py", line 328, in execute
File ".bootstrap/_pex/pex.py", line 260, in _wrap_coverage
File ".bootstrap/_pex/pex.py", line 292, in _wrap_profiling
File ".bootstrap/_pex/pex.py", line 371, in _execute
File ".bootstrap/_pex/pex.py", line 429, in execute_entry
File ".bootstrap/_pex/pex.py", line 434, in execute_module
File "/usr/lib/python2.7/runpy.py", line 180, in run_module
fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/var/tmp/benley-bazel-cache/_bazel_bstaffin/fe5f64f9e55476a949b9dc1d4a94e1b8/execroot/bazel_rules_pex/bazel-out/local-fastbuild/genfiles/pex/pex_wrapper.pex/.deps/pex_wrapper-0.0.0-py2.7.egg/pex_wrapper.py", line 140, in <module>
File "/var/tmp/benley-bazel-cache/_bazel_bstaffin/fe5f64f9e55476a949b9dc1d4a94e1b8/execroot/bazel_rules_pex/bazel-out/local-fastbuild/genfiles/pex/pex_wrapper.pex/.deps/pex_wrapper-0.0.0-py2.7.egg/pex_wrapper.py", line 135, in main
File "/nonexistent/.pex/install/pex-1.1.13-py2.py3-none-any.whl.54e2486bd5c6fda99021a6500098c4976315d6fc/pex-1.1.13-py2.py3-none-any.whl/pex/pex_builder.py", line 424, in build
self.freeze(bytecode_compile=bytecode_compile)
File "/nonexistent/.pex/install/pex-1.1.13-py2.py3-none-any.whl.54e2486bd5c6fda99021a6500098c4976315d6fc/pex-1.1.13-py2.py3-none-any.whl/pex/pex_builder.py", line 408, in freeze
self._prepare_bootstrap()
File "/nonexistent/.pex/install/pex-1.1.13-py2.py3-none-any.whl.54e2486bd5c6fda99021a6500098c4976315d6fc/pex-1.1.13-py2.py3-none-any.whl/pex/pex_builder.py", line 370, in _prepare_bootstrap
for fn, content_stream in DistributionHelper.walk_data(setuptools):
File "/nonexistent/.pex/install/pex-1.1.13-py2.py3-none-any.whl.54e2486bd5c6fda99021a6500098c4976315d6fc/pex-1.1.13-py2.py3-none-any.whl/pex/util.py", line 27, in walk_data
for fn, stream in cls.walk_data(dist, full_fn):
File "/nonexistent/.pex/install/pex-1.1.13-py2.py3-none-any.whl.54e2486bd5c6fda99021a6500098c4976315d6fc/pex-1.1.13-py2.py3-none-any.whl/pex/util.py", line 30, in walk_data
yield full_fn[1:], dist.get_resource_stream(dist._provider, full_fn)
File ".bootstrap/pkg_resources.py", line 1467, in get_resource_stream
IOError: [Errno 2] No such file or directory: u'/usr/lib/python3/dist-packages/DistUpgrade/NvidiaDetector’
faint-holiday-3863
07/19/2016, 7:45 AMrough-minister-58256
07/19/2016, 7:47 AMrough-minister-58256
07/19/2016, 7:47 AMrough-minister-58256
07/19/2016, 7:47 AM