* CVS builds not working with Python?
@ 2012-09-17 16:24 Greg Law
2012-09-17 16:38 ` Jan Kratochvil
0 siblings, 1 reply; 2+ messages in thread
From: Greg Law @ 2012-09-17 16:24 UTC (permalink / raw)
To: gdb
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: CVS builds not working with Python?
2012-09-17 16:24 CVS builds not working with Python? Greg Law
@ 2012-09-17 16:38 ` Jan Kratochvil
0 siblings, 0 replies; 2+ messages in thread
From: Jan Kratochvil @ 2012-09-17 16:38 UTC (permalink / raw)
To: Greg Law; +Cc: gdb
On Mon, 17 Sep 2012 18:24:13 +0200, Greg Law wrote:
> 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:
It is because your system GDB Python scripts directory is too old for FSF GDB
HEAD as updated + analysed by Khoo Yit Phang.
Re: Regression for --batch [Re: [RFC] Make python/lib/gdb and submodules proper Python modules]
http://sourceware.org/ml/gdb-patches/2012-09/msg00266.html
http://sourceware.org/ml/gdb-patches/2012-09/txt00010.txt
Use:
$ ./gdb -data-directory ./data-directory
Regards,
Jan
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-09-17 16:38 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-09-17 16:24 CVS builds not working with Python? Greg Law
2012-09-17 16:38 ` Jan Kratochvil
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).