Hello everyone.
I'm trying to use xlrd 0.7.7 on python 3.2 under Win7 (64).
I ran the install.py installation script and got the folowing output:
----------------------------------------------------------------------------------------------------
running install_lib
byte-compiling c:\Python32\Lib\site-packages\xlrd\biffh.py to
biffh.cpython-32.p
yc
File "c:\Python32\Lib\site-packages\xlrd\biffh.py", line 291
return u""
^
SyntaxError: invalid syntax
byte-compiling c:\Python32\Lib\site-packages\xlrd\compdoc.py to
compdoc.cpython-
32.pyc
File "c:\Python32\Lib\site-packages\xlrd\compdoc.py", line 49
self.name = u''
^
SyntaxError: invalid syntax
byte-compiling c:\Python32\Lib\site-packages\xlrd\formatting.py to
formatting.cp
ython-32.pyc
File "c:\Python32\Lib\site-packages\xlrd\formatting.py", line 152
print "nearest_colour_index for %r is %r -> %r; best_metric is %d"
\
^
SyntaxError: invalid syntax
byte-compiling c:\Python32\Lib\site-packages\xlrd\formula.py to
formula.cpython-
32.pyc
File "c:\Python32\Lib\site-packages\xlrd\formula.py", line 2115
def rangename2drel((rlo, rhi, clo, chi), (rlorel, rhirel, clorel,
chirel), b
rowx=None, bcolx=None, r1c1=0):
^
SyntaxError: invalid syntax
byte-compiling c:\Python32\Lib\site-packages\xlrd\sheet.py to
sheet.cpython-32.p
yc
File "c:\Python32\Lib\site-packages\xlrd\sheet.py", line 963
self_put_cell(rowx, colx, XL_CELL_TEXT, u"", xf_index)
^
SyntaxError: invalid syntax
byte-compiling c:\Python32\Lib\site-packages\xlrd\timemachine.py to
timemachine.
cpython-32.pyc
File "c:\Python32\Lib\site-packages\xlrd\timemachine.py", line 30
False = 0
^
SyntaxError: assignment to keyword
byte-compiling c:\Python32\Lib\site-packages\xlrd\xldate.py to
xldate.cpython-32
.pyc
File "c:\Python32\Lib\site-packages\xlrd\xldate.py", line 116
def xldate_from_date_tuple((year, month, day), datemode):
^
SyntaxError: invalid syntax
byte-compiling c:\Python32\Lib\site-packages\xlrd\__init__.py to
__init__.cpytho
n-32.pyc
File "c:\Python32\Lib\site-packages\xlrd\__init__.py", line 361
u"Consolidate_Area": u"\x00",
^
SyntaxError: invalid syntax
running install_scripts
running install_egg_info
Removing c:\Python32\Lib\site-packages\xlrd-0.7.7-py3.2.egg-info
Writing c:\Python32\Lib\site-packages\xlrd-0.7.7-py3.2.egg-info
----------------------------------------------------------------------------------------------------
When I try to use xlrd in the gode I get a similar error:
import xlrd
File "C:\Python32\lib\site-packages\xlrd\__init__.py", line 361
u"Consolidate_Area": u"\x00",
^
SyntaxError: invalid syntax
Can anyone advise what I should do?
Thanks,
Gideon