Hi,<br><br>Kindly help, I've got this error when running my script:<br><br>AttributeError: 'module' object has no attribute 'open_workbook'<br><br><br>Here's my code:<br><br>#!/usr/bin/python<br><br>
import xlrd<br>import sys<br><br>mySpreadsheet = xlrd.open_workbook(open(sys.argv[1]))<br>firstSheet = wb.sheet_by_index(0)<br><br>for myRows in range(sh.nrows):<br>    print firstSheet.row_values(myRows)<br><br><br>Here's the error message:<br>
<br>root@nebuchadnezzar:/home/test/project# ./xlrd.py test.xls <br>Traceback (most recent call last):<br>  File "./xlrd.py", line 3, in <module><br>    import xlrd<br>  File "/home/jayam/project/xlrd.py", line 6, in <module><br>
    mySpreadsheet = xlrd.open_workbook(open(sys.argv[1]))<br>AttributeError: 'module' object has no attribute 'open_workbook'<br><br><br>Thanks,<br><br><br>Jay<br>