Friday, July 11, 2008

pointless dumb bugs...

As I briefly mentioned yesterday in my post about 'Eclipse, Subversion and Mac OSX' along with my SVN issues on my Mac I was having SVN issues on my Centos 5 box relating to Python and the setuptools. Well while thinking it was an SVN issue help me solve my Mac problem, it actually had nothing to do with my Centos/easy_install problem. Basically after I finished fixing my Mac/Eclipse issue I took the time to actually read the error I was recieving when installing 'eggs' via easy_install. The error actually was a simple Python error.
error: global 'log' not declared.
sorry I don't remember the exact error and since I've fixed it, I don't exactly see it any more
Anyways... so it turns out the Python imports were not being passed between packages 'correctly', or it just wasn't working on my server... anyways the simple fix was to add the following line to the file/package in question:

from distutils import log
 the file on my end was '/usr/lib/python2.4/site-packages/setuptools/command/sdist.py'. It is probably an error in other packages too, but as since I haven't run into them yet.... All I hope is that it gets fixed with future updates, we'll see what happens.

No comments: