Python Forum
SystemError: error return without exception set!!!
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SystemError: error return without exception set!!!
#1
Hi everybody

I am trying to read s0me data from an excel file in python. Here is a part of my code:

def main():


xl_element = utils.XlsxOpen(r'C:\..........sheet1.xlsx' )
value_1=utils.XlsxGetCellValue(xl_element, "Sheet1", 0 ,0)

print (value_1)

if __name__ == '__main__':
main()

The code was working and showing the values for a while but once when i changed numbers for the cell in value_1 line(0,0),
i see this error:
"SystemError: error return without exception set"

Does anybody can help me? why i have this? because i did not changed something important?

Thank you.
Reply
#2
I am not sure if open file then need close when done?
Reply
#3
yes....this was the problem.
when I closed the excel file it was OK again. Interesting!
Thank you.
Reply
#4
Big Grin
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Receiving this error in my "response" and causes script to return wrong status cubangt 18 1,913 Aug-13-2023, 12:16 AM
Last Post: cubangt
  how to write exception error into logger mg24 3 949 Nov-15-2022, 04:20 PM
Last Post: insharazzak
  SystemError: <method-wrapper '__getattribute__' of EnumMeta object sciloop 4 1,455 Jul-23-2022, 07:57 PM
Last Post: sciloop
  SystemError: initialization of integer failed without raising an exception Anldra12 2 4,293 Apr-19-2022, 10:50 AM
Last Post: Anldra12
  pywin32 Illustrator Throwing Exception Error matthewsjc1 7 5,408 Aug-27-2021, 02:43 AM
Last Post: Larz60+
  return out of loops syntax error felixf 7 3,355 Nov-03-2020, 01:00 PM
Last Post: perfringo
  syntax error on return statement l_butler 5 3,029 May-31-2020, 02:26 PM
Last Post: pyzyx3qwerty
  Exception: Returned Type Mismatch Error devansing 1 5,090 Mar-06-2020, 07:26 PM
Last Post: ndc85430
  Error with print and return commands TheDark_Knight 2 1,900 Jan-15-2020, 04:59 PM
Last Post: TheDark_Knight
  i am getting error while writing code for exception logging rkgupta51179 1 1,815 Nov-03-2019, 05:12 AM
Last Post: buran

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020