How to fix corrupted Python search path in Debian 7.5? -
i'm configuring debian 7.5 server, , yesterday mail service server , policyd-spf python plugin running fine.
i added more python-related libraries in order configure plone (python-setuptools, python-dev, python-imaging), , python setup seems corrupted reason.
if run policyd-spf manually, importerror on spf module. opening python interpreter , checking sys.path, following:
['', '/usr/lib/python2.7/site-packages/setuptools-0.6c11-py2.7.egg', '/usr/lib/python2.7/site-packages/virtualenv-1.11.6-py2.7.egg', '/usr/lib/python27.zip', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/lib/python2.7/site-packages']
i noticed /usr/lib/python2.7/site-packages there, /usr/lib/python2.7/dist-packages missing, , that's reason import error.
i tried re-installing python , python-all packages, hoping reinstall have fixed it, still have same problem.
does know debian configured dist-packages included in search path, , how can recover it?
thanks!
i fixed next re-install:
apt-get install python2.7-minimal --reinstall
reinstalling python , python-dev wasn't solving, python2.7-minimal made job.
python debian
No comments:
Post a Comment