learningequality / learningequality/morango

Local setup issue

Open
#204 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
15
Forks
23
PR merge metrics
No merged PRs in 30d

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:

  1. Cloned the repo
  2. Created a python virtual environment with python -m venv .venv
  3. 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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

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.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.