I'm having a strange problem on my Nokia N900, running Maemo. The code I'm running is:
Code:
#!/usr/bin/python
import sys
from PyQt4 import QtGui
import gst # ***
app = QtGui.QApplication(sys.argv) # ***
When I run this, it prints "Segmentation Fault". However, if I comment out either of the two lines I marked, then it doesn't complain and terminates normally.
The fact I get a segmentation fault rather than a traceback implies to me that it's importing one or both of the libraries in compiled C/C++ form, which is then throwing the error. This means I have less of a meaningful traceback. Is there a way to use gdb (or another programme) to debug a module which I'm importing into python? Can anyone shed any light on this? This problem doesn't exist on my desktop - so I'm guessing it's something to do with the Maemo configuration (hence posting here and not in programming

)