It seems that the problem is MS. The xls file is very strange, maybe you should contact xlrd support.
But I have a crazy workaround for you: xls2ods . This works for me, although xls2csv is not (SiC!).
So first install catdoc:
$sudo apt-get install catdoc
Then convert your xls file to ods and open ods with pyexcel_ods or whatever you want. To use pyexcel_ods, install it first using pip install pyexcel_ods .
import subprocess from pyexcel_ods import get_data file_basename = 'sample' returncode = subprocess.call(['xls2ods', '{}.xls'.format(file_basename)]) if returnecode > 0:
I get the following output:
OrderedDict([(u'sample', [[u'labo', u'codfarm', u'farmacia', u'direccion', u'localidad', u'nom_medico', u'matricula', u'troquel', u'producto', u'cant_total']])])
source share