Skip to content

Instantly share code, notes, and snippets.

@aniketmaithani
Created December 30, 2015 08:47
Show Gist options
  • Save aniketmaithani/30810726b9e66e66eecf to your computer and use it in GitHub Desktop.
Save aniketmaithani/30810726b9e66e66eecf to your computer and use it in GitHub Desktop.
Import Error : Heroku
Delta compression using up to 4 threads.
Compressing objects: 100% (191/191), done.
Writing objects: 100% (232/232), 80.60 KiB | 0 bytes/s, done.
Total 232 (delta 32), reused 2 (delta 0)
remote: Compressing source files... done.
remote: Building source:
remote:
remote: -----> Python app detected
remote: -----> Installing runtime (python-3.4.3)
remote: -----> Installing dependencies with pip
remote: Collecting Django==1.9 (from -r requirements/common.txt (line 1))
remote: Downloading Django-1.9-py2.py3-none-any.whl (6.6MB)
remote: Collecting whitenoise==2.0.6 (from -r requirements/common.txt (line 2))
remote: Downloading whitenoise-2.0.6-py2.py3-none-any.whl
remote: Collecting pytz==2015.7 (from -r requirements/common.txt (line 3))
remote: Downloading pytz-2015.7-py2.py3-none-any.whl (476kB)
remote: Collecting django-environ==0.4.0 (from -r requirements/common.txt (line 4))
remote: Downloading django-environ-0.4.0.tar.gz
remote: Collecting django-sites==0.9 (from -r requirements/common.txt (line 5))
remote: Downloading django-sites-0.9.tar.gz
remote: Collecting python-dotenv==0.3.0 (from -r requirements/common.txt (line 6))
remote: Downloading python_dotenv-0.3.0-py2.py3-none-any.whl
remote: Collecting psycopg2==2.6.1 (from -r requirements/common.txt (line 7))
remote: Downloading psycopg2-2.6.1.tar.gz (371kB)
remote: Collecting django-model-utils==2.4 (from -r requirements/common.txt (line 8))
remote: Downloading django-model-utils-2.4.tar.gz
remote: Collecting django-uuid-upload-path==1.0.0 (from -r requirements/common.txt (line 9))
remote: Downloading django-uuid-upload-path-1.0.0.tar.gz
remote: Collecting Pillow==3.0.0 (from -r requirements/common.txt (line 10))
remote: Downloading Pillow-3.0.0.tar.gz (9.6MB)
remote: Collecting django-versatileimagefield==1.2 (from -r requirements/common.txt (line 11))
remote: Downloading django_versatileimagefield-1.2-py2.py3-none-any.whl (46kB)
remote: Collecting djangorestframework==3.3.2 (from -r requirements/common.txt (line 12))
remote: Downloading djangorestframework-3.3.2-py2.py3-none-any.whl (634kB)
remote: Collecting boto==2.38.0 (from -r requirements/production.txt (line 2))
remote: Downloading boto-2.38.0-py2.py3-none-any.whl (1.3MB)
remote: Collecting django-storages-redux==1.3 (from -r requirements/production.txt (line 3))
remote: Downloading django_storages_redux-1.3-py2.py3-none-any.whl
remote: Collecting gunicorn==19.4.1 (from -r requirements/production.txt (line 4))
remote: Downloading gunicorn-19.4.1-py2.py3-none-any.whl (112kB)
remote: Collecting django-redis==4.3.0 (from -r requirements/production.txt (line 5))
remote: Downloading django-redis-4.3.0.tar.gz
remote: Collecting hiredis==0.2.0 (from -r requirements/production.txt (line 6))
remote: Downloading hiredis-0.2.0.tar.gz (46kB)
remote: Collecting newrelic (from -r requirements/production.txt (line 7))
remote: Downloading newrelic-2.60.0.46.tar.gz (700kB)
remote: Collecting six (from django-environ==0.4.0->-r requirements/common.txt (line 4))
remote: Downloading six-1.10.0-py2.py3-none-any.whl
remote: Collecting ordereddict (from python-dotenv==0.3.0->-r requirements/common.txt (line 6))
remote: Downloading ordereddict-1.1.tar.gz
remote: Collecting click>=5.0 (from python-dotenv==0.3.0->-r requirements/common.txt (line 6))
remote: Downloading click-6.2-py2.py3-none-any.whl (70kB)
remote: Collecting redis>=2.10.0 (from django-redis==4.3.0->-r requirements/production.txt (line 5))
remote: Downloading redis-2.10.5-py2.py3-none-any.whl (60kB)
remote: Installing collected packages: Django, whitenoise, pytz, six, django-environ, django-sites, ordereddict, click, python-dotenv, psycopg2, django-model-utils, django-uuid-upload-path, Pillow, django-versatileimagefield, djangorestframework, boto, django-storages-redux, gunicorn, redis, django-redis, hiredis, newrelic
remote: Running setup.py install for django-environ
remote: Running setup.py install for django-sites
remote: Running setup.py install for ordereddict
remote: Running setup.py install for psycopg2
remote: Running setup.py install for django-model-utils
remote: Running setup.py install for django-uuid-upload-path
remote: Running setup.py install for Pillow
remote: Running setup.py install for django-redis
remote: Running setup.py install for hiredis
remote: Running setup.py install for newrelic
remote: Successfully installed Django-1.9 Pillow-3.0.0 boto-2.38.0 click-6.2 django-environ-0.4.0 django-model-utils-2.4 django-redis-4.3.0 django-sites-0.9 django-storages-redux-1.3 django-uuid-upload-path-1.0.0 django-versatileimagefield-1.2 djangorestframework-3.3.2 gunicorn-19.4.1 hiredis-0.2.0 newrelic ordereddict-1.1 psycopg2-2.6.1 python-dotenv-0.3.0 pytz-2015.7 redis-2.10.5 six-1.10.0 whitenoise-2.0.6
remote:
remote: -----> Preparing static assets
remote: Collectstatic configuration error. To debug, run:
remote: $ heroku run python manage.py collectstatic --noinput
remote:
remote: -----> Running post-compile hook
remote: /app/.heroku/python/lib/python3.4/site-packages/dotenv.py:18: UserWarning: can't read .env - it doesn't exist.
remote: warnings.warn("can't read %s - it doesn't exist." % dotenv_path)
remote: Traceback (most recent call last):
remote: File "manage.py", line 20, in <module>
remote: execute_from_command_line(sys.argv)
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
remote: utility.execute()
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/core/management/__init__.py", line 324, in execute
remote: django.setup()
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/__init__.py", line 18, in setup
remote: apps.populate(settings.INSTALLED_APPS)
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/apps/registry.py", line 108, in populate
remote: app_config.import_models(all_models)
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/apps/config.py", line 202, in import_models
remote: self.models_module = import_module(models_module_name)
remote: File "/app/.heroku/python/lib/python3.4/importlib/__init__.py", line 109, in import_module
remote: return _bootstrap._gcd_import(name[level:], package, level)
remote: File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
remote: File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
remote: File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
remote: File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
remote: File "<frozen importlib._bootstrap>", line 1129, in _exec
remote: File "<frozen importlib._bootstrap>", line 1471, in exec_module
remote: File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
remote: File "/app/workshop/base/models.py", line 9, in <module>
remote: from django_extensions.db.models import TimeStampedModel
remote: ImportError: No module named 'django_extensions'
remote: /app/.heroku/python/lib/python3.4/site-packages/dotenv.py:18: UserWarning: can't read .env - it doesn't exist.
remote: warnings.warn("can't read %s - it doesn't exist." % dotenv_path)
remote: Traceback (most recent call last):
remote: File "manage.py", line 20, in <module>
remote: execute_from_command_line(sys.argv)
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/core/management/__init__.py", line 350, in execute_from_command_line
remote: utility.execute()
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/core/management/__init__.py", line 324, in execute
remote: django.setup()
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/__init__.py", line 18, in setup
remote: apps.populate(settings.INSTALLED_APPS)
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/apps/registry.py", line 108, in populate
remote: app_config.import_models(all_models)
remote: File "/app/.heroku/python/lib/python3.4/site-packages/django/apps/config.py", line 202, in import_models
remote: self.models_module = import_module(models_module_name)
remote: File "/app/.heroku/python/lib/python3.4/importlib/__init__.py", line 109, in import_module
remote: return _bootstrap._gcd_import(name[level:], package, level)
remote: File "<frozen importlib._bootstrap>", line 2254, in _gcd_import
remote: File "<frozen importlib._bootstrap>", line 2237, in _find_and_load
remote: File "<frozen importlib._bootstrap>", line 2226, in _find_and_load_unlocked
remote: File "<frozen importlib._bootstrap>", line 1200, in _load_unlocked
remote: File "<frozen importlib._bootstrap>", line 1129, in _exec
remote: File "<frozen importlib._bootstrap>", line 1471, in exec_module
remote: File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed
remote: File "/app/workshop/base/models.py", line 9, in <module>
remote: from django_extensions.db.models import TimeStampedModel
remote: ImportError: No module named 'django_extensions'
remote:
remote: ! Push rejected, failed to compile Python app
remote:
remote: Verifying deploy...
remote:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment