Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version mismatch on Django 1.7.7 #5

Open
mhsnook opened this issue Mar 26, 2015 · 0 comments
Open

Version mismatch on Django 1.7.7 #5

mhsnook opened this issue Mar 26, 2015 · 0 comments

Comments

@mhsnook
Copy link

mhsnook commented Mar 26, 2015

I've just installed the django-apihangar locally and when I try to run my server I get an ImportError, copied below. I'm running Django 1.7.7 with Python 2.7.

18:02:16 web.1  | Traceback (most recent call last):
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/gunicorn/arbiter.py", line 507, in spawn_worker
18:02:16 web.1  |     worker.init_process()
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/gunicorn/workers/base.py", line 118, in init_process
18:02:16 web.1  |     self.wsgi = self.app.wsgi()
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/gunicorn/app/base.py", line 67, in wsgi
18:02:16 web.1  |     self.callable = self.load()
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 65, in load
18:02:16 web.1  |     return self.load_wsgiapp()
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/gunicorn/app/wsgiapp.py", line 52, in load_wsgiapp
18:02:16 web.1  |     return util.import_app(self.app_uri)
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/gunicorn/util.py", line 355, in import_app
18:02:16 web.1  |     __import__(module)
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/myproject/wsgi.py", line 9, in <module>
18:02:16 web.1  |     application = Cling(get_wsgi_application())
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/django/core/wsgi.py", line 14, in get_wsgi_application
18:02:16 web.1  |     django.setup()
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/django/__init__.py", line 21, in setup
18:02:16 web.1  |     apps.populate(settings.INSTALLED_APPS)
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/django/apps/registry.py", line 108, in populate
18:02:16 web.1  |     app_config.import_models(all_models)
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/django/apps/config.py", line 202, in import_models
18:02:16 web.1  |     self.models_module = import_module(models_module_name)
18:02:16 web.1  |   File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/importlib/__init__.py", line 37, in import_module
18:02:16 web.1  |     __import__(name)
18:02:16 web.1  |   File "/Users/michael/code/ftl-django/ve/lib/python2.7/site-packages/apihangar/models.py", line 5, in <module>
18:02:16 web.1  |     from django.utils.hashcompat import md5_constructor
18:02:16 web.1  | ImportError: No module named hashcompat
18:02:16 web.1  | [2015-03-26 22:02:16 +0000] [62762] [INFO] Worker exiting (pid: 62762)
18:02:16 web.1  | [2015-03-26 18:02:16 -0400] [62759] [INFO] Shutting down: Master
18:02:16 web.1  | [2015-03-26 18:02:16 -0400] [62759] [INFO] Reason: Worker failed to boot.
18:02:16 web.1  | exited with code 3
18:02:16 system | sending SIGTERM to all processes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant