October 25th, 2008 posted by Bender Rodríguez
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.
And Bob's your uncle.
"In all life one should comfort the afflicted, but verily, also, one should afflict the comfortable, and especially when they are comfortably, contentedly, even happily wrong."
John Kenneth Galbraith