This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: "Help, Captain Python!"
- From: Phil Muldoon <pmuldoon at redhat dot com>
- To: Michael Snyder <msnyder at vmware dot com>
- Cc: "gdb at sourceware dot org" <gdb at sourceware dot org>
- Date: Tue, 27 Apr 2010 23:05:09 +0100
- Subject: Re: "Help, Captain Python!"
- References: <4BD73A20.4060208@vmware.com>
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