[Distutils] Spurious "required version not available" error for setuptools?

Hamish Lawson hbl at st-andrews.ac.uk
Thu Aug 31 18:00:17 CEST 2006


Phillip J. Eby wrote:

>  >>> print list(pkg_resources.working_set)

[setuptools 0.6c1
(/usr/local/python/lib/python2.4/site-packages/setuptools-0.6c1-py2.4.egg),
CherryPy 2.1.1 (/usr/local/python/lib/python2.4/site-packages/CherryPy-2.1.1-py2.4.egg),
FormEncode 0.5.1
(/usr/local/python/lib/python2.4/site-packages/FormEncode-0.5.1-py2.4.egg),
Markup 0.2.0 (/usr/local/python/lib/python2.4/site-packages/Markup-0.2.0-py2.4.egg),
PyDO 2.0p1 (/usr/local/python/lib/python2.4/site-packages/PyDO-2.0p1-py2.4.egg),
SQLAlchemy 0.91alpha
(/usr/local/python/lib/python2.4/site-packages/SQLAlchemy-0.91alpha-py2.4.egg),
SQLObject 0.7.1dev-r1457
(/usr/local/python/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-py2.4.egg),
TurboGears 0.8.8
(/usr/local/python/lib/python2.4/site-packages/TurboGears-0.8.8-py2.4.egg),
TestGears 0.2 (/usr/local/python/lib/python2.4/site-packages/TestGears-0.2-py2.4.egg),
cElementTree 1.0.2-20050302
(/usr/local/python/lib/python2.4/site-packages/cElementTree-1.0.2_20050302-py2.4-solaris-2.10-sun4u.egg),
elementtree 1.2.6
(/usr/local/python/lib/python2.4/site-packages/elementtree-1.2.6-py2.4.egg),
kid 0.9.3 (/usr/local/python/lib/python2.4/site-packages/kid-0.9.3-py2.4.egg),
simplejson 1.3 (/usr/local/python/lib/python2.4/site-packages/simplejson-1.3-py2.4.egg)]

> (Oh, and also check which Python version is being run by your easy_install
> script, to make sure you run the same version to do the above.)

Ah, I think the problem night be solved. The easy_install being picked
up is in /usr/local/bin:

----
#!/usr/local/bin/python
# EASY-INSTALL-ENTRY-SCRIPT:
'setuptools==0.6a9','console_scripts','easy_install'
__requires__ = 'setuptools==0.6a9'
import sys
from pkg_resources import load_entry_point

sys.exit(
   load_entry_point('setuptools==0.6a9', 'console_scripts', 'easy_install')()
)
----

There's also an easy_install in my Python installation
(/usr/local/python/bin); this one refers to 0.6c1. When I invoke this
absolutely then the installtaion of Kid from Subversion works.

Hamish


More information about the Distutils-SIG mailing list