odd distribute/setuptools issue
February 26th, 2010I’m using the system python 2.6 install on Snow Leopard, and occasionally get this when doing instally-type things:
/Library/Python/2.6/site-packages/setuptools/command/install_scripts.py:3: UserWarning: Module pkg_resources was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
from pkg_resources import Distribution, PathMetadata, ensure_directory
/Library/Python/2.6/site-packages/setuptools/command/install_scripts.py:3: UserWarning: Module site was already imported from /System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site.pyc, but /Library/Python/2.6/site-packages is being added to sys.path
from pkg_resources import Distribution, PathMetadata, ensure_directory
warning: no previously-included files matching '*.*' found under directory 'docs/_templates'
I try to be good about using virtualenv and pip and whatnot, but I probably slipped up somewhere. Either way, I finally got tired of seeing those warnings all the time and actually read them. Throwing caution to the wind, I deleted /System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/pkg_resources.pyc and everything seems to be working. hth