python - PySide QApplication([]) segfaults, but only in non-interactive ipython session -


i read empty list argument qapplication should work (instead of sys.argv). in case work when running in interactive ipython shell, executing ipython results in segmentation fault. idea why happens? makes difference?

this works:

[jhennrich@tp-arch qt_test]$ ipython2 python 2.7.12 (default, jun 28 2016, 08:31:05)  type "copyright", "credits" or "license" more information.  ipython 5.1.0 -- enhanced interactive python. ?         -> introduction , overview of ipython's features. %quickref -> quick reference.      -> python's own system. object?   -> details 'object', use 'object??' details.  in [1]: pyside.qtcore import *    ...: pyside.qtgui import *    ...:     ...: app = qapplication([])    ...:  /home/jhennrich/.gtkrc-2.0:38: error: scanner: unterminated string constant  in [2]:  

(i tried more code, application shows window , stuff)

when executed script doesnt work:

segfault1.py:

from pyside.qtcore import * pyside.qtgui import *  app = qapplication([]) 

running it:

[jhennrich@tp-arch qt_test]$ ipython2 segfault1.py  segmentation fault (core dumped) [jhennrich@tp-arch qt_test]$ ipython2 


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -