XLRD is installed and tested:
>>> import xlrd
>>> workbook = xlrd.open_workbook(\'Sample.xls\')
When I read the file through
You could try something like...
import xlrd
def newopen(fileobject, modes):
return fileobject
oldopen = __builtins__.open
__builtins__.open = newopen
InputWorkBook = xlrd.open_workbook(fileobject)
__builtins__.open = oldopen
You may have to wrap the fileobject in StringIO if it isn't already a file handle.