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

Cannot pip install if setuptools is too new #100

Open
boxydog opened this issue Mar 31, 2023 · 0 comments
Open

Cannot pip install if setuptools is too new #100

boxydog opened this issue Mar 31, 2023 · 0 comments

Comments

@boxydog
Copy link

boxydog commented Mar 31, 2023

I get the error shown below if I try with setuptools 67.2.0 or 67.6.1 (latest).

Install works if I install setuptools 57.5.0. (Got the idea from https://stackoverflow.com/a/71160711.)

I'm using python 3.10 on OS X Monterey.

=====

Failure:

$ pip install pyhash
Collecting pyhash
  Using cached pyhash-0.9.3.tar.gz (602 kB)
  Preparing metadata (setup.py) ... error
  error: subprocess-exited-with-error
  
  × python setup.py egg_info did not run successfully.
  │ exit code: 1
  ╰─> [5 lines of output]
      .../.venv/lib/python3.10/site-packages/setuptools/config/setupcfg.py:520: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      .../.venv/lib/python3.10/site-packages/setuptools/installer.py:27: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        warnings.warn(
      error in pyhash 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.

Install:

$ python -m pip install 'setuptools~=57.5.0'

Success:

$ pip install pyhash
Collecting pyhash
  Using cached pyhash-0.9.3.tar.gz (602 kB)
  Preparing metadata (setup.py) ... done
Building wheels for collected packages: pyhash
  Building wheel for pyhash (setup.py) ... done
  Created wheel for pyhash: filename=pyhash-0.9.3-cp310-cp310-macosx_12_0_x86_64.whl size=238736 sha256=3da38e69439a77c4b96732c0a5a1c0df6931aeb53107ba2bc11891c330ba76d3
  Stored in directory: .../Library/Caches/pip/wheels/ec/fb/f9/713f04bcf2eb9e554d71037af1096c3d0355e8daebd144690b
Successfully built pyhash
Installing collected packages: pyhash
Successfully installed pyhash-0.9.3
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

No branches or pull requests

1 participant