Answers for "systemerror pyeval_evalframeex returned a result with an error set"

0

systemerror pyeval_evalframeex returned a result with an error set

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 at 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/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <https://www.riverbankcomputing.com/pipermail/pyqt/attachments/20150929/749e86cf/attachment.sig>
Posted by: Guest on March-22-2021

Code answers related to "systemerror pyeval_evalframeex returned a result with an error set"

Browse Popular Code Answers by Language