“XLRDERROR: archivo Excel XLSX; No soportado” Código de respuesta

XLRDERROR: archivo Excel XLSX; No soportado

pandas.read_excel('cat.xlsx', engine='openpyxl')
Real Raccoon

Rair xlrderror (file_format_descriptions [file_format] ; no compatible) xlrderror: Excel xlsx file; No soportado

pip install xlrd==1.2.0
Disturbed Donkey

python pandas read_excel xlrderror Excel XLSX Archivo no es compatible

# Make sure pandas is upgraded and that openpyxl is installed then try again
pip install pandas --upgrade
pip install openpyxl
Trained Tuna

XLRDERROR: archivo Excel XLSX; No soportado

As noted in the release email, linked to from the release tweet and noted in large orange warning that appears on the front page of the documentation, and less orange, but still present, in the readme on the repository and the release on pypi:

xlrd has explicitly removed support for anything other than xls files.

In your case, the solution is to:

make sure you are on a recent version of Pandas, at least 1.0.1, and preferably the latest release. 1.2 will make his even clearer.
install openpyxl: https://openpyxl.readthedocs.io/en/stable/
change your Pandas code to be:
df1 = pd.read_excel(
     os.path.join(APP_PATH, "Data", "aug_latest.xlsm"),
     engine='openpyxl',
)
Santino

XLRDERROR: archivo Excel XLSX; No soportado

XLRDError: Unsupported format, or corrupt file: Expected BOF record; found b'Sr. No.,'

Neha Pole

Respuestas similares a “XLRDERROR: archivo Excel XLSX; No soportado”

Preguntas similares a “XLRDERROR: archivo Excel XLSX; No soportado”

Más respuestas relacionadas con “XLRDERROR: archivo Excel XLSX; No soportado” en Python

Explore las respuestas de código populares por idioma

Explorar otros lenguajes de código