[Distutils] Bug in setuptools/command/sdist.py: global name 'log' is not defined
David Wolever
wolever at cs.toronto.edu
Wed Feb 13 16:35:18 CET 2008
When I use ``py setup.py develop``, I get this error:
Traceback (most recent call last):
File "setup.py", line 79, in ?
entry_points = {
File "/usr/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/lib/python2.4/distutils/dist.py", line 946, in
run_commands
self.run_command(cmd)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/
setuptools/command/develop.py", line 27, in run
self.install_for_development()
File "/usr/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/lib/python2.4/distutils/cmd.py", line 333, in run_command
self.distribution.run_command(command)
File "/usr/lib/python2.4/distutils/dist.py", line 966, in run_command
cmd_obj.run()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/
setuptools/command/egg_info.py", line 171, in run
self.find_sources()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/
setuptools/command/egg_info.py", line 252, in find_sources
mm.run()
File "/usr/lib/python2.4/site-packages/setuptools-0.6c7-py2.4.egg/
setuptools/command/egg_info.py", line 306, in run
self.add_defaults()
File "/usr/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 "/usr/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 "/usr/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 "/usr/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
It looks like the version of my .svn/entries file is newer (head -
n1 .svn/entries: 9).
I fixed this by adding "from distutils import log" at the stop of
setuptools/command/sdist.py.
The version, as suggested by the stack trace, is 0.6c7.
David
More information about the Distutils-SIG
mailing list