Re: AttributeError: 'module' object has no attribute 'open_workbook'

2009-01-26 Thread John Machin
On Jan 27, 3:07 am, MRAB wrote: > Jay Jesus Amorin wrote: [snip] >  > Here's the error message: >  > >  > r...@nebuchadnezzar:/home/test/project# ./xlrd.py test.xls >  > Traceback (most recent call last): >  >   File "./xlrd.py", line 3, in >  >     import xlrd >  >   File "/home/jayam/project/xl

Re: AttributeError: 'module' object has no attribute 'open_workbook'

2009-01-26 Thread MRAB
Jay Jesus Amorin wrote: > Hi, > > Kindly help, I've got this error when running my script: > > AttributeError: 'module' object has no attribute 'open_workbook' > > > Here's my code: > > #!/usr/bin/python > > import xlrd > import sys > > mySpreadsheet = xlrd.open_workbook(open(sys.argv[1])) > first