Ask Your Question

ImportError: cannot import name signals

asked 2012-04-21 14:33:11 -0600

sciruela's avatar

updated 2012-04-21 14:33:50 -0600

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 :)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2012-04-21 14:42:20 -0600

Evgeny's avatar

updated 2012-04-21 14:42:45 -0600

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.

edit flag offensive delete link more


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 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools


Asked: 2012-04-21 14:33:11 -0600

Seen: 1,753 times

Last updated: Apr 21 '12