[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyQt] SystemError: PyEval_EvalFrameEx returned a result with an error set
From: Florian Bruhin <me () the-compiler ! org>
Date: 2015-09-29 6:55:19
Message-ID: 20150929065519.GO1393 () tonks
[Download RAW message or body]
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
[Attachment #2 (multipart/signed)]
This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.
Hi!
Unfortunately I don't have a minimal example ready (I gave it a quick
try, and I got segfaults...), but Python 3.5 seems to have uncovered
an issue with my code which was hidden before.
I have a custom QNetworkAccessManager which returns a custom
QNetworkReply in createRequest, which has a wrong signature for
readData (missing maxlen parameter):
def readData(self):
...
This worked fine with Python 3.4 (because the reply only returned
bytes() anyways), but with 3.5 I get this:
TypeError: readData() takes 1 positional argument but 2 were given
During handling of the above exception, another exception occurred:
SystemError: PyEval_EvalFrameEx returned a result with an error set
Of course this was an issue with my code, but it seems there's an
issue somewhere with PyQt as well.
Here is the (corrected) code:
https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/browser/network/networkreply.py#L130
ErrorNetworkReply gets used here:
https://github.com/The-Compiler/qutebrowser/blob/master/qutebrowser/browser/network/networkmanager.py#L352
I'll try to work on a minimal example again later this week or next
week, but no promises - I have a bit much on my plate right now.
Florian
--
http://www.the-compiler.org | me@the-compiler.org (Mail/XMPP)
GPG: 916E B0C8 FD55 A072 | http://the-compiler.org/pubkey.asc
I love long mails! | http://email.is-not-s.ms/
["signature.asc" (application/pgp-signature)]
[Attachment #6 (text/plain)]
_______________________________________________
PyQt mailing list PyQt@riverbankcomputing.com
https://www.riverbankcomputing.com/mailman/listinfo/pyqt
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic