I'm having a similar problem running tg-admin, but the error is
regarding the PIL package. I've followed the suggestion to copy
tg-admin to /usr/local/bin/, with no effect.
What is turbogears' tg-admin (or setuptools), asking for with this
error message?
$ /usr/bin/tg-admin --help
Traceback (most recent call last):
File "/usr/bin/tg-admin", line 7, in ?
sys.exit(
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 236, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 2097, in load_entry_point
return ep.load()
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 1830, in load
entry = __import__(self.module_name, globals(),globals(),
['__name__'])
File "/software/svn/turbogears/turbogears/__init__.py", line 21, in
?
ext = entrypoint.load()
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 1829, in load
if require: self.require(env, installer)
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 1842, in require
working_set.resolve(self.dist.requires(self.extras),env,installer))
File
"/usr/lib/python2.4/site-packages/setuptools-0.6c3-py2.4.egg/pkg_resources.py",
line 483, in resolve
raise DistributionNotFound(req) # XXX put more info here
pkg_resources.DistributionNotFound: PIL>=1.1.5
The individual components are working well enough, and turbogears has
generally worked with this configuration in the past. I use Gentoo
Linux' system package for PIL and a few other packages, setuptools for
everything else. Some environment info:
/usr/lib/python2.4/site-packages # ls *.pth
Numeric.pth PIL.pth dbus.pth easy-install.pth pygtk.pth
setuptools.pth wx.pth
/usr/lib/python2.4/site-packages # cat PIL.pth
PIL
/usr/lib/python2.4/site-packages # cat easy-install.pth
import sys; sys.__plen = len(sys.path)
./setuptools-0.6c3-py2.4.egg
/software/svn/turbogears
/software/svn/sqlalchemy/lib
/software/svn/pyyaml/lib
./ipython-0.7.2-py2.4.egg
./nose-0.9.0-py2.4.egg
(...)
import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:];
p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert =
p+len(new)
/software/svn/turbogears $ svn info
URL: http://www.turbogears.org/svn/turbogears/trunk
Revision: 2078
(...)
# equery files imaging
* Contents of dev-python/imaging-1.1.5:
(...)
/usr/lib/python2.4/site-packages/PIL
/usr/lib/python2.4/site-packages/PIL.pth
/usr/lib/python2.4/site-packages/PIL/ArgImagePlugin.py
(...)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---