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

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
ozkolonur's avatar
15
ozkolonur
asked 12 years ago

Comments

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.

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
Evgeny's avatar
13.2k
Evgeny
answered 12 years ago, updated 12 years ago
link

Comments

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?

To enter a block of code:

  • enter empty line after your previous text
  • paste or type the code
  • select the code and press the button above
Preview: (hide)
ozkolonur's avatar
15
ozkolonur
answered 12 years ago
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 (12 years ago)
see more comments