sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #44981
Re: [Question #661586]: Unable to import xlrd: Syntax error
Question #661586 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/661586
Status: Open => Answered
RaiMan proposed the following answer:
-- what is the syntax error
the xlrd package has an __init__.py, which by convention is executed by the interpreter when a Python modul is loaded.
The code in that line is Python language level 2.7 and hence gives a syntax error, since Jython 2.5 only supports language level 2.5.
you might try with an older version:
https://pypi.python.org/pypi/xlrd/0.7.1
which is compatible with language level 2.5
Take care that the offending xlrd gets out of reach for SikuliX.
if you have problems:
- tell exactly where you have your xlrd folder
- run in the SikuliX IDE
for e in sys.path: print e
... and post the output here
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.