public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
From: Greg Law <gnu@greglaw.net>
To: gdb@sourceware.org
Subject: CVS builds not working with Python?
Date: Mon, 17 Sep 2012 16:24:00 -0000	[thread overview]
Message-ID: <50574EAD.3040504@greglaw.net> (raw)

Hi list,

I can't seem to get a build of gdb from cvs to work properly with 
Python. When I start gdb I get a warning message, and an attempt to 
import gdb from Python generates an exception, like so:

  $ ./gdb/gdb -q
Python Exception <type 'exceptions.ImportError'> No module named gdb:

warning: Could not load the Python gdb module from 
`/usr/local/share/gdb/python'.

warning: Limited Python support is available from the _gdb module.
(gdb) python
 >import gdb
 >end
Traceback (most recent call last):
   File "<string>", line 1, in <module>
ImportError: No module named gdb
Error while executing Python code.
(gdb)

This worked until recently. I've tried it with a clean checkout from two 
different machines (one CentOS and one Ubuntu) and they both show the 
problem. I've tried passing --with-python to configure, but it seems to 
make no difference.

Am I doing something wrong, or has something rotted here recently?

Greg

             reply	other threads:[~2012-09-17 16:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-17 16:24 Greg Law [this message]
2012-09-17 16:38 ` Jan Kratochvil

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50574EAD.3040504@greglaw.net \
    --to=gnu@greglaw.net \
    --cc=gdb@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).