This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: "Help, Captain Python!"


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]