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

Import error #2

Open
RealBigB opened this issue Oct 14, 2013 · 0 comments
Open

Import error #2

RealBigB opened this issue Oct 14, 2013 · 0 comments

Comments

@RealBigB
Copy link

  • pip install django-filer==0.9.4
  • upgrade django from 1.4.1 to 1.4.2 because django-filer needs django.utils.six :(
  • pip install cmsplugin-filer
  • ./manage.py syncdb & ./manage.py migrate
  • pip install django-cms-events
  • add "cmsplugin_events" to settings.INSTALLED_APPS
  • ./manage.py syndcb

Result:

Traceback (most recent call last):
  File "./manage.py", line 10, in <module>
    execute_from_command_line(sys.argv)
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/core/management/__init__.py", line 443, in execute_from_command_line
    utility.execute()
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/core/management/__init__.py", line 382, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/core/management/base.py", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/core/management/base.py", line 231, in execute
    self.validate()
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/core/management/base.py", line 266, in validate
    num_errors = get_validation_errors(s, app)
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/core/management/validation.py", line 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/db/models/loading.py", line 158, in get_app_errors
    self._populate()
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/db/models/loading.py", line 67, in _populate
    self.load_app(app_name)
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/db/models/loading.py", line 88, in load_app
    models = import_module('.models', app_name)
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/django/utils/importlib.py", line 35, in import_module
    __import__(name)
  File "/home/bruno/.virtualenvs/s3g/lib/python2.6/site-packages/cmsplugin_events/models.py", line 7, in <module>
    from model_utils.models import TimeStampedModel
ImportError: No module named model_utils.models

And there's indeed no module or package model_utils in sight. After a bit of googling it appears that it's another missing dependency on https://bitbucket.org/carljm/django-model-utils

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