Re: TypeError when trying to change the column width

55 views
Skip to first unread message

John Machin

unread,
Aug 19, 2012, 3:45:20 AM8/19/12
to python...@googlegroups.com
On Friday, August 17, 2012 2:30:28 AM UTC+10, Bea wrote:

  File "C:\Python27\lib\site-packages\xlwt\Column.py", line 36, in get_biff_record
    return ColInfoRecord(self._index, self._index, self.width, self._xf_index, options, self.unused).get()
TypeError: __init__() takes exactly 6 arguments (7 given)

You appear to have  a damaged installation of xlwt ... Column.py is from the latest (0.7.4) version but BiffRecords.py (which contains the ColInfoRecord class being instantiated by the above code) can only be from an earlier version. I suggest that you delete every file in C:\Python27\lib\site-packages\xlwt, then get version 0.7.4 from PyPI (http://pypi.python.org/pypi/xlwt/) and install it.
Reply all
Reply to author
Forward
0 new messages