Comment 4 for bug 620866

Revision history for this message
Justas Sadzevičius (justas.sadzevicius) wrote :

Apologies that I forgot to mention earlier... The removed line disables aut detection/inclusion of other SchoolTool parts:
<includePlugins package="schooltool" file="plugin.zcml" />
That's why you needed to add includes by hand.

If you want to investigate why auto-inclusion failed in the first place, try this:
$ python2.5

>>> import sys, itertools, pkg_resources
>>> paths = sorted(sys.path)
>>> distributions = list(itertools.chain(*[pkg_resources.find_distributions(path, True) for path in sys.path]))
>>> dist_names = sorted([repr(d) for d in distributions])

Following should print a lot of paths, many containing "zope" and ending with ".egg". You should see "schooltool.***.egg" there also (

>>> for path in paths: print path

And this will list the libraries that are known by pkg_resources. If schooltool or zope is not there, auto-inclusion will not work..

>>> for name in dist_names: print name