Lee,

You're amazingly good at blind guesses.  That bin/python/bin dir is a
shortcut dir linked to the python binary.  I have to set it up this way
because it's running on dreamhost - not on one of my boxes.  I have an
installation of python that's hopefully being used over their install
(2.3).  I think that's working ok, because running python gives me my
version 2.4.2, and the interpreter line of the script I run TG from is
pointed to the proper python binary (~/bin/python/bin/python).

I moved $HOME/lib/lib/python2.4/... to the beginning, but still no
luck.  Just to check, I made sure that the
turbogears/fastdata...sitetemplate exists in the egg folder, and it
does, so I don't know where it's getting caught up.

I was poking around with google, and thought it might help to set a
PYTHONPATH variable.  I set that to:
export PYTHONPATH=$HOME/lib/lib/python2.4/:$PATH

Still won't import the sitetemplate, but check out what I get when I
run
import sys
print sys.path

['', '/home/mikez0r/lib/lib/python2.4',
'/home/mikez0r/lib/lib/python2.4/site-packages/TurboGears0.9a0dev_r646-py2.4.egg',
'/home/mikez0r/bin/python/bin', '/home/mikez0r/lib/bin',
'/usr/local/bin', '/usr/bin', '/bin', '/usr/bin/X11', '/usr/games',
'/home/mikez0r/lib/lib/python24.zip',
'/home/mikez0r/lib/lib/python2.4/plat-linux2',
'/home/mikez0r/lib/lib/python2.4/lib-tk',
'/home/mikez0r/lib/lib/python2.4/lib-dynload',
'/home/mikez0r/lib/lib/python2.4/site-packages',
'/home/mikez0r/lib/lib/python2.4/site-packages/PIL',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/TestGears-0.2-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/FormEncode-0.4-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/cElementTree-1.0.5_20051216-py2.4-linux-i686.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/elementtree-1.2.6-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/json_py-3.4-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/SQLObject-0.7.1dev_r1457-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/setuptools-0.6a9-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/nose-0.8.6-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/PyProtocols-1.0a0-py2.4-linux-i686.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/RuleDispatch-0.5a0-py2.4-linux-i686.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/PasteScript-0.4.2-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/simplejson-1.1-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/CherryPy-2.2.0beta-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/Cheetah-1.0-py2.4-linux-i686.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/PasteDeploy-0.4-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/Paste-0.4.1-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/kid-0.9a0-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/TurboKid-0.9.0-py2.4.egg',
'/home/.castor/mikez0r/lib/lib/python2.4/site-packages/TurboGears-0.9a0dev_r646-py2.4.egg']

Sure looks like it is looking in the proper dir.  Why on earth can't it
find that sitetemplate?

Reply via email to