Python Forum
SystemError: error return without exception set!!! - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: SystemError: error return without exception set!!! (/thread-30503.html)



SystemError: error return without exception set!!! - faryad13 - Oct-23-2020

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.


RE: SystemError: error return without exception set!!! - ATARI_LIVE - Oct-23-2020

I am not sure if open file then need close when done?


RE: SystemError: error return without exception set!!! - faryad13 - Oct-23-2020

yes....this was the problem.
when I closed the excel file it was OK again. Interesting!
Thank you.


RE: SystemError: error return without exception set!!! - ATARI_LIVE - Oct-23-2020

Big Grin