First time here? Check out the FAQ!
0

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/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?

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)
David's avatar
1
David
asked 13 years ago

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's avatar Evgeny (13 years ago)
see more comments

1 Answer

0

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

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

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's avatar David (13 years ago)

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

David's avatar David (13 years ago)

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 (13 years ago)

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

David's avatar David (13 years ago)

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

Evgeny's avatar Evgeny (13 years ago)
see more comments