Ask Your Question
0

askbot-setup error

asked 2011-11-22 13:19:17 -0600

David gravatar image

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/pkg_resources.py", line 2707, in <module>
    working_set.require(__requires__)
  File "/usr/local/lib/python2.7/dist-packages/distribute-0.6.24-py2.7.egg/pkg_resources.py", 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/pkg_resources.py", line 584, in resolve
    raise DistributionNotFound(req)
pkg_resources.DistributionNotFound: django-keyedcache

I got this error. How do I resolve this?

edit retag flag offensive close merge delete

Comments

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 gravatar imageEvgeny ( 2011-11-22 14:19:21 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2011-11-22 13:26:32 -0600

Evgeny gravatar image

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).

edit flag offensive delete link more

Comments

Downloading/unpacking django-keyedcache (from askbot) Downloading django-keyedcache-1.4-1.tar.gz Running setup.py 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 gravatar imageDavid ( 2011-11-22 13:38:08 -0600 )edit

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

David gravatar imageDavid ( 2011-11-22 13:38:50 -0600 )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 gravatar imageEvgeny ( 2011-11-22 14:15:21 -0600 )edit

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

David gravatar imageDavid ( 2011-11-22 14:42:22 -0600 )edit

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

Evgeny gravatar imageEvgeny ( 2011-11-22 18:27:01 -0600 )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

Stats

Asked: 2011-11-22 13:19:17 -0600

Seen: 503 times

Last updated: Nov 22 '11