xlrd installation issue

357 views
Skip to first unread message

Gideon Catz

unread,
May 9, 2012, 4:03:33 PM5/9/12
to python-excel
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

Craig Barnes

unread,
May 9, 2012, 7:04:31 PM5/9/12
to python...@googlegroups.com
On 9 May 2012 21:03, Gideon Catz <gen...@gmail.com> wrote:
>
> Hello everyone.

Hi Gideon
Python 3 is not supported yet. You will need to use python 2

--
Craig

'The first time any man's freedom is trodden on - we are all damaged.'
Jean-Luc Picard
()  ascii ribbon campaign - against html mail
/\

Gideon Catz

unread,
May 13, 2012, 4:24:36 PM5/13/12
to python-excel
Thanks Craig.

For the time being I found this:
http://groups.google.com/group/python-excel/browse_thread/thread/9c35652202f1eb32


On May 10, 2:04 am, Craig Barnes <cjbarne...@gmail.com> wrote:

Thomas Kluyver

unread,
May 14, 2012, 7:29:41 AM5/14/12
to python...@googlegroups.com
On Sunday, 13 May 2012 21:24:36 UTC+1, Gideon Catz wrote:
For the time being I found this:
http://groups.google.com/group/python-excel/browse_thread/thread/9c35652202f1eb32

Just to make it 100% clear: it's a development branch, so please don't rely on it for anything important, and be aware that there may still be problems with it.

That said, if you're willing to test it, thank-you, and let me know how it goes.

Best wishes,
Thomas
Reply all
Reply to author
Forward
0 new messages