Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rileymjohnson/fc1d131c6d9f6b37231514e0464b1dc5 to your computer and use it in GitHub Desktop.
Save rileymjohnson/fc1d131c6d9f6b37231514e0464b1dc5 to your computer and use it in GitHub Desktop.
Error when running flask app with M@Crypto
flask.cli.NoAppException: While importing "stumpf.wsgi", an ImportError was raised:
Traceback (most recent call last):
File "/home/vagrant/venv/lib/python3.6/site-packages/flask/cli.py", line 235, in locate_app
__import__(module_name)
File "/vagrant/stumpf/wsgi.py", line 3, in <module>
from stumpf.app import create_app
File "/vagrant/stumpf/app.py", line 15, in <module>
from stumpf.views import (annotation_app_bp, artifact_bp, assignment_bp,
File "/vagrant/stumpf/views.py", line 12, in <module>
from stumpf.mturk_utils import (handle_mturk_assignment_event, handle_mturk_hit_event, question_xml,
File "/vagrant/stumpf/mturk_utils.py", line 7, in <module>
from M2Crypto import X509
ModuleNotFoundError: No module named 'M2Crypto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment