having problem using xlrd

Kelie kf9150 at gmail.com
Wed Nov 21 13:42:00 EST 2007


Hello,

I tried using xlrd to read an Excel file and kept getting this error:

AttributeError: 'Book' object has no attribute 'mem'

>>> import xlrd
>>> p = r'C:\2.xls'
>>> wb = xlrd.open_workbook(p)
>>> wb.get_sheets()
AttributeError: 'Book' object has no attribute 'mem'

>>> wb.get_record_parts()
AttributeError: 'Book' object has no attribute 'mem'

Any hint?

Thanks!

p.s. i tried posting the question at the python-excel mailing list.
but it seems failed. if it shows up later, sorry for crossposting.



More information about the Python-list mailing list