jmcnamara / XlsxWriter

A Python module for creating Excel XLSX files.
https://xlsxwriter.readthedocs.io
BSD 2-Clause "Simplified" License
3.66k stars 632 forks source link

worksheet.autofit() not working #1039

Closed aescolan closed 10 months ago

aescolan commented 10 months ago

Question

I'm working with Python 3.9.12 and xlsxwriter 3.0.3

I have the following program that works perfectly, but when I add sheet.autofit() it tells me: AttributeError: 'Worksheet' object has no attribute 'autofit'.

What can happen?

imagen

jmcnamara commented 10 months ago

I'm working with Python 3.9.12 and xlsxwriter 3.0.3

The autofit() method was added in v3.0.6. Try upgrade to the latest version (v3.0.9) and it should work.