This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: SystemError: error return without exception set
Type: Stage:
Components: Interpreter Core Versions: Python 2.4
process
Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: mwh, nbajpai, terry.reedy
Priority: normal Keywords:

Created on 2005-05-05 15:38 by nbajpai, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (6)
msg25231 - (view) Author: Niraj Bajpai (nbajpai) Date: 2005-05-05 15:38
I am getting following error with Python 2.4.1 relase:

"SystemError: error return without exception set"

my code works fine with earlier release (python 2.4). Its a 
C code build in python so does not leave much traces to 
describe problem more.

Important Notes:

Release name: 2.4.1(final)
Platform: Solaris 2.8
Error: "SystemError: error return without exception set"

msg25232 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-05-06 11:45
Logged In: YES 
user_id=6656

Uh, there's not a lot to go on here.  Can you post some code?
msg25233 - (view) Author: Niraj Bajpai (nbajpai) Date: 2005-05-10 13:50
Logged In: YES 
user_id=1165734

Actually the same error happens in both 2.4 and 2.4.1. I call in 
python code to receive events from C code embedded in python 
interpreter. There are two meaningful events and idle event. I 
commented idle event in the code (C-code) and start seeing this 
error.

from python code:

x.receive(A)

<<<<<<-------- Error happens here

where A can be ,

receive "X"
or
receive "Y"
or 
receive "NOTHING"

In C code when I comment "NOTHING" event generator, I get the 
error. Some meaningful exception in python would have been 
better.

msg25234 - (view) Author: Michael Hudson (mwh) (Python committer) Date: 2005-05-10 13:52
Logged In: YES 
user_id=6656

Are you writing your own C code?  If so, why do you suspect
a bug in Python itself?

(Also, a debug build of python can be useful for this sort
of thing).
msg25235 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2005-05-11 23:07
Logged In: YES 
user_id=593130

When people mix their own C code with CPython and get a 
SystemError like this, the probability that the error is in the 
added code and not the core code is perhaps greater than .95.  
Please consider closing this report as invalid unless and until you 
have evidence that the problem is indeed in the core code.

To get help reviewing your added code, you can post to 
comp.lang.python, the general Python mailing list (python.org), 
or gmane.comp.python.general (gmane.org).

To me, the Python error message seems meaningful enough.  It 
seems to claim that you made an error return without setting an 
exception according to the rules of the C API.  
msg25236 - (view) Author: Niraj Bajpai (nbajpai) Date: 2005-05-12 14:34
Logged In: YES 
user_id=1165734

Agree with the comments made. 
History
Date User Action Args
2022-04-11 14:56:11adminsetgithub: 41950
2005-05-05 15:38:50nbajpaicreate