Skip to content

CI Error AttributeError: 'ExcelFile' object has no attribute 'engine' #30217

Closed
@WillAyd

Description

@WillAyd

Showing up in

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=22986&view=logs

Traceback (most recent call last):
  File "D:\a\1\s\pandas\io\excel\_base.py", line 907, in __del__
    self.close()
  File "D:\a\1\s\pandas\io\excel\_base.py", line 890, in close
    if self.engine == "openpyxl":
AttributeError: 'ExcelFile' object has no attribute 'engine'

Looks to be caused by changes in #30096 - I think need to make it self.reader.engine. But definitely shows this code getting hit

@jbrockmendel

Metadata

Metadata

Assignees

No one assigned

    Labels

    CIContinuous IntegrationIO Excelread_excel, to_excel

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions