sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #01845
[Bug 584471] Re: 0.10.1 parser error: 'with' will become a reserved keyword in Python 2.6
To solve it on Eclipse, add in the first line of your script:
from __future__ import with_statement
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/584471
Title:
0.10.1 parser error: 'with' will become a reserved keyword in Python
2.6
Status in Sikuli:
Fix Released
Bug description:
The workaround i posted in
https://bugs.launchpad.net/sikuli/+bug/583085/comments/4 only works as
long as it is located in the main .py.
When put into a user module i import using the strategy RaiMan posted
on 2010-05-19 in
https://answers.launchpad.net/sikuli/+question/110877:
<path>\bugged.sikuli\bugged.py:
=====================================
import sys
sys.path.append(getBundlePath())
import bug
=====================================
it aborts with:
SyntaxError: ("'with' will become a reserved keyword in Python 2.6",
('C:\\bugged.sikuli\\bug.py', 13, 1, ''))
Because of the error i am unable to save it as .skl, so i had to
attach bug.py on it's own (save as <path>\bugged.sikuli\bug.py to
follow example).
This is with 0.10.1-RC2 from
https://bugs.launchpad.net/sikuli/+bug/580000/comments/9 on 32Bit XP
Pro SP3