星期日, 十一月 16, 2008

解决ubuntu下python的setuptools版本0.6c8的NameError: global name 'log' is not defined问题

问题描述:
$ sudo apt-cache show python-setuptools
...
Version: 0.6c8-0ubuntu2
...
$ sudo easy_install http://trac-hacks.org/svn/customfieldadminplugin/0.11
...
NameError: global name 'log' is not defined

问题解决:
$ sudo apt-get remove python-setuptools
$ svn co 'http://svn.python.org/projects/sandbox/branches/setuptools-0.6/' setuptools-dev06
$ cd setuptools-dev06
$ sudo python setup.py
$ sudo easy_install http://trac-hacks.org/svn/customfieldadminplugin/0.11

问题解决!

没有评论: