load_workbook: TypeError: expected <type 'long'>

Issue #991 resolved
Yves Estermann created an issue


I have an issue while opening a workbook using load_workbook due to some character contained in the file (looks like #521 with different type):

File "/home/user/.local/lib/python2.7/site-packages/openpyxl/descriptors/base.py", line 59, in _convert
    raise TypeError('expected ' + str(expected_type))
TypeError: expected <type 'long'>

Please find enclosed a sample file that triggers the issue.

Comments (8)

  1. Yves Estermann reporter

    I removed the problematic element from the template as a workaround, it is not kept anyway.
    Therefore I'm lowering the priority to minor.

  2. Victor Arroyo

    The issue is still present in 2.6.x and 2.5.x. I had to backtrack to 2.4.9 in order for the library to open the excel file

  3. Log in to comment