openpyxl version 3.1.0 exhibits different behavior than 3.0.10
The following code works fine with openpyxl version 3.0.10 and fails with the following error in openpyxl version 3.1.0 :
sheet_index = request.get_array(field_name='file')
Error : {TypeError}'set' object is not subscriptable
The request is an ExcelRequest.
The code that initiates this request is : tester = app.test_client() input_file_path = from_resources('test', 'unit', 'web', 'portfolio_upload_with_version.xlsx') input_file = FileStorage(stream=open(input_file_path, "rb"), filename="portfolio_upload_with_version.xlsx", return tester.post("/" + division + "/portfolio/upload", data={"file": input_file}, content_type="multipart/form-data")
Please let me know what further information I can provide to help solve this issue.
At this point we are stuck at version 3.0.10 of openpyxl because of this and I havent found a way to modify the code to work with the version 3.1.0 of openpyxl yet.
thanks