load spreadsheet example failed
Created originally on Bitbucket by tkuiper
In [30]: from openpyxl.reader.excel import load_workbook
In [31]: wb = load_workbook('pulsar-obs.xlsx')
AttributeError Traceback (most recent call last) .... /usr/lib/pymodules/python2.6/openpyxl/reader/excel.pyc in load_workbook(filename) 43 try: 44 # add properties
---> 45 wb.properties = read_properties_core(xml_source = archive.get_from_name(arc_name = ARC_CORE))
46
47
/usr/lib/pymodules/python2.6/openpyxl/reader/workbook.pyc in read_properties_core(xml_source)
50 properties.last_modified_by = ''
51
---> 52 properties.created = W3CDTF_to_datetime(root.find(QName(NAMESPACES['dcterms'], 'created').text).text)
53 properties.modified = W3CDTF_to_datetime(root.find(QName(NAMESPACES['dcterms'], 'modified').text).text)
54
AttributeError: 'NoneType' object has no attribute 'text'
Perhaps this is the fault of the file itself, probably from latest Macintosh version of Excel. The file is small. I'll attach it if I can find a way.
Attachments: pulsar-obs.xlsx