Python Forum

Full Version: SystemError: error return without exception set!!!
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
I am not sure if open file then need close when done?
yes....this was the problem.
when I closed the excel file it was OK again. Interesting!
Thank you.
Big Grin