Numpy and xlrd module for python 2.5 -


i have 2 questions, first, want use numpy module python version 2.5, run "numpy-1.6.1.win32-py2.5.exe" , numpy module added site-packages folder, when import numpy in python shell, it's ok when import in program , run it, error follows:

syntaxerror: 'import *' not allowed 'from .' 

second, want use xlrd module functions, code follows:

file_location=r'c:\users\n.jahan\desktop\python_test_real.xlsx' workbook=xlrd.open_workbook(file_location) 

i error below:

 biff_version = bk.getbof(xl_workbook_globals)   file "c:\python25\lib\site-packages\xlrd\__init__.py", line 1323, in  getbof     raise xlrderror('expected bof record; found 0x%04x' % opcode)  xlrderror: expected bof record; found 0x4b50 

can me? thanks.


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -