![]() |
2010-11-01
, 00:03
|
|
Posts: 116 |
Thanked: 445 times |
Joined on Apr 2010
@ Oulu, Finland
|
#12
|
Ok, I have Segmentation fault with my program (pyKake), arise with Pr 1.3. As I have tracked it down it is in QApplication, so I just put this short question here (before I create new topic or anything), is this caused compatibility problems with Qt4.7 and current PyQt or have I done something terribly wrong (except that with Pr 1.2 the program worked fine)
The (short) code:
Code:print "a" app = QApplication(sys.argv) # Allways crashes here, newer prints out that b or later ones. print "b" MiscFunctions().loadSettings() print "c" MiscFunctions().controlLircd("start") print "d" main = MainWindow() print "e" if USEFULLSCREEN == True: print "f" main.showFullScreen() else: print "g" main.show() print "h" app.exec_() MiscFunctions().exitFunction()
![]() |
2010-11-01
, 00:18
|
Posts: 3,319 |
Thanked: 5,610 times |
Joined on Aug 2008
@ Finland
|
#13
|
![]() |
2010-11-01
, 14:56
|
Posts: 3,617 |
Thanked: 2,412 times |
Joined on Nov 2009
@ Cambridge, UK
|
#14
|
The Following User Says Thank You to Rob1n For This Useful Post: | ||
![]() |
2010-11-01
, 21:56
|
|
Posts: 116 |
Thanked: 445 times |
Joined on Apr 2010
@ Oulu, Finland
|
#15
|
I've been debugging my app and have found that moving all other Qt import statements (other than QApplication) until after initialising QApplication eliminates the segmentation fault. I don't see why this should be needed though, so I suspect it's more a PyQt issue.
The Following User Says Thank You to jonnenau For This Useful Post: | ||
![]() |
2010-11-02
, 02:20
|
|
Posts: 23 |
Thanked: 16 times |
Joined on Mar 2010
|
#16
|
Traceback (most recent call last): File "/usr/bin/khweeteur_launch.py", line 3, in <module> import khweeteur File "/usr/lib/python2.5/site-packages/khweeteur/__init__.py", line 9, in <module> from PyQt4.QtGui import * RuntimeError: the sip module implements API v8.0 but the PyQt4.QtGui module requires API v7.1
![]() |
2010-11-02
, 08:35
|
Posts: 47 |
Thanked: 41 times |
Joined on Jan 2010
@ Finland
|
#17
|
![]() |
2010-11-06
, 16:39
|
|
Posts: 676 |
Thanked: 1,067 times |
Joined on Jul 2010
@ Kyiv, Ukraine
|
#18
|
>>> from PyQt4.QtGui import * Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: the sip module implements API v8.0 but the PyQt4.QtGui module requires API v7.1
![]() |
2010-11-10
, 11:40
|
|
Posts: 288 |
Thanked: 113 times |
Joined on Dec 2009
@ Germany
|
#19
|
#!/usr/bin/env python # -*- coding: utf-8 -*- # import sys from PyQt4.QtGui import QApplication ##NOTE: Uncommenting this import (even each on it's own) cause a segfault ##NOTE: Using the same import after initializing QApplication() works! #import gobject, glib, evolution print "hello1" app = QApplication(sys.argv) print "hello2" ##NOTE: This does not cause a segfault: import gobject, glib, evolution print "hello3"
![]() |
2010-11-11
, 20:32
|
|
Posts: 166 |
Thanked: 191 times |
Joined on Dec 2007
@ Oulu, Finland
|
#20
|
Can someone point the bug for this to vote for?Code:>>> from PyQt4.QtGui import * Traceback (most recent call last): File "<stdin>", line 1, in <module> RuntimeError: the sip module implements API v8.0 but the PyQt4.QtGui module requires API v7.1
http://talk.maemo.org/showpost.php?p...9&postcount=79