Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

./pants export :: breaks in example-python with 2.11.x #15273

Closed
stuhood opened this issue Apr 27, 2022 · 3 comments
Closed

./pants export :: breaks in example-python with 2.11.x #15273

stuhood opened this issue Apr 27, 2022 · 3 comments
Labels
Milestone

Comments

@stuhood
Copy link
Member

stuhood commented Apr 27, 2022

Describe the bug
In pantsbuild/example-python#100, with either lockfile format, ./pants export :: renders the following error:

  File "/Users/stuhood/.pex/installed_wheels/81c06b5d43e95626f8e7265d8d9bc14ffa7e43206ab96e13882aad4c45dbe099/pex-2.1.80-py2.py3-none-any.whl/pex/environment.py", line 492, in resolve
    for fingerprinted_distribution in self.resolve_dists(all_reqs)
  File "/Users/stuhood/.pex/installed_wheels/81c06b5d43e95626f8e7265d8d9bc14ffa7e43206ab96e13882aad4c45dbe099/pex-2.1.80-py2.py3-none-any.whl/pex/environment.py", line 516, in resolve_dists
    for qualified_req_or_not_found in self._root_requirements_iter(reqs):
  File "/Users/stuhood/.pex/installed_wheels/81c06b5d43e95626f8e7265d8d9bc14ffa7e43206ab96e13882aad4c45dbe099/pex-2.1.80-py2.py3-none-any.whl/pex/environment.py", line 457, in _root_requirements_iter
    raise ResolveError(message)
pex.environment.ResolveError: A distribution for setuptools could not be resolved in this environment.Found 1 distribution for setuptools that do not apply:
1.) The wheel tags for setuptools 56.2.0 are py3-none-any which do not match the supported tags of /Users/stuhood/.pyenv/versions/2.7.17/bin/python2.7:
cp27-cp27m-macosx_10_16_x86_64
cp27-cp27m-macosx_10_16_intel

<snip long list of tags>

14:31:34.47 [ERROR] 1 Exception encountered:

  ExportError: Failed to write virtualenv for the resolve 'python-default' (using CPython==3.7.*) to dist/export/python/virtualenvs/python-default

Pants version
2.11.0rc5 (2.10.0 works)

OS
macOS

@stuhood
Copy link
Member Author

stuhood commented Apr 27, 2022

cc @benjyw

@benjyw
Copy link
Contributor

benjyw commented Apr 30, 2022

I don't repro this.
But I do wonder why your error message mentions your pyenv-installed python 2.7?

@stuhood
Copy link
Member Author

stuhood commented May 2, 2022

Confirmed that #15294 fixes this for me. Thanks!

@stuhood stuhood closed this as completed May 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants