The bug tracker for setuptools 0.7 or higher is on BitBucket

 

Issue4

Title subversion 1.5 working copy causes problem in entries_finder: NameError: global name 'log' is not defined
Priority bug Status resolved
Superseder Nosy List drue, durin42, gsf, jaraco, jfkw, mgedmin, pje, tld
Assigned To Keywords

Created on 2008-05-08.13:06:44 by jfkw, last changed 2008-10-02.17:29:03 by pje.

Messages
msg194 (view) Author: pje Date: 2008-10-02.17:29:03
It was released some time ago.
msg193 (view) Author: jaraco Date: 2008-10-02.16:54:47
0.6c9 fixes the issue for me.  Thanks!
msg192 (view) Author: drue Date: 2008-10-02.16:53:16
Seconding mgedmin's request for a release with this fix.
msg159 (view) Author: mgedmin Date: 2008-09-05.16:29:14
Would you *please* release setuptools 0.6c9 with this fix?
msg69 (view) Author: pje Date: 2008-08-05.14:45:40
Fixed in SVN, trunk and 0.6 branch
msg62 (view) Author: jaraco Date: 2008-07-21.13:25:50
Until this issue is fixed in a released version, I've made a patched 0.6c8
version available.

easy_install http://www.jaraco.com/ASP/eggs/setuptools-0.6c8_svn15fix.egg
msg59 (view) Author: durin42 Date: 2008-07-15.19:30:16
I just checked in trunk - the import of log appears to have been fixed, so the 
only remaining problem is the new version number needs to be accepted by the 
commands.
msg57 (view) Author: tld Date: 2008-07-13.18:21:32
Manually checking out and installing current 0.6dev, using nothing but "python
setup.py build && python setup.py install" seems to resolve the issue.
msg56 (view) Author: gsf Date: 2008-07-11.19:59:34
In addition to the patch, sdist.py should include "from distutils import log" --
that's where the error is coming from.
msg14 (view) Author: durin42 Date: 2008-05-12.18:15:58
There's a patch which fixes the underlying problem (although not the missing 
import of log) at http://bugs.python.org/issue2770 which was marked as a duplicate 
of this issue.
msg5 (view) Author: jfkw Date: 2008-05-08.13:06:44
When I upgraded to subversion-1.5, working copies using various combinations of
virtualenv, zc.buildout, setuptools all stopped working with errors similar to
the following:

python: /opt/python24/python/bin/python
virtualenv (svn trunk) activated
working copy: svn://svn.zope.org/repos/main/z3c.formdemo/trunk
virtualenv python bootstrap.py, .bin/buildout
try to upgrade setuptools to dev copy per PJE mailing list post:
(formdemo) /software/z3c/formdemo $ easy_install setuptools==dev06
Searching for setuptools==dev06
Reading http://pypi.python.org/simple/setuptools/
Best match: setuptools dev06
Downloading
http://svn.python.org/projects/sandbox/branches/setuptools-0.6/#egg=setuptools-dev06
Doing subversion checkout from
http://svn.python.org/projects/sandbox/branches/setuptools-0.6/ to
/tmp/easy_install-MKC07e/setuptools-0.6
Processing setuptools-0.6
Running setup.py -q bdist_egg --dist-dir
/tmp/easy_install-MKC07e/setuptools-0.6/egg-dist-tmp-izAnB2
unrecognized .svn/entries format; skipping .
Traceback (most recent call last):
  File "/software/z3c/formdemo/bin/easy_install", line 7, in ?
    sys.exit(
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 1671, in main
    with_ei_usage(lambda:
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 1659, in with_ei_usage
    return f()
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 1675, in <lambda>
    distclass=DistributionWithoutHelpCommands, **kw
  File "/opt/python24/./python/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/opt/python24/./python/lib/python2.4/distutils/dist.py", line 946, in
run_commands
    self.run_command(cmd)
  File "/opt/python24/./python/lib/python2.4/distutils/dist.py", line 966, in
run_command
    cmd_obj.run()
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 211, in run
    self.easy_install(spec, not self.no_deps)
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 446, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 476, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 655, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 930, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/easy_install.py",
line 919, in run_setup
    run_setup(setup_script, args)
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/sandbox.py",
line 26, in run_setup
    DirectorySandbox(setup_dir).run(
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/sandbox.py",
line 63, in run
    return func()
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/sandbox.py",
line 29, in <lambda>
    {'__file__':setup_script, '__name__':'__main__'}
  File "setup.py", line 94, in ?
    'zope.traversing',
  File "/opt/python24/./python/lib/python2.4/distutils/core.py", line 149, in setup
    dist.run_commands()
  File "/opt/python24/./python/lib/python2.4/distutils/dist.py", line 946, in
run_commands
    self.run_command(cmd)
  File "/opt/python24/./python/lib/python2.4/distutils/dist.py", line 966, in
run_command
    cmd_obj.run()
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/bdist_egg.py",
line 167, in run
    self.run_command("egg_info")
  File "/opt/python24/./python/lib/python2.4/distutils/cmd.py", line 333, in
run_command
    self.distribution.run_command(command)
  File "/opt/python24/./python/lib/python2.4/distutils/dist.py", line 966, in
run_command
    cmd_obj.run()
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/egg_info.py",
line 171, in run
    self.find_sources()
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/egg_info.py",
line 252, in find_sources
    mm.run()
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/egg_info.py",
line 306, in run
    self.add_defaults()
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/egg_info.py",
line 333, in add_defaults
    rcfiles = list(walk_revctrl())
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/sdist.py",
line 45, in walk_revctrl
    for item in ep.load()(dirname):
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-py2.4.egg/setuptools/command/sdist.py",
line 52, in _default_revctrl
    for path in finder(dirname,path):
  File
"/software/z3c/formdemo/lib/python2.4/site-packages/setuptools-0.6c8-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


Apologies for the lack of additional detail here, I've reverted to
subversion-1.4 and recreated all working copies. This was experienced on all
working copies of various projects after upgrading to subversion-1.5, and was
fully fixed when reverting to subversion-1.4.
History
Date User Action Args
2008-10-02 17:29:03pjesetstatus: chatting -> resolved
messages: + msg194
2008-10-02 16:54:47jaracosetmessages: + msg193
2008-10-02 16:53:16druesetstatus: resolved -> chatting
nosy: + drue
messages: + msg192
2008-09-11 15:38:28pjesetstatus: chatting -> resolved
2008-09-05 16:29:15mgedminsetstatus: resolved -> chatting
nosy: + mgedmin
messages: + msg159
2008-08-05 14:45:40pjesetstatus: chatting -> resolved
nosy: + pje
messages: + msg69
2008-07-21 13:25:50jaracosetnosy: + jaraco
messages: + msg62
2008-07-15 19:30:16durin42setmessages: + msg59
2008-07-13 18:21:32tldsetnosy: + tld
messages: + msg57
2008-07-11 19:59:35gsfsetnosy: + gsf
messages: + msg56
2008-05-12 18:16:00durin42setstatus: unread -> chatting
nosy: + durin42
messages: + msg14
2008-05-08 13:06:44jfkwcreate