RedditRefresh icon indicating copy to clipboard operation
RedditRefresh copied to clipboard

pycrypto install issues

Open georgeconstanza opened this issue 8 months ago • 3 comments

Hello, thanks for your lovely project! Upon installing requirements.txt, I get the error below. Seems that with pycrypto hasn't been maintained since 2022. Replacing it with pycryptodome is suggested. Thoughts?

Building wheel for pycrypto (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      C:\Users\%username%\AppData\Local\Temp\pip-build-env-ltc7p2wz\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: Public Domain

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
      winrand.c
      C:\Users\%username%\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycrypto
Failed to build pycrypto
ERROR: Failed to build installablpip uninstall pycryptooject.toml based projects (pycrypto)

georgeconstanza avatar Mar 31 '25 14:03 georgeconstanza

Seems to be an issue on Windows, did not face this on Mac or Linux. However if you want to use the tool for DELETION or HASHING, this is not required and you can proceed with using the script.

However I'll be addressing this issue soon.

karan51ngh avatar Apr 06 '25 12:04 karan51ngh

I ran into the same issue using Windows. It causes the installation of the other packages to fail, so the script can't be run without adjusting the requirements file or manually installing the other packages. I didn't need to encrypt, so it worked fine without pycrypto.

mikeyr00r00 avatar Aug 27 '25 20:08 mikeyr00r00

Hello, thanks for your lovely project! Upon installing requirements.txt, I get the error below. Seems that with pycrypto hasn't been maintained since 2022. Replacing it with pycryptodome is suggested. Thoughts?

Building wheel for pycrypto (pyproject.toml) did not run successfully.
  │ exit code: 1
  ╰─> [17 lines of output]
      C:\Users\%username%\AppData\Local\Temp\pip-build-env-ltc7p2wz\overlay\Lib\site-packages\setuptools\dist.py:759: SetuptoolsDeprecationWarning: License classifiers are deprecated.
      !!

              ********************************************************************************
              Please consider removing the following classifiers in favor of a SPDX license expression:

              License :: Public Domain

              See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
              ********************************************************************************

      !!
        self._finalize_license_expression()
      warning: GMP or MPIR library not found; Not building Crypto.PublicKey._fastmath.
      winrand.c
      C:\Users\%username%\AppData\Local\Programs\Python\Python310\include\pyconfig.h(59): fatal error C1083: Cannot open include file: 'io.h': No such file or directory
      error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio\\2022\\BuildTools\\VC\\Tools\\MSVC\\14.41.34120\\bin\\HostX86\\x64\\cl.exe' failed with exit code 2
      [end of output]

  note: This error originates from a subprocess, and is likely not a problem with pip.
  ERROR: Failed building wheel for pycrypto
Failed to build pycrypto
ERROR: Failed to build installablpip uninstall pycryptooject.toml based projects (pycrypto)

not a issue here on fedora linux

aamaanaa avatar Oct 29 '25 02:10 aamaanaa