First time here? Check out the FAQ!

ImportError: cannot import name signals

Hi Guys,

I'm trying to install askbot in alwaysdata but when I type

python syncdb

I have the following error

    /usr/local/alwaysdata/python/django/1.4/django/conf/ DeprecationWarning: The ADMIN_MEDIA_PREFIX setting has been removed; use STATIC_URL instead.
  "use STATIC_URL instead.", DeprecationWarning)
/usr/local/lib/python2.6/site-packages/MySQLdb/ DeprecationWarning: the sets module is deprecated
  from sets import ImmutableSet
/usr/local/alwaysdata/python/django/1.4/django/core/cache/ DeprecationWarning: settings.CACHE_* is deprecated; use settings.CACHES instead.
cannot import name open_if_exists
cannot import name signals
Traceback (most recent call last):
  File "", line 12, in <module>
  File "/usr/local/alwaysdata/python/django/1.4/django/core/management/", line 459, in execute_manager
  File "/usr/local/alwaysdata/python/django/1.4/django/core/management/", line 382, in execute
  File "/usr/local/alwaysdata/python/django/1.4/django/core/management/", line 196, in run_from_argv
    self.execute(*args, **options.__dict__)
  File "/usr/local/alwaysdata/python/django/1.4/django/core/management/", line 231, in execute
  File "/usr/local/alwaysdata/python/django/1.4/django/core/management/", line 266, in validate
    num_errors = get_validation_errors(s, app)
  File "/usr/local/alwaysdata/python/django/1.4/django/core/management/", line 30, in get_validation_errors
    for (app_name, error) in get_app_errors().items():
  File "/usr/local/alwaysdata/python/django/1.4/django/db/models/", line 158, in get_app_errors
  File "/usr/local/alwaysdata/python/django/1.4/django/db/models/", line 67, in _populate
  File "/usr/local/alwaysdata/python/django/1.4/django/db/models/", line 88, in load_app
    models = import_module('.models', app_name)
  File "/usr/local/alwaysdata/python/django/1.4/django/utils/", line 35, in import_module
  File "/nfs/http7/mispruebas/django_site/askbot/models/", line 25, in <module>
    from askbot.models.question import Thread
  File "/nfs/http7/mispruebas/django_site/askbot/models/", line 18, in <module>
    from askbot.models import signals
ImportError: cannot import name signals

How I could solve it?

Thanks :)

sciruela's avatar
asked 2012-04-21 14:33:11 -0500, updated 2012-04-21 14:33:50 -0500
edit flag offensive 0 remove flag close merge delete


add a comment see more comments

1 Answer


I would insert a line

import pdb; pdb.set_trace()

at the beginning of askbot/models/, then step with the debugger (start application in the shell then type n into the debugger input).

There must be a failing import inside which is masked by the django application loading code.

Evgeny's avatar
answered 2012-04-21 14:42:20 -0500, updated 2012-04-21 14:42:45 -0500
edit flag offensive 0 remove flag delete link


The problem is the following import "from askbot.models import signals". So, any Idea about this problem? I use the free account of alwaysdata and I had to load dynamically of the dependencies using sys.path.append().

sciruela's avatar sciruela (2012-04-22 06:09:35 -0500) edit
add a comment see more comments