[Grok-dev] HEADS UP: Eggs!

Fernando Correa Neto fcdoth at gmail.com
Fri Jul 13 12:15:36 EDT 2007


On 7/13/07, Philipp von Weitershausen <philipp at weitershausen.de> wrote:
> Fernando Correa Neto wrote:
> >> > Got zope.testing 3.4-r75911.
> >> > While:
> >> >  Installing.
> >> >  Getting section app.
> >> >  Initializing section app.
> >> >  Loading zc.buildout recipe entry zc.zope3recipes:app.
> >> >
> >> > An internal error occured due to a bug in either zc.buildout or in a
> >> > recipe being used:
> >> >
> >> > ImportError:
> >> > No module named schemaless
> >> >
> >> > By unsetting the variable it should work.
> >>
> >> Weird. Do you know why that happens?
> >
> > Yes. This happens because I had the old, or not so old, Zope3.3 in my
> > PYTHONPATH and  ZConfig of Zope3.3 does not have this schemaless
> > thing.
>
> But ZConfig from your Zope 3.3 shouldn't even be seen. ZConfig from the
> buildout should shadow it. Can you run buildout with the -D (debug)
> option and investigate?

Sure.

Following the complete traceback and pdb session in GrokStar:

fcorrea:~/Repos/Grokstar fcorrea$ python2.4 bootstrap/bootstrap.py
Creating directory '/Users/fcorrea/Repos/Grokstar/bin'.
Creating directory '/Users/fcorrea/Repos/Grokstar/parts'.
Creating directory '/Users/fcorrea/Repos/Grokstar/eggs'.
Creating directory '/Users/fcorrea/Repos/Grokstar/develop-eggs'.
Generated script '/Users/fcorrea/Repos/Grokstar/bin/buildout'.
fcorrea:~/Repos/Grokstar fcorrea$ ./bin/buildout -D
Develop: '/Users/fcorrea/Repos/Grokstar/.'
Getting distribution for 'zc.zope3recipes'.
Got zc.zope3recipes 0.5.2.
Getting distribution for 'ZConfig>=2.4a5'.
Got ZConfig 2.4a6.
Getting distribution for 'zc.recipe.egg'.
Got zc.recipe.egg 1.0.0b6.
Getting distribution for 'zope.testing'.
Got zope.testing 3.4-r75911.
While:
  Installing.
  Getting section app.
  Initializing section app.
  Loading zc.buildout recipe entry zc.zope3recipes:app.
Traceback (most recent call last):
  File "/private/tmp/tmpU8KLCN/zc.buildout-1.0.0b28-py2.4.egg/zc/buildout/buildout.py",
line 1352, in main
  File "/private/tmp/tmpU8KLCN/zc.buildout-1.0.0b28-py2.4.egg/zc/buildout/buildout.py",
line 267, in install
  File "/private/tmp/tmpU8KLCN/zc.buildout-1.0.0b28-py2.4.egg/zc/buildout/buildout.py",
line 759, in __getitem__
  File "/private/tmp/tmpU8KLCN/zc.buildout-1.0.0b28-py2.4.egg/zc/buildout/buildout.py",
line 839, in _initialize
  File "/private/tmp/tmpU8KLCN/zc.buildout-1.0.0b28-py2.4.egg/zc/buildout/buildout.py",
line 802, in _install_and_load
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/pkg_resources.py",
line 277, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/pkg_resources.py",
line 2179, in load_entry_point
    return ep.load()
  File "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/setuptools-0.6c6-py2.4.egg/pkg_resources.py",
line 1912, in load
    entry = __import__(self.module_name, globals(),globals(), ['__name__'])
  File "/Users/fcorrea/Repos/Grokstar/eggs/zc.zope3recipes-0.5.2-py2.4.egg/zc/zope3recipes/recipes.py",
line 21, in ?
    import ZConfig.schemaless
ImportError: No module named schemaless

Starting pdb:
> /Users/fcorrea/Repos/Grokstar/eggs/zc.zope3recipes-0.5.2-py2.4.egg/zc/zope3recipes/recipes.py(21)?()
-> import ZConfig.schemaless
(Pdb) ZConfig
*** NameError: name 'ZConfig' is not defined
(Pdb) import ZConfig
(Pdb) ZConfig
<module 'ZConfig' from '/usr/local/Zope-3.3.0/lib/python/ZConfig/__init__.pyc'>
(Pdb)


More information about the Grok-dev mailing list