LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Mobile (http://www.linuxquestions.org/questions/linux-mobile-81/)
-   -   Maemo PyQt4+Gstreamer Segfault (Python) (http://www.linuxquestions.org/questions/linux-mobile-81/maemo-pyqt4-gstreamer-segfault-python-856169/)

Snark1994 01-13-2011 04:13 PM

Maemo PyQt4+Gstreamer Segfault (Python)
 
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 ;))


All times are GMT -5. The time now is 10:51 PM.