osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ImportError: No module named _gdb


Didier thanks for your prompt reply.

I installed a pre-built version of Python.
As you said, probably something is missing.

I tried to google packages related to gdb, but ain't had no luck.

Do you have any idea if it is a compiler directive? I mean I can compile Python from source. Not a problem.

Let me know..

On Monday, June 2, 2014 7:07:22 AM UTC+1, dieter wrote:
> Marcelo Sardelich <msardelich at gmail.com> writes:
> 
> > So I'm trying to implement pretty printing information using gdb-python27 on Windows7
> 
> >
> 
> > Hopefully, someone experienced the same issue.
> 
> >
> 
> > GDB is working fine, but when I run gdb-python27 I got the following error (related to a python import):
> 
> >
> 
> > C:\MinGW\bin>gdb-python27.exe
> 
> > Traceback (most recent call last):
> 
> >   File "<string>", line 70, in <module>
> 
> >   File "<string>", line 67, in GdbSetPythonDirectory
> 
> >   File "c:\mingw\share\gdb/python\gdb\__init__.py", line 19, in <module>
> 
> >     import _gdb
> 
> > ImportError: No module named _gdb
> 
> 
> 
> Likely, an external ("C") extension (named "_gdb") must be build
> 
> (and installed) - and apparently, this is not yet done in your installation.