[Distutils] Using setuptools without root permissions

Raul Murciano raul at murciano.net
Thu Oct 13 21:38:21 CEST 2005


Hi all,
I'm trying to install TurboGears by using EasyInstall [1] on a FreeBSD 
shared host (Textdrive). I have not root permissions, so following 
PEAK's instructions [2] I've executed Ian Bicking's non_root_python.py 
script.

The script seems to work perfectly, it outputs no errors and:
   Setuptools version 0.6a5 or greater has been installed.
   (Run "ez_setup.py -U setuptools" to reinstall or upgrade.)

I've checked that ~/bin/ contains python (my custom python) and 
easy_install executables. Now I try:
~/bin/python
 >>> import setuptools
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
ImportError: No module named setuptools

I've checked the path:
~/bin/python
 >>> import sys
 >>> sys.path
['', '/home/murciano/lib', '/home/murciano/lib/python2.4/site-packages', 
'/home/murciano/lib/python24.zip', '/home/murciano/lib/python2.4', 
'/home/murciano/lib/python2.4/plat-freebsd5', 
'/home/murciano/lib/python2.4/lib-tk', 
'/home/murciano/lib/python2.4/lib-dynload', 
'/home/murciano/lib/python2.4/site-packages/Numeric', 
'/home/murciano/lib/python2.4/site-packages/PIL']

And if I insert the setuptools-egg path by hand things works:
 >>>sys.path.insert(0,"/home/murciano/lib/python2.4/site-packages/setuptools-0.6a5-py2.4.egg")
 >>>import setuptools
 >>>

I have the same problem with pkg_resources, so I can't execute 
TurboGears properly. Any help/idea/suggestion would be welcome :-)

Greetings,
	Raul Murciano

[1] TurboGears installation for *nix:
http://turbogears.org/download/nix.html

[2] PEAK EasyInstall non-root installation:
http://peak.telecommunity.com/DevCenter/EasyInstall#non-root-installation



More information about the Distutils-SIG mailing list