flier / pyfasthash

Python Non-cryptographic Hash Library
Apache License 2.0
281 stars 52 forks source link

I can't install PyHash / PyFastHash #62

Open HGStyle opened 2 years ago

HGStyle commented 2 years ago

I cannot install pyhash / pyfasthash. I updated pip, setuptools and wheels to the latest version. My terminal :

HGStyle@mxlinux1:~
$ pip install pyhash
Defaulting to user installation because normal site-packages is not writeable
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]
      /home/HGStyle/.local/lib/python3.7/site-packages/setuptools/config/setupcfg.py:463: SetuptoolsDeprecationWarning: The license_file parameter is deprecated, use license_files instead.
        warnings.warn(msg, warning_class)
      /home/HGStyle/.local/lib/python3.7/site-packages/setuptools/installer.py:30: SetuptoolsDeprecationWarning: setuptools.installer is deprecated. Requirements should be satisfied by a PEP 517 installer.
        SetuptoolsDeprecationWarning,
      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.

I dont know how to install it, without errors. Can someone help me ?

flc commented 2 years ago

check #60 and #59 If you want to install 0.9.3 you have to downgrade setuptools to 58 since it removed support for 2to3 during builds. :(

pip install setuptools==58

PATAPOsha commented 1 year ago

I think it is time to remove that redundant requirement setuptools==58. It makes in difficult to use with pipenv:

Installing collected packages: setuptools
  Attempting uninstall: setuptools
    WARNING: Ignoring invalid distribution -ymongo (/Users/pata/.pyenv/versions/3.9.13/envs/autods_33/lib/python3.9/site-packages)
    Found existing installation: setuptools 68.2.2
    Uninstalling setuptools-68.2.2:
      Successfully uninstalled setuptools-68.2.2
WARNING: Ignoring invalid distribution -ymongo (/Users/pata/.pyenv/versions/3.9.13/envs/autods_33/lib/python3.9/site-packages)
ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
pipenv 2023.3.20 requires setuptools>=67.0.0, but you have setuptools 58.0.0 which is incompatible.