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

pip install fails: "use_2to3 is invalid." #44

Closed
wm1995 opened this issue Mar 27, 2023 · 0 comments · Fixed by #45
Closed

pip install fails: "use_2to3 is invalid." #44

wm1995 opened this issue Mar 27, 2023 · 0 comments · Fixed by #45

Comments

@wm1995
Copy link
Contributor

wm1995 commented Mar 27, 2023

This package can't be pip-installed into a recent version of Python anymore, failing with a "use_2to3 is invalid" error.

OS: macOS Ventura 13.0
Python: 3.10.4
pip: 22.0.4
setuptools: 58.1.0

Traceback:

$ pip install git+https://github.com/tholoien/XDGMM.git
Collecting git+https://github.com/tholoien/XDGMM.git
  Cloning https://github.com/tholoien/XDGMM.git to /private/var/folders/py/8rsdjzhn0m7002gd477mj20w0000gn/T/pip-req-build-svmatg8v
  Running command git clone --filter=blob:none --quiet https://github.com/tholoien/XDGMM.git /private/var/folders/py/8rsdjzhn0m7002gd477mj20w0000gn/T/pip-req-build-svmatg8v
  Resolved https://github.com/tholoien/XDGMM.git to commit bf2c38c37485c05b3ea48d4479139bf6760b6d27
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error

  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [1 lines of output]
      error in xdgmm setup command: use_2to3 is invalid.
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
error: metadata-generation-failed

× Encountered error while generating package metadata.
╰─> See above for output.

note: This is an issue with the package mentioned above, not pip.
hint: See above for details.

The error comes about because, as of setuptools>58.0.0, use_2to3 has been removed from the package (see pypa/setuptools#2086 and the underlying python/cpython#84540).

I'm happy to put in a PR to convert the package to Python 3 if that would be desired.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant