osdir.com


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

ImportError: No module named _gdb


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.