[Grok-dev] Error when performing buildout (Solution to BUG in setuptools)

Sebastian Ware sebastian at urbantalk.se
Thu Mar 26 14:45:58 EDT 2009


add:

   from distutils import log

to

   setuptools/command/sdist.py

(setuptools 0.6c7)

I think it complains (it is failing when logging a warning) because I  
have checked out the project with a newer version of svn than  
setuptools 0.6c7 expects.

I don't know how to report this so if someone can I guess it might  
save someone an hour or so. Or maybe we could switch to a more rescent  
version of setuptools if the fix is already implemented.

Mvh Sebastian

26 mar 2009 kl. 18.44 skrev Sebastian Ware:

> I have done this many times, and I am comparing the setup with other
> working projects, but suddenly I am getting a wierd error (setup.py
> further down):
>
> sebastian-wares-dator:MiniSite jhsware$ bin/buildout
> Develop: '/Users/jhsware/groksandbox/MiniSite/.'
> Develop: '/Users/jhsware/groksandbox/MiniSite/ProtonCMS'
> Traceback (most recent call last):
>   File "/var/folders/+Z/+ZQQ18YzHNKsGEc8HyUpQk+++TI/-Tmp-/tmp85mIkf",
> line 11, in ?
>     execfile('/Users/jhsware/groksandbox/MiniSite/ProtonCMS/setup.py')
>   File "/Users/jhsware/groksandbox/MiniSite/ProtonCMS/setup.py", line
> 28, in ?
>     entry_points="""
>   File "/usr/local/lib/python2.4/distutils/core.py", line 149, in  
> setup
>     dist.run_commands()
>   File "/usr/local/lib/python2.4/distutils/dist.py", line 946, in
> run_commands
>     self.run_command(cmd)
>   File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in
> run_command
>     cmd_obj.run()
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/develop.py", line 27, in
> run
>     self.install_for_development()
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/develop.py", line 85, in
> install_for_development
>     self.run_command('egg_info')
>   File "/usr/local/lib/python2.4/distutils/cmd.py", line 333, in
> run_command
>     self.distribution.run_command(command)
>   File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in
> run_command
>     cmd_obj.run()
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/egg_info.py", line 171,
> in run
>     self.find_sources()
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/egg_info.py", line 252,
> in find_sources
>     mm.run()
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/egg_info.py", line 306,
> in run
>     self.add_defaults()
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/egg_info.py", line 333,
> in add_defaults
>     rcfiles = list(walk_revctrl())
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/sdist.py", line 45, in
> walk_revctrl
>     for item in ep.load()(dirname):
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/sdist.py", line 52, in
> _default_revctrl
>     for path in finder(dirname,path):
>   File "/Users/jhsware/groksandbox/lib/python2.4/site-packages/
> setuptools-0.6c7-py2.4.egg/setuptools/command/sdist.py", line 98, in
> entries_finder
>     log.warn("unrecognized .svn/entries format in %s", dirname)
> NameError: global name 'log' is not defined
> While:
>   Installing.
>   Processing develop directory '/Users/jhsware/groksandbox/MiniSite/
> ProtonCMS'.
>
> An internal error occured due to a bug in either zc.buildout or in a
> recipe being used:
> Traceback (most recent call last):
>   File "/private/var/folders/+Z/+ZQQ18YzHNKsGEc8HyUpQk+++TI/-Tmp-/
> tmpGx17aR/zc.buildout-1.2.1-py2.4.egg/zc/buildout/buildout.py", line
> 1509, in main
>   File "/private/var/folders/+Z/+ZQQ18YzHNKsGEc8HyUpQk+++TI/-Tmp-/
> tmpGx17aR/zc.buildout-1.2.1-py2.4.egg/zc/buildout/buildout.py", line
> 335, in install
>   File "/private/var/folders/+Z/+ZQQ18YzHNKsGEc8HyUpQk+++TI/-Tmp-/
> tmpGx17aR/zc.buildout-1.2.1-py2.4.egg/zc/buildout/buildout.py", line
> 573, in _develop
>   File "/private/var/folders/+Z/+ZQQ18YzHNKsGEc8HyUpQk+++TI/-Tmp-/
> tmpGx17aR/zc.buildout-1.2.1-py2.4.egg/zc/buildout/easy_install.py",
> line 896, in develop
> AssertionError
>
> ** setup.py **
> from setuptools import setup, find_packages
>
> version = '0.0'
>
> setup(name='ProtonCMS',
>       version=version,
>       description="",
>       long_description="""\
> """,
>       # Get strings from http://www.python.org/pypi?%3Aaction=list_classifiers
>       classifiers=[],
>       keywords="",
>       author="",
>       author_email="",
>       url="",
>       license="",
>       package_dir={'': 'src'},
>       packages=find_packages('src'),
>       include_package_data=True,
>       zip_safe=False,
>       install_requires=['setuptools',
>                         'grok',
>                         'zc.catalog',
>                         'hurry.query',
>                         'hurry.workflow',
>                         # Add extra requirements here
>                         ],
>       entry_points="""
>       # Add entry points here
>       """,
>       )
>
> Mvh Sebastian
>
>
>
> _______________________________________________
> Grok-dev mailing list
> Grok-dev at zope.org
> http://mail.zope.org/mailman/listinfo/grok-dev



More information about the Grok-dev mailing list