Ask Your Question
1

ImportError: cannot import name signals

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

ozkolonur gravatar image

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

I did a manage.py syncdb and I got this error.

  File "/home/ubuntu/adimsayar_biz/askbot/models/question.py", 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
2

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

Evgeny gravatar image

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

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 http://askbot.org/doc/optional-modules.html#uploaded-avatars

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
0

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

ozkolonur gravatar image

It seems another module, django-userprofile(http://code.google.com/p/django-profile/ ) 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

Comments

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 gravatar imageEvgeny ( 2012-04-21 16:03:39 -0500 )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

Stats

Asked: 2012-04-20 10:24:06 -0500

Seen: 1,018 times

Last updated: Apr 21 '12