First time here? Check out the FAQ!

askbot-setup error

I pip installed askbot then

$ askbot-setup

Traceback (most recent call last):
  File "/usr/local/bin/askbot-setup", line 5, in <module>
    from pkg_resources import load_entry_point
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.24-py2.7.egg/", line 2707, in <module>
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.24-py2.7.egg/", line 686, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.24-py2.7.egg/", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: django-keyedcache

I got this error. How do I resolve this?

David's avatar
asked 2011-11-22 13:19:17 -0500
edit flag offensive 0 remove flag close merge delete


Try using virtual environment indeed. If you install everything into system packages you may end up with different apps conflicting for the version of some dependency package.

Evgeny's avatar Evgeny (2011-11-22 14:19:21 -0500) edit
add a comment see more comments

1 Answer


David, I think something not right happened during the pip install process, as it would normally install all the dependencies.

You can try again. (I'll also test the process now to double-check).

Evgeny's avatar
answered 2011-11-22 13:26:32 -0500
edit flag offensive 0 remove flag delete link


Downloading/unpacking django-keyedcache (from askbot) Downloading django-keyedcache-1.4-1.tar.gz Running egg_info for package django-keyedcache

warning: no files found matching '*' under directory 'keyedcache/templatetags'

Requirement already satisfied (use --upgrade to upgrade): django-threaded-multihost in /usr/local/lib/python2.7/dist-packages/djangothreadedmultihost-1.40-py2.7.egg (from askbot) Requirement already satisfied (use --upgrade to upgrade): django-robots in /usr/local/lib/python2.7/dist-packages/djangorobots-0.8.0-py2.7.egg (from askbot)

David's avatar David (2011-11-22 13:38:08 -0500) edit

I tried again and getting same thing. Related pip install messages are pasted in the comment above.

David's avatar David (2011-11-22 13:38:50 -0500) edit

David, works fine for me, I am on python 2.6 though. Are you using virtual environment? Try:

mkdir newdir
cd newdir
virtualenv env --no-site-packages
source env/bin/activate
pip install askbot

Then askbot-setup. If you still have error, we'll run tests on python2.7 and would like to know more about your system.

Evgeny's avatar Evgeny (2011-11-22 14:15:21 -0500) edit

I am getting the same error. What would you like to know about my system?

David's avatar David (2011-11-22 14:42:22 -0500) edit

David, is the threaded-multihost installed as zipped python egg? maybe you need to unzip it?

Evgeny's avatar Evgeny (2011-11-22 18:27:01 -0500) edit
add a comment see more comments