Python Setuptools problem with Subversion 1.5 on Ubuntu 8.04 Hardy Heron

I was building some third party applications that are required for the Pinax project, when I ran into problems with setuptools.  At first, I thought that it was a problem with setuptools itself, so I removed it via apt-get and then installed it once again.  That did not solve the problem, however, as it turns out to be a bug in the setuptools Python code, which you will see in the stack trace when it happens:

File "/usr/lib/python2.5/site-packages/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

To solve the problem, put the following in setuptools/command/sdist.py at the point where it calls "log":

import logging
log = logging.

getLogger(__file__)

And Bob's your uncle.

Web citations
0 Comments, 0 trackbacks (Trackback URL)

0 responses to Python Setuptools problem with Subversion 1.5 on Ubuntu 8.04 Hardy Heron

Leave a Comment
  1. (required)
  2. Ignore this field:
  3. Don't put anything in this field:
    Don't put anything here:
  4. Leave this empty:
    (required)
  5. Your email is not publically displayed.