Local setup issue
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- python
- Domain
- build-system
Research direction
Start by reproducing the installation from requirements/docs.txt in a Python 3.11 virtual environment and inspect the M2Crypto build output, especially the swig.exe failure. Determine the expected supported setup from the repository's dependency configuration. Done means the documented installation completes successfully on the reported environment or clearly documents the required limitation.
Written by the indexing model from the issue text.
Description
I cloned this repository to work on the issues, but while setting up the project locally, I got an issue.
Here are the steps that I followed:
- Cloned the repo
- Created a python virtual environment with
python -m venv .venv - After activating the environment, I ran the command
pip install -r requirements/docs.txt
While installing I got the following error:
Building wheel for M2Crypto (pyproject.toml) ... error
error: subprocess-exited-with-error
× Building wheel for M2Crypto (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [47 lines of output]
INFO:run_command:running bdist_wheel
INFO:run_command:running build
INFO:run_command:running build_py
INFO:copy_file:copying M2Crypto\ASN1.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\AuthCookie.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\BIO.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\BN.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\callback.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\DH.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\DSA.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\EC.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\Engine.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\Err.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\EVP.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\ftpslib.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\httpslib.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\m2.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\m2crypto.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\m2urllib.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\m2urllib2.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\m2xmlrpclib.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\Rand.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\RC4.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\RSA.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\six.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\SMIME.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\threading.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\util.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\X509.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:copy_file:copying M2Crypto\__init__.py -> build\lib.win-amd64-cpython-311\M2Crypto
INFO:mkpath:creating build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\cb.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\Checker.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\Cipher.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\Connection.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\Context.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\Session.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\SSLServer.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\ssl_dispatcher.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\timeout.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\TwistedProtocolWrapper.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:copy_file:copying M2Crypto\SSL\__init__.py -> build\lib.win-amd64-cpython-311\M2Crypto\SSL
INFO:run_command:running build_ext
INFO:build_extension:building 'M2Crypto._m2crypto' extension
INFO:swig_sources:swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c
INFO:spawn:swig.exe -python -py3 -IC:\Users\piyus\OneDrive\Desktop\Codelab\Dev\OS\morango\.venv\include -IC:\Python311\include -IC:\Python311\Include -I/usr/include/openssl -includeall -modern -builtin -outdir C:\Users\piyus\AppData\Local\Temp\pip-install-06abxc6c\m2crypto_8cce61924ad54cea9ce688d251a67eed\M2Crypto -o SWIG/_m2crypto_wrap.c SWIG/_m2crypto.i
error: command 'swig.exe' failed: None
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for M2Crypto
Versions that I am using:
python 3.11.4
pip 23.1.2
setuptools 65.5.0
- Dominant language
- Python
- Stars
- 15
- Forks
- 23
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 4
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from learningequality/morango
-
DEV: dev-ops DEV: distributions DOCS: developer
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
learningequality/morango#387 ·
-
DEV: backend DEV: dev-ops TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
learningequality/morango#385 ·
-
DEV: backend P0 - critical TAG: tech update / debt TAG: unit tests
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
learningequality/morango#364 ·
-
DEV: backend TAG: new feature
Difficulty 5/5 Over a week Newbie friendliness 10/100
learningequality/morango#388 ·
-
DEV: backend TAG: unit tests
Difficulty 4/5 3-5 days Newbie friendliness 55/100
learningequality/morango#386 ·
All issues in learningequality/morango
Similar issues
-
namespace operations
Difficulty 1/5 Under an hour Newbie friendliness 72/100
EclipseFdn/open-vsx.org#13737 ·
Maintainers usually reply within 1 day
-
Zero-token evaluations are treated as missing cost in selectionPossibly taken @sylvesterkaczmarek claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
google-research/rrsi#6 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
aws-samples/sample-aws-genai-db-modernizer#294 ·
Maintainers usually reply within 1 day
-
feedback simulation workshop
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
githubnext/gh-aw-workshop#4174 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
WingedGuardian/GENesis-AGI#2852 ·
Maintainers usually reply within 1 day