Igor Rondarev(deleted)
|
python2.7 (gdb-prereq): missing _scruct module
|
Igor Rondarev(deleted)
01/25/2016 10:44 AM
post115606
|
python2.7 (gdb-prereq): missing _scruct module
Hello!
Seems than current python 2.7 build cannot work with gdb 7.x and Qt Creator IDE (Linux, at least with 3.2.0 and 3.5.1
versions of IDE).
Steps to reproduce:
- try to debug any Qt application using "Debug" button.
Result: Debug feature does not work, "Window-> Views-> Debugger Log" contains at least these error lines:
------------------------- cut ---------------------------
>&"Traceback (most recent call last):\n"
>&" File \"<string>\", line 1, in <module>\n"
>&" File \"/opt/qtcreator-3.2.0/share/qtcreator/debugger/gdbbridge.py\", line 14, in <module>\n"
>&" import struct\n"
>&" File \"/opt/650/host/linux/x86/usr/python27.svn/lib/python2.7/struct.py\", line 1, in <module>\n"
>&" from _struct import *\n"
>&"ImportError: No module named _struct\n"
------------------------- cut ---------------------------
(full log is attached)
help('modules') command also fails:
------------------------- cut ---------------------------
Python 2.7.2 (default, Feb 22 2012, 13:21:29)
[GCC 4.1.0] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> help('modules')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/650/host/linux/x86/usr/python27/lib/python2.7/site.py", line 466, in __call__
import pydoc
File "/opt/650/host/linux/x86/usr/python27/lib/python2.7/pydoc.py", line 55, in <module>
import sys, imp, os, re, types, inspect, __builtin__, pkgutil
File "/opt/650/host/linux/x86/usr/python27/lib/python2.7/inspect.py", line 41, in <module>
from operator import attrgetter
ImportError: No module named operator
>>>
------------------------- cut ---------------------------
Is any additional information needed?
Regards,
Igor
|
|
|