"Help, Captain Python!"

Phil Muldoon pmuldoon@redhat.com
Tue Apr 27 22:23:00 GMT 2010


On 04/27/2010 08:25 PM, Michael Snyder wrote:
> 'import site' failed, use -v for traceback

I'm not super sure, but it looks like something may be wrong with your
Python install?


On my system (Fedora 12) I see:

rpm -ql python  | grep site
/usr/lib/python2.6/site-packages
/usr/lib64/python2.6/site-packages
/usr/lib64/python2.6/site-packages/README
/usr/lib64/python2.6/site.py
/usr/lib64/python2.6/site.pyc
/usr/lib64/python2.6/site.pyo

Reading around, if you have a custom installation of Python (i.e. build
from source) you may need to set the PYTHONPATH variable.  I'm very
much not an expert in Python packaging, though.

Cheers,

Phil



More information about the Gdb mailing list