Ask Your Question

ImportError: cannot import name signals

asked 2012-04-20 10:24:06 -0600

ozkolonur's avatar

I dont think my problem is related with this thread hence I am using python 2.6.

I did a syncdb and I got this error.

  File "/home/ubuntu/adimsayar_biz/askbot/models/", line 18, in <module>
    from askbot.models import signals
ImportError: cannot import name signals

Do you have an idea why this import fails? Here is the full log my askbot version is 7.40

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2012-04-21 08:17:05 -0600

Evgeny's avatar

updated 2012-04-21 09:52:30 -0600

This is because module avatar is missing, take a look at line 11 of your log (it is avatar, not avatars).

Here are instructions on how to install the module

edit: added a startup test for this case, now you will get a meaningful warning upon trying to run askbot.

edit flag offensive delete link more

answered 2012-04-21 15:35:48 -0600

ozkolonur's avatar

It seems another module, django-userprofile( ) in our project is having a collision with askbot.

I am trying to use askbot as reuseable django app within our project. Actually it seems to work fine when it is standalone.

I cant disable avatar functionality in django-profile. It is not featurized.

Can I disable avatar app in askbot? Or do you have any idea to come over this problem?

edit flag offensive delete link more


By befault, avatar module is not enabled in askbot. Try to use the debugger to find the source of this error, add import pdb; pdb.set_trace() in the beginning of askbot.models.signals and step through.

Evgeny's avatar Evgeny  ( 2012-04-21 16:03:39 -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-20 10:24:06 -0600

Seen: 1,755 times

Last updated: Apr 21 '12