Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88854

Error when reading excel file using load_workbook from openpyxl

$
0
0

I tried to read in some excel files using openpyxl. The excel file are downloaded from a website and contain several sheets. However, if I download them and try to read in via openpyxl.load_workbook, I get an unusual error message.


screenshot of the error message


I can avoid the problems in two ways:

  1. Opening the excel file in the beginning and activate the editing option.
  2. calling "read_only=True" on load_workbook.

Method 1 is very time consuming, considering I have to process a lot of files. Method 2 leads to a very strange renaming of the sheets, which is in conflict with further processing the files. I always give the full path, so this can not be the problem. Since I found nothing about this problem somewhere else, I hope someone has a solution for this problem.


Viewing all articles
Browse latest Browse all 88854


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>