Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #1182 (closed defect: wontfix)

Opened 13 years ago

Last modified 12 years ago

tg-admin: Installation Error--pkg_resources.DistributionNotFound

Reported by: jeffk Owned by: anonymous
Priority: normal Milestone: 1.5
Component: tg-admin (non-toolbox) Version: trunk
Severity: normal Keywords: setuptools eggs PIL


I am seeing a setuptools-related error when executing tg-admin. I am posting it as a turbogears ticket because the package in question is nominally working as a non-setuptools python package, and tg-admin at a minimum needs to catch and explain the error condition, and how to fix it. At least one other user was/is experiencing the problem with the turbogears package itself, I am seeing it with the system-managed package PIL.


What is turbogears' tg-admin (or setuptools), asking for with this error message?

Traceback (most recent call last):
  File "/usr/local/bin/tg-admin", line 7, in ?
  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
  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

  /usr/lib/python2.4/site-packages # cat easy-install.pth
  import sys; sys.__plen = len(sys.path)
  import sys; new=sys.path[sys.__plen:]; del sys.path[sys.__plen:];
p=getattr(sys,'__egginsert',0); sys.path[p:p]=new; sys.__egginsert =

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

Change History

comment:1 Changed 13 years ago by jorge.vargas

I believe this is a problem with setuptools and gentoo. The current state of gentoo packages is that they shouldn't use setuptools, therefore your PIL packages are not recognized by setuptools.

comment:2 Changed 12 years ago by jorge.vargas

  • Status changed from new to closed
  • Resolution set to wontfix

until there is official packages for TG please stick with setuptools instalations.

Note: See TracTickets for help on using tickets.