melodic-thailand-99227
10/31/2021, 12:31 PMpython_tests
use the virtualenv instead of pex?enough-analyst-54434
10/31/2021, 1:18 PM--venv
mode. That mode creates a venv (using python -mvenv ...
), populates it with the contents of the PEX and runs from there.
Are you seeing unexpected behavior?melodic-thailand-99227
10/31/2021, 2:34 PMmelodic-thailand-99227
10/31/2021, 2:43 PM298.88s Building requirements.pex with 94 requirements: ...
enough-analyst-54434
10/31/2021, 2:57 PMenough-analyst-54434
10/31/2021, 3:02 PMmelodic-thailand-99227
10/31/2021, 3:05 PMenough-analyst-54434
10/31/2021, 3:06 PMenough-analyst-54434
10/31/2021, 3:07 PMenough-analyst-54434
10/31/2021, 3:09 PMmelodic-thailand-99227
10/31/2021, 3:10 PMrepository.pex
I’m getting OSError: [Errno 36] File name too long:
on this call stack
ProcessExecutionFailure: Process 'Extracting urllib3==1.26.7; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.6.0" and python_version < "4" or python_full_version >= "3.5.3" and python_version < "4" or python_full_version >= "3.5.0" and python_version < "4" from repository.pex' failed with exit code 1.
stdout:
stderr:
Traceback (most recent call last):
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.bootstrap/pex/pex.py", line 483, in execute
exit_value = self._wrap_coverage(self._wrap_profiling, self._execute)
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.bootstrap/pex/pex.py", line 401, in _wrap_coverage
return runner(*args)
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.bootstrap/pex/pex.py", line 432, in _wrap_profiling
return runner(*args)
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.bootstrap/pex/pex.py", line 539, in _execute
return self.execute_entry(self._pex_info.entry_point)
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.bootstrap/pex/pex.py", line 655, in execute_entry
return self.execute_pkg_resources(entry_point)
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.bootstrap/pex/pex.py", line 687, in execute_pkg_resources
return runner()
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.deps/pex-2.1.44-py2.py3-none-any.whl/pex/bin/pex.py", line 1159, in main
pex_builder.build(
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.deps/pex-2.1.44-py2.py3-none-any.whl/pex/pex_builder.py", line 651, in build
with safe_open(tmp_zip, "ab") as pexfile:
File "/home/ubuntu/.cache/pants/named_caches/pex_root/unzipped_pexes/592827b562c4aa09c1e9af6b3ed7b797eef1a4dc/.deps/pex-2.1.44-py2.py3-none-any.whl/pex/common.py", line 282, in safe_open
return open(filename, *args, **kwargs) # noqa: T802
melodic-thailand-99227
10/31/2021, 3:12 PMOSError: [Errno 36] File name too long: '__reqs/urllib3==1.26.7_ python_version >= _2.7_ and python_full_version < _3.0.0_ or python_full_version >= _3.6.0_ and python_version < _4_ or python_full_version >= _3.5.3_ and python_version < _4_ or python_full_version >= _3.5.0_ and python_version < _4_.pex~'
melodic-thailand-99227
10/31/2021, 3:12 PMenough-analyst-54434
10/31/2021, 3:17 PMmelodic-thailand-99227
10/31/2021, 3:20 PMenough-analyst-54434
10/31/2021, 3:21 PMenough-analyst-54434
10/31/2021, 3:22 PMmelodic-thailand-99227
10/31/2021, 3:23 PM2.7.0
but I’m doing a PoC so I can use any version which you think will make my journey betterenough-analyst-54434
10/31/2021, 3:23 PMmelodic-thailand-99227
10/31/2021, 3:31 PMmelodic-thailand-99227
10/31/2021, 3:32 PMenough-analyst-54434
10/31/2021, 3:32 PMenough-analyst-54434
10/31/2021, 3:32 PMenough-analyst-54434
10/31/2021, 3:33 PM