First time here? Check out the FAQ!
1

ImportError: cannot import name signals

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

ozkolonur's avatar
15
ozkolonur
asked 2012-04-20 10:24:06 -0500
edit flag offensive 0 remove flag close merge delete

Comments

add a comment see more comments

2 Answers

2

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.

Evgeny's avatar
13.2k
Evgeny
answered 2012-04-21 08:17:05 -0500, updated 2012-04-21 09:52:30 -0500
edit flag offensive 0 remove flag delete link

Comments

add a comment see more comments
0

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?

ozkolonur's avatar
15
ozkolonur
answered 2012-04-21 15:35:48 -0500
edit flag offensive 0 remove flag delete link

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's avatar Evgeny (2012-04-21 16:03:39 -0500) edit
add a comment see more comments