Ask Your Question

setup avatar error "no module named Avatar"

asked 2014-01-21 15:53:55 -0500

SocialQA gravatar image

updated 2014-01-22 09:54:31 -0500

I have followed the instructions on setting up avatar, but I get the following error:

[Tue Jan 21 15:20:53 2014] [error] [client] mod_wsgi (pid=11680): Exception occurred processing WSGI script '/../../../..//django.wsgi'.
[Tue Jan 21 15:20:53 2014] [error] [client] Traceback (most recent call last):
[Tue Jan 21 15:20:53 2014] [error] [client]   File "/../../../local/lib/python2.7/site-packages/Django-1.4.10-py2.7.egg/django/core/handlers/", line 219, in __call__
[Tue Jan 21 15:20:53 2014] [error] [client]     self.load_middleware()
[Tue Jan 21 15:20:53 2014] [error] [client]   File "/../../..//local/lib/python2.7/site-packages/Django-1.4.10-py2.7.egg/django/core/handlers/", line 47, in load_midd
[Tue Jan 21 15:20:53 2014] [error] [client]     raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Tue Jan 21 15:20:53 2014] [error] [client] ImproperlyConfigured: Error importing middleware askbot.middleware.anon_user: "No module named avatar"

I have already added into installed apps, and have done everything mentioned in this link:

When I installed using pip install I was in virtualenv and after the installation the avatar was install in src folder within my virtualenv.

bin  askbotApp  include  lib  local  src

avatar  CHANGELOG  CONTRIBUTORS.txt  django_avatar.egg-info  docs  LICENSE.txt  README.txt  tests
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-01-22 09:00:04 -0500

Evgeny gravatar image

Looks like you don't have the module avatar on your Python path, you will need to install it first:

pip install -e git+git://
edit flag offensive delete link more


I installed it and it got installed completely outside of askbot should I move the directory inside to askbot or just add the location where it got installed to python path?

SocialQA gravatar imageSocialQA ( 2014-01-22 09:35:38 -0500 )edit

It should be installed in the same environment with which your site runs. If you are using virtualenv, just activate that environment and then run the "pip install" command.

Evgeny gravatar imageEvgeny ( 2014-01-22 09:50:38 -0500 )edit

I was in virtualenv when I installed, it got installed inside src folder i edited to question

SocialQA gravatar imageSocialQA ( 2014-01-22 09:52:40 -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

1 follower


Asked: 2014-01-21 15:53:55 -0500

Seen: 509 times

Last updated: Jan 22 '14