camelot-dev / camelot-dev/excalibur

Error building with pip

Open
#202 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
1.8k
Forks
238
PR merge metrics
No merged PRs in 30d

Description

Attempting to build with pip generates the following error. I have installed ghostscript and MS Visual C++ tools as mentioned in the output.

```
Building wheels for collected packages: pycrypto
Building wheel for pycrypto (pyproject.toml) ... error
error: subprocess-exited-with-error

× Building wheel for pycrypto (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [15 lines of output]
C:\Users\username\AppData\Local\Temp\pip-build-env-p29hjsty\overlay\Lib\site-packages\setuptools\dist.py:765: 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.
error: Microsoft Visual C++ 14.0 or greater is required. Get it with "Microsoft C++ Build Tools": https://visualstudio.microsoft.com/visual-cpp-build-tools/
[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-wheel-build-for-install

× Failed to build installable wheels for some pyproject.toml based projects
╰─> pycrypto
```

Contributor guide

Open the contributing guide

Research direction

Reproduce the Windows installation with pip and review the pyproject.toml build configuration referenced in the error. Check how the pycrypto dependency is selected and whether the documented installation path covers the reported compiler requirement; done means the package installs successfully without the failed-wheel error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.