[PyQt] Segmentation fault when running PyQt5 scripts through ipython

Savici, Andrei T. saviciat at ornl.gov
Fri Apr 14 21:20:18 BST 2017


It works from plain python, or if I run it only once, since then I exit the process cleanly. I just did not expect it to cause segmentation fault. I would have expected a nice error message if the init cannot be run again. And the funny thing is that a similar program written with PyQt4 works.

Andrei

________________________________
From: Barry <barry at barrys-emacs.org>
Sent: Friday, April 14, 2017 6:28 AM
To: Savici, Andrei T.
Cc: pyqt at riverbankcomputing.com
Subject: Re: [PyQt] Segmentation fault when running PyQt5 scripts through ipython

Does ipython run the scripts in the same process?
If so that will not work for a Qt program as you can only init Qt once.

Run your code from normal python instead.

Barry

On 11 Apr 2017, at 16:22, Savici, Andrei T. <saviciat at ornl.gov<mailto:saviciat at ornl.gov>> wrote:


Hi,

I've tried to run a script containing pyqt5 code through ipython3 with `run -i simple.py`. First time it goes through without problems, but if I run it again it yields a segmentation fault.

I would appreciate any help.


Andrei



Here is the script:


import sys
from PyQt5.QtWidgets import QWidget, QPushButton, QApplication
from PyQt5.QtCore import QCoreApplication

class Example(QWidget):
    def __init__(self):
        super().__init__()
        self.initUI()
    def initUI(self):
        self.show()

if __name__ == '__main__':
    app = QApplication(sys.argv)
    ex = Example()
    sys.exit(app.exec_())



I've run it through gdb, and here is the result:



GNU gdb (Ubuntu 7.11.90.20161005-0ubuntu1) 7.11.90.20161005-git
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from python3-dbg...done.
(gdb) set args /usr/bin/ipython3
(gdb) run
Starting program: /usr/bin/python3-dbg /usr/bin/ipython3
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7ffff3740700 (LWP 29905)]
Python 3.5.2+ (default, Sep 22 2016, 12:18:14)
Type "copyright", "credits" or "license" for more information.

IPython 2.4.1 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.

In [1]: run -i simple.py
[New Thread 0x7fffe3810700 (LWP 29907)]
[New Thread 0x7fffe27dc700 (LWP 29908)]
Xlib:  extension "RANDR" missing on display ":0".
[New Thread 0x7fffd24ff700 (LWP 29910)]
[New Thread 0x7fffd1cfe700 (LWP 29911)]
[New Thread 0x7fffd14fd700 (LWP 29912)]
[New Thread 0x7fffc3fff700 (LWP 29913)]
[New Thread 0x7fffc37fe700 (LWP 29914)]
[Thread 0x7fffc3fff700 (LWP 29913) exited]

In [2]: run -i simple.py
[Thread 0x7fffe3810700 (LWP 29907) exited]

Thread 1 "python3-dbg" received signal SIGSEGV, Segmentation fault.
0x00007ffff157a05f in QGuiApplication::font() () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
(gdb) bt
#0  0x00007ffff157a05f in QGuiApplication::font() () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#1  0x00007ffff162ae51 in QFont::QFont() () from /usr/lib/x86_64-linux-gnu/libQt5Gui.so.5
#2  0x00007ffff1b96760 in QWidgetPrivate::QWidgetPrivate(int) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#3  0x00007ffff1bb21ed in QWidget::QWidget(QWidget*, QFlags<Qt::WindowType>) () from /usr/lib/x86_64-linux-gnu/libQt5Widgets.so.5
#4  0x00007ffff2206239 in sipQWidget::sipQWidget (this=0x555556397d80, a0=<optimized out>, a1=...) at ./dbg-build-3.5/QtWidgets/sipQtWidgetspart9.cpp:35574
#5  0x00007ffff220634d in init_type_QWidget (sipSelf=0x7ffff00d57d8, sipArgs=<optimized out>, sipKwds=<optimized out>, sipUnused=<optimized out>, sipOwner=<optimized out>, sipParseErr=<optimized out>)
    at ./dbg-build-3.5/QtWidgets/sipQtWidgetspart9.cpp:44069
#6  0x00007fffe790c7eb in sipSimpleWrapper_init (self=0x7ffff00d57d8, self at entry=<error reading variable: value has been optimized out>, args=(),
    args at entry=<error reading variable: value has been optimized out>, kwds=0x0, kwds at entry=<error reading variable: value has been optimized out>) at siplib.c:9861
#7  0x0000555555653dd9 in wrap_init (self=self at entry=<Example at remote 0x7ffff00d57d8>, args=<optimized out>, wrapped=<optimized out>, kwds=<optimized out>) at ../Objects/typeobject.c:5543
#8  0x00005555557b606f in wrapper_call (wp=0x7ffff2ee6190, args=(), kwds=<optimized out>) at ../Objects/descrobject.c:1186
#9  0x00005555555ef3c2 in PyObject_Call (func=func at entry=<method-wrapper at remote 0x7ffff2ee6190>, arg=arg at entry=(), kw=kw at entry=0x0) at ../Objects/abstract.c:2166
#10 0x00005555556d9536 in do_call (func=func at entry=<method-wrapper at remote 0x7ffff2ee6190>, pp_stack=pp_stack at entry=0x7fffffffa850, na=na at entry=0, nk=nk at entry=0) at ../Python/ceval.c:4938
#11 0x00005555556e6051 in call_function (pp_stack=pp_stack at entry=0x7fffffffa850, oparg=oparg at entry=0) at ../Python/ceval.c:4734
Python Exception <class 'RuntimeError'> Type does not have a target.:
#12 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#13 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff2830040>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff006fe50, argcount=1,
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=(<cell at remote 0x7ffff45f30b8>,), name=0x0, qualname=0x0) at ../Python/ceval.c:4020
#14 0x00005555556e5db6 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff006fe50, argcount=<optimized out>, kws=kws at entry=0x0,
    kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=(<cell at remote 0x7ffff45f30b8>,)) at ../Python/ceval.c:4041
#15 0x00005555557ba8ec in function_call (func=<function at remote 0x7ffff2f3eeb8>, arg=(<Example at remote 0x7ffff00d57d8>,), kw=0x0) at ../Objects/funcobject.c:627
#16 0x00005555555ef3c2 in PyObject_Call (func=func at entry=<function at remote 0x7ffff2f3eeb8>, arg=arg at entry=(<Example at remote 0x7ffff00d57d8>,), kw=kw at entry=0x0) at ../Objects/abstract.c:2166
#17 0x000055555560d014 in method_call (func=<function at remote 0x7ffff2f3eeb8>, arg=(<Example at remote 0x7ffff00d57d8>,), kw=0x0) at ../Objects/classobject.c:330
#18 0x00005555555ef3c2 in PyObject_Call (func=func at entry=<method at remote 0x7ffff2ee5838>, arg=arg at entry=(), kw=kw at entry=0x0) at ../Objects/abstract.c:2166
#19 0x000055555565faf9 in slot_tp_init (self=<optimized out>, args=(), kwds=0x0) at ../Objects/typeobject.c:6276
#20 0x000055555565bba7 in type_call (type=0x555556770be8, args=(), kwds=0x0) at ../Objects/typeobject.c:905
#21 0x00005555555ef3c2 in PyObject_Call (func=func at entry=<PyQt5.QtCore.pyqtWrapperType at remote 0x555556770be8>, arg=arg at entry=(), kw=kw at entry=0x0) at ../Objects/abstract.c:2166
#22 0x00005555556d9536 in do_call (func=func at entry=<PyQt5.QtCore.pyqtWrapperType at remote 0x555556770be8>, pp_stack=pp_stack at entry=0x7fffffffaca0, na=na at entry=0, nk=nk at entry=0)
    at ../Python/ceval.c:4938
#23 0x00005555556e6051 in call_function (pp_stack=pp_stack at entry=0x7fffffffaca0, oparg=oparg at entry=0) at ../Python/ceval.c:4734
Python Exception <class 'RuntimeError'> Type does not have a target.:
#24 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#25 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=_co at entry=<code at remote 0x7ffff00d5a00>, globals=globals at entry=, locals=locals at entry=, args=args at entry=0x0, argcount=argcount at entry=0,
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at ../Python/ceval.c:4020
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#26 0x00005555556e5db6 in PyEval_EvalCodeEx (_co=_co at entry=<code at remote 0x7ffff00d5a00>, globals=globals at entry=, locals=locals at entry=, args=args at entry=0x0, argcount=argcount at entry=0,
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at ../Python/ceval.c:4041
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#27 0x00005555556e5ddf in PyEval_EvalCode (co=co at entry=<code at remote 0x7ffff00d5a00>, globals=globals at entry=, locals=locals at entry=) at ../Python/ceval.c:777
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#28 0x00005555556d4047 in builtin_exec_impl (module=module at entry=<module at remote 0x7ffff7f50c58>, source=<code at remote 0x7ffff00d5a00>, globals=, locals=) at ../Python/bltinmodule.c:956
#29 0x00005555556d4150 in builtin_exec (module=<module at remote 0x7ffff7f50c58>, args=<optimized out>) at ../Python/clinic/bltinmodule.c.h:274
Python Exception <class 'RuntimeError'> Type does not have a target.:
#30 0x000055555564015d in PyCFunction_Call (func=func at entry=<built-in method exec of module object at remote 0x7ffff7f50c58>, args=args at entry=, kwds=kwds at entry=0x0) at ../Objects/methodobject.c:109
#31 0x00005555556e64e1 in call_function (pp_stack=pp_stack at entry=0x7fffffffb000, oparg=oparg at entry=3) at ../Python/ceval.c:4707
Python Exception <class 'RuntimeError'> Type does not have a target.:
#32 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#33 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff4d5edc0>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff45afd28, argcount=3,
    kws=kws at entry=0x0, kwcount=0, defs=0x7ffff4d68b78, defcount=1, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at ../Python/ceval.c:4020
#34 0x00005555556e5db6 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff45afd28, argcount=<optimized out>, kws=kws at entry=0x0,
    kwcount=0, defs=0x7ffff4d68b78, defcount=1, kwdefs=0x0, closure=0x0) at ../Python/ceval.c:4041
Python Exception <class 'RuntimeError'> Type does not have a target.:
#35 0x00005555557ba8ec in function_call (func=<function at remote 0x7ffff4d6f6d0>, arg=, kw=0x0) at ../Objects/funcobject.c:627
Python Exception <class 'RuntimeError'> Type does not have a target.:
#36 0x00005555555ef3c2 in PyObject_Call (func=func at entry=<function at remote 0x7ffff4d6f6d0>, arg=arg at entry=, kw=kw at entry=0x0) at ../Objects/abstract.c:2166
#37 0x00005555556d9998 in ext_do_call (func=func at entry=<function at remote 0x7ffff4d6f6d0>, pp_stack=pp_stack at entry=0x7fffffffb328, flags=flags at entry=1, na=na at entry=1, nk=nk at entry=0)
    at ../Python/ceval.c:5036
Python Exception <class 'RuntimeError'> Type does not have a target.:
#38 0x00005555556e3561 in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3277
#39 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff454b640>, globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, argcount=argcount at entry=4,
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
    kws=0x55555628e240, kwcount=1, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=, qualname=) at ../Python/ceval.c:4020
#40 0x00005555556e5e64 in fast_function (func=func at entry=<function at remote 0x7ffff4b22e00>, pp_stack=pp_stack at entry=0x7fffffffb5a0, n=n at entry=6, na=na at entry=4, nk=nk at entry=1)
    at ../Python/ceval.c:4815
#41 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffb5a0, oparg=oparg at entry=259) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#42 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#43 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff46ec580>, globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, argcount=argcount at entry=0,
    kws=0x55555628b948, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0,
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
    closure=(<cell at remote 0x7ffff45f36b8>, <cell at remote 0x7ffff45f3718>, <cell at remote 0x7ffff45f3898>, <cell at remote 0x7ffff45f3838>), name=, qualname=) at ../Python/ceval.c:4020
#44 0x00005555556e5e64 in fast_function (func=func at entry=<function at remote 0x7ffff2f3ed48>, pp_stack=pp_stack at entry=0x7fffffffb820, n=n at entry=0, na=na at entry=0, nk=nk at entry=0)
    at ../Python/ceval.c:4815
#45 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffb820, oparg=oparg at entry=0) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#46 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#47 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff46ec4c0>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff0071080, argcount=4,
    kws=kws at entry=0x7ffff7f88080, kwcount=0, defs=0x7ffff4703440, defcount=3, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at ../Python/ceval.c:4020
#48 0x00005555556e5db6 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff0071080, argcount=<optimized out>,
    kws=kws at entry=0x7ffff7f88080, kwcount=0, defs=0x7ffff4703440, defcount=3, kwdefs=0x0, closure=0x0) at ../Python/ceval.c:4041
Python Exception <class 'RuntimeError'> Type does not have a target.:
#49 0x00005555557ba8ec in function_call (func=<function at remote 0x7ffff457c3f0>, arg=, kw={}) at ../Objects/funcobject.c:627
Python Exception <class 'RuntimeError'> Type does not have a target.:
#50 0x00005555555ef3c2 in PyObject_Call (func=func at entry=<function at remote 0x7ffff457c3f0>, arg=arg at entry=, kw=kw at entry={}) at ../Objects/abstract.c:2166
#51 0x00005555556d9998 in ext_do_call (func=func at entry=<function at remote 0x7ffff457c3f0>, pp_stack=pp_stack at entry=0x7fffffffbb48, flags=flags at entry=3, na=na at entry=0, nk=nk at entry=0)
    at ../Python/ceval.c:5036
Python Exception <class 'RuntimeError'> Type does not have a target.:
#52 0x00005555556e3561 in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3277
#53 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff4a367c0>, globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, argcount=argcount at entry=5,
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
    kws=0x55555628b550, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=, qualname=) at ../Python/ceval.c:4020
#54 0x00005555556e5e64 in fast_function (func=func at entry=<function at remote 0x7ffff457c4a8>, pp_stack=pp_stack at entry=0x7fffffffbdc0, n=n at entry=5, na=na at entry=5, nk=nk at entry=0)
    at ../Python/ceval.c:4815
#55 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffbdc0, oparg=oparg at entry=5) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#56 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#57 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff4706ac0>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff4609fd0, argcount=2,
    kws=kws at entry=0x7ffff7f88080, kwcount=0, defs=0x7ffff4703f80, defcount=3, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at ../Python/ceval.c:4020
#58 0x00005555556e5db6 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff4609fd0, argcount=<optimized out>,
    kws=kws at entry=0x7ffff7f88080, kwcount=0, defs=0x7ffff4703f80, defcount=3, kwdefs=0x0, closure=0x0) at ../Python/ceval.c:4041
Python Exception <class 'RuntimeError'> Type does not have a target.:
#59 0x00005555557ba8ec in function_call (func=<function at remote 0x7ffff457c560>, arg=, kw={}) at ../Objects/funcobject.c:627
Python Exception <class 'RuntimeError'> Type does not have a target.:
#60 0x00005555555ef3c2 in PyObject_Call (func=func at entry=<function at remote 0x7ffff457c560>, arg=arg at entry=, kw=kw at entry={}) at ../Objects/abstract.c:2166
#61 0x00005555556d9998 in ext_do_call (func=func at entry=<function at remote 0x7ffff457c560>, pp_stack=pp_stack at entry=0x7fffffffc0e8, flags=flags at entry=3, na=na at entry=1, nk=nk at entry=0)
    at ../Python/ceval.c:5036
Python Exception <class 'RuntimeError'> Type does not have a target.:
#62 0x00005555556e3561 in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3277
#63 0x00005555556e5f4d in fast_function (func=func at entry=<function at remote 0x7ffff4b23e00>, pp_stack=pp_stack at entry=0x7fffffffc290, n=n at entry=3, na=na at entry=3, nk=nk at entry=0)
    at ../Python/ceval.c:4805
#64 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffc290, oparg=oparg at entry=2) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#65 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#66 0x00005555556e5f4d in fast_function (func=func at entry=<function at remote 0x7ffff4b221c8>, pp_stack=pp_stack at entry=0x7fffffffc440, n=n at entry=2, na=na at entry=2, nk=nk at entry=0)
    at ../Python/ceval.c:4805
#67 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffc440, oparg=oparg at entry=1) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#68 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#69 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=_co at entry=<code at remote 0x7ffff47eba00>, globals=globals at entry=, locals=locals at entry=, args=args at entry=0x0, argcount=argcount at entry=0,
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at ../Python/ceval.c:4020
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#70 0x00005555556e5db6 in PyEval_EvalCodeEx (_co=_co at entry=<code at remote 0x7ffff47eba00>, globals=globals at entry=, locals=locals at entry=, args=args at entry=0x0, argcount=argcount at entry=0,
---Type <return> to continue, or q <return> to quit---
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at ../Python/ceval.c:4041
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#71 0x00005555556e5ddf in PyEval_EvalCode (co=co at entry=<code at remote 0x7ffff47eba00>, globals=globals at entry=, locals=locals at entry=) at ../Python/ceval.c:777
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#72 0x00005555556d4047 in builtin_exec_impl (module=module at entry=<module at remote 0x7ffff7f50c58>, source=<code at remote 0x7ffff47eba00>, globals=, locals=) at ../Python/bltinmodule.c:956
#73 0x00005555556d4150 in builtin_exec (module=<module at remote 0x7ffff7f50c58>, args=<optimized out>) at ../Python/clinic/bltinmodule.c.h:274
Python Exception <class 'RuntimeError'> Type does not have a target.:
#74 0x000055555564015d in PyCFunction_Call (func=func at entry=<built-in method exec of module object at remote 0x7ffff7f50c58>, args=args at entry=, kwds=kwds at entry=0x0) at ../Objects/methodobject.c:109
#75 0x00005555556e64e1 in call_function (pp_stack=pp_stack at entry=0x7fffffffc7a0, oparg=oparg at entry=3) at ../Python/ceval.c:4707
Python Exception <class 'RuntimeError'> Type does not have a target.:
#76 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#77 0x00005555556e5f4d in fast_function (func=func at entry=<function at remote 0x7ffff4b20338>, pp_stack=pp_stack at entry=0x7fffffffc950, n=n at entry=2, na=na at entry=2, nk=nk at entry=0)
    at ../Python/ceval.c:4805
#78 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffc950, oparg=oparg at entry=1) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#79 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#80 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff454bc40>, globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, argcount=argcount at entry=3,
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
    kws=0x555556286da0, kwcount=2, defs=0x7ffff4549c50, defcount=2, kwdefs=0x0, closure=0x0, name=, qualname=) at ../Python/ceval.c:4020
#81 0x00005555556e5e64 in fast_function (func=func at entry=<function at remote 0x7ffff4b20280>, pp_stack=pp_stack at entry=0x7fffffffcbd0, n=n at entry=7, na=na at entry=3, nk=nk at entry=2)
    at ../Python/ceval.c:4815
#82 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffcbd0, oparg=oparg at entry=514) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#83 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#84 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff454ba00>, globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, argcount=argcount at entry=2,
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
    kws=0x555556281868, kwcount=1, defs=0x7ffff4cc2260, defcount=3, kwdefs=0x0, closure=0x0, name=, qualname=) at ../Python/ceval.c:4020
#85 0x00005555556e5e64 in fast_function (func=func at entry=<function at remote 0x7ffff4b20110>, pp_stack=pp_stack at entry=0x7fffffffce50, n=n at entry=4, na=na at entry=2, nk=nk at entry=1)
    at ../Python/ceval.c:4815
#86 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffce50, oparg=oparg at entry=257) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#87 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#88 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff4b2a280>, globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, argcount=argcount at entry=1,
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
    kws=0x555556281578, kwcount=1, defs=0x7ffff4b3e7d0, defcount=1, kwdefs=0x0, closure=0x0, name=, qualname=) at ../Python/ceval.c:4020
#89 0x00005555556e5e64 in fast_function (func=func at entry=<function at remote 0x7ffff4b3ae00>, pp_stack=pp_stack at entry=0x7fffffffd0d0, n=n at entry=3, na=na at entry=1, nk=nk at entry=1)
    at ../Python/ceval.c:4815
#90 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffd0d0, oparg=oparg at entry=256) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#91 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#92 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff4b2a040>, globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, argcount=argcount at entry=1,
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
    kws=0x5555561033d0, kwcount=0, defs=0x7ffff4b3e768, defcount=1, kwdefs=0x0, closure=0x0, name=, qualname=) at ../Python/ceval.c:4020
#93 0x00005555556e5e64 in fast_function (func=func at entry=<function at remote 0x7ffff4b3ac90>, pp_stack=pp_stack at entry=0x7fffffffd350, n=n at entry=1, na=na at entry=1, nk=nk at entry=0)
    at ../Python/ceval.c:4815
#94 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffd350, oparg=oparg at entry=0) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#95 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#96 0x00005555556e5f4d in fast_function (func=func at entry=<function at remote 0x7ffff47a3e00>, pp_stack=pp_stack at entry=0x7fffffffd500, n=n at entry=1, na=na at entry=1, nk=nk at entry=0)
    at ../Python/ceval.c:4805
#97 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffd500, oparg=oparg at entry=0) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#98 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
#99 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff68bc7c0>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff7e7aa40, argcount=1,
    kws=kws at entry=0x7ffff693b6a0, kwcount=1, defs=0x7ffff4ab60e8, defcount=1, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at ../Python/ceval.c:4020
#100 0x00005555556e5db6 in PyEval_EvalCodeEx (_co=<optimized out>, globals=<optimized out>, locals=locals at entry=0x0, args=args at entry=0x7ffff7e7aa40, argcount=<optimized out>,
    kws=kws at entry=0x7ffff693b6a0, kwcount=1, defs=0x7ffff4ab60e8, defcount=1, kwdefs=0x0, closure=0x0) at ../Python/ceval.c:4041
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#101 0x00005555557ba8ec in function_call (func=<function at remote 0x7ffff4abd110>, arg=, kw=) at ../Objects/funcobject.c:627
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#102 0x00005555555ef3c2 in PyObject_Call (func=func at entry=<function at remote 0x7ffff4abd110>, arg=arg at entry=, kw=kw at entry=) at ../Objects/abstract.c:2166
#103 0x00005555556d9998 in ext_do_call (func=func at entry=<function at remote 0x7ffff4abd110>, pp_stack=pp_stack at entry=0x7fffffffd828, flags=flags at entry=2, na=na at entry=1, nk=nk at entry=1)
    at ../Python/ceval.c:5036
Python Exception <class 'RuntimeError'> Type does not have a target.:
#104 0x00005555556e3561 in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3277
#105 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=<code at remote 0x7ffff6920c40>, globals=<optimized out>, locals=locals at entry=0x0, args=<optimized out>, argcount=argcount at entry=0,
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
    kws=0x555555c91808, kwcount=0, defs=0x7ffff6853c48, defcount=1, kwdefs=0x0, closure=0x0, name=, qualname=) at ../Python/ceval.c:4020
#106 0x00005555556e5e64 in fast_function (func=func at entry=<function at remote 0x7ffff47aa8f8>, pp_stack=pp_stack at entry=0x7fffffffdaa0, n=n at entry=0, na=na at entry=0, nk=nk at entry=0)
    at ../Python/ceval.c:4815
#107 0x00005555556e65d7 in call_function (pp_stack=pp_stack at entry=0x7fffffffdaa0, oparg=oparg at entry=0) at ../Python/ceval.c:4732
Python Exception <class 'RuntimeError'> Type does not have a target.:
#108 0x00005555556e332e in PyEval_EvalFrameEx (f=f at entry=, throwflag=throwflag at entry=0) at ../Python/ceval.c:3238
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#109 0x00005555556e5cec in _PyEval_EvalCodeWithName (_co=_co at entry=<code at remote 0x7ffff7e6d1c0>, globals=globals at entry=, locals=locals at entry=, args=args at entry=0x0, argcount=argcount at entry=0,
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0, name=0x0, qualname=0x0) at ../Python/ceval.c:4020
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#110 0x00005555556e5db6 in PyEval_EvalCodeEx (_co=_co at entry=<code at remote 0x7ffff7e6d1c0>, globals=globals at entry=, locals=locals at entry=, args=args at entry=0x0, argcount=argcount at entry=0,
    kws=kws at entry=0x0, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at ../Python/ceval.c:4041
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#111 0x00005555556e5ddf in PyEval_EvalCode (co=co at entry=<code at remote 0x7ffff7e6d1c0>, globals=globals at entry=, locals=locals at entry=) at ../Python/ceval.c:777
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
Python Exception <class 'RuntimeError'> Type does not have a target.:
#112 0x00005555555bb71d in run_mod (mod=mod at entry=0x555555d12d58, filename=filename at entry=, globals=globals at entry=, locals=locals at entry=, flags=flags at entry=0x7fffffffdd80,
    arena=arena at entry=0x555555cc3730) at ../Python/pythonrun.c:976
Python Exception <class 'RuntimeError'> Type does not have a target.:
#113 0x00005555555be70d in PyRun_FileExFlags (fp=fp at entry=0x555555c67e20, filename_str=filename_str at entry=0x7ffff7e61a30 "/usr/bin/ipython3", start=start at entry=257, globals=globals at entry=,
Python Exception <class 'RuntimeError'> Type does not have a target.:
    locals=locals at entry=, closeit=closeit at entry=1, flags=0x7fffffffdd80) at ../Python/pythonrun.c:929
#114 0x00005555555beaf8 in PyRun_SimpleFileExFlags (fp=fp at entry=0x555555c67e20, filename=<optimized out>, filename at entry=0x7ffff7e61a30 "/usr/bin/ipython3", closeit=closeit at entry=1,
    flags=flags at entry=0x7fffffffdd80) at ../Python/pythonrun.c:396
#115 0x00005555555bec98 in PyRun_AnyFileExFlags (fp=fp at entry=0x555555c67e20, filename=0x7ffff7e61a30 "/usr/bin/ipython3", closeit=closeit at entry=1, flags=flags at entry=0x7fffffffdd80)
    at ../Python/pythonrun.c:80
#116 0x00005555555ceb1c in run_file (fp=fp at entry=0x555555c67e20, filename=filename at entry=0x555555bff310 L"/usr/bin/ipython3", p_cf=p_cf at entry=0x7fffffffdd80) at ../Modules/main.c:318
#117 0x00005555555cf71e in Py_Main (argc=2, argv=0x555555bfe020) at ../Modules/main.c:768
#118 0x00005555555b527c in main (argc=2, argv=0x7fffffffdf98) at ../Programs/python.c:65


_______________________________________________
PyQt mailing list    PyQt at riverbankcomputing.com<mailto:PyQt at riverbankcomputing.com>
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20170414/b7748c8e/attachment-0001.html>


More information about the PyQt mailing list