Hi,
I am following the Download documentation here:
to try to get the Excel download to work.
I can confirm that the dataframe I am sending to Excel is just a regular pandas DataFrame.
When the callback triggers, and outputs to dcc.Download data, I get an error saying that data is expecting a tuple or a list, and not a dict.
Here is the exact error (with content removed)
dash._grouping.SchemaTypeValidationError: Schema: [<Output `excel-download.data`>]
Path: ()
Expected type: (<class 'tuple'>, <class 'list'>)
Received value of type <class 'dict'>:
{'content': 'REMOVED TOO LONG', 'filename': 'mailing.xlsx', 'type': None, 'base64': True}
I am on
dash 2.8.1
dcc 2.0.0
The source code clearly says dcc.Download is expecting a Dict in data, so I presume it is just the schema checker throwing up on me?
Any insights are appreciated.
Kind Regards,
Jason