Ich versuche mit Python und Pandas eine Excel-Datei zu öffnen, noch im alten .xls-Format. Was normalerweise mit pd.read_excel() im Handumdrehen erledigt ist, will dieses Mal einfach nicht klappen. Die Fehlermeldung:
XLRDError: Workbook is encrypted
Nach langem Pröbeln habe ich das Problem so gelöst: Ich konvertiere die Datei zuerst mit dem Msoffcrypto-tool (für die Installation: pip3 install msoffcrypto-tool). Dabei verwende ich das Standardpasswort VelvetSweatshop.
msoffcrypto-tool encrypted.xls decrypted.xlsx -p VelvetSweatshop
Die neue Datei kann ich dann ganz normal in Pandas einlesen.