Quick question: will pants (1.26.0rc1) be impacted...
# general
Quick question: will pants (1.26.0rc1) be impacted by the installed version of
from local system? (I am helping a college to debug build failure remotely and the error message suggest it is pip and setuptool related)
Pants and Pex - which it uses to execute python tools and code - have attempted to isolate themselves from installed versions of requirements since inception. There have been bugs in the past, but generally, you should expect Pants and Pex to ignore installed versions of distributions.
Encountered this issue yesterday with one of of our developer:
Copy code
17:28:32 00:21     [requirements]
17:28:32 00:21       [cache]                              
                   No cached artifacts for 30 targets.
                   Invalidated 30 targets.  ERROR: Command errored out with exit status 1:
   command: /usr/bin/python3.6 /tmp/tmp4rxujdkv/.deps/pip/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpr1c3sul1
       cwd: /tmp/pip-download-9gm4fzms/ujson
  Complete output (10 lines):
  Traceback (most recent call last):
    File "/tmp/tmp4rxujdkv/.deps/pip/pip/_vendor/pep517/_in_process.py", line 257, in <module>
    File "/tmp/tmp4rxujdkv/.deps/pip/pip/_vendor/pep517/_in_process.py", line 240, in main
      json_out['return_val'] = hook(**hook_input['kwargs'])
    File "/tmp/tmp4rxujdkv/.deps/pip/pip/_vendor/pep517/_in_process.py", line 85, in get_requires_for_build_wheel
      backend = _build_backend()
    File "/tmp/tmp4rxujdkv/.deps/pip/pip/_vendor/pep517/_in_process.py", line 76, in _build_backend
      obj = getattr(obj, path_part)
  AttributeError: module 'setuptools.build_meta' has no attribute '__legacy__'
ERROR: Command errored out with exit status 1: /usr/bin/python3.6 /tmp/tmp4rxujdkv/.deps/pip/pip/_vendor/pep517/_in_process.py get_requires_for_build_wheel /tmp/tmpr1c3sul1 Check the logs for full command output.
               Waiting for background workers to finish.
17:28:52 00:41   [complete]
thought it might be related to: https://github.com/pypa/pip/issues/6264 Issue was resolved after
Copy code
python3 -m pip install pip setuptools --upgrade
OK - that sounds like a Pex bug to me. If you have time to narrow down to the distribution being installed in that backtrace, that would be the key needed to debug. It looks like
? If that's correct - do you know the version?
Let me try to create a minimum reproducing environment and get back to you
👍 1