First time here? Check out the FAQ!
0

setup avatar error "no module named Avatar"
 

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

[Tue Jan 21 15:20:53 2014] [error] [client 128.101.35.71] mod_wsgi (pid=11680): Exception occurred processing WSGI script '/../../../..//django.wsgi'.
[Tue Jan 21 15:20:53 2014] [error] [client 128.101.35.71] Traceback (most recent call last):
[Tue Jan 21 15:20:53 2014] [error] [client 128.101.35.71]   File "/../../../local/lib/python2.7/site-packages/Django-1.4.10-py2.7.egg/django/core/handlers/wsgi.py", line 219, in __call__
[Tue Jan 21 15:20:53 2014] [error] [client 128.101.35.71]     self.load_middleware()
[Tue Jan 21 15:20:53 2014] [error] [client 128.101.35.71]   File "/../../..//local/lib/python2.7/site-packages/Django-1.4.10-py2.7.egg/django/core/handlers/base.py", line 47, in load_midd
leware
[Tue Jan 21 15:20:53 2014] [error] [client 128.101.35.71]     raise exceptions.ImproperlyConfigured('Error importing middleware %s: "%s"' % (mw_module, e))
[Tue Jan 21 15:20:53 2014] [error] [client 128.101.35.71] 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: http://askbot.org/doc/optional-modules.html#uploaded-avatars

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

/src/django-avatar$
avatar  CHANGELOG  CONTRIBUTORS.txt  django_avatar.egg-info  docs  LICENSE.txt  MANIFEST.in  README.txt  setup.py  tests

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)
SocialQA's avatar
265
SocialQA
asked 11 years ago, updated 11 years ago

Comments

see more comments

1 Answer

1

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://github.com/ericflo/django-avatar.git#egg=django_avatar

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 11 years ago
link

Comments

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's avatar SocialQA (11 years ago)

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's avatar Evgeny (11 years ago)

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

SocialQA's avatar SocialQA (11 years ago)
see more comments