← Back to team overview

sikuli-driver team mailing list archive

[Bug 584471] Re: 0.10.1 parser error: 'with' will become a reserved keyword in Python 2.6

 

--1. I suppose we are talking about Sikuli X-1.0rc2

--2. when running your scripts outside the IDE, I guess you are not using the Sikuli methods (Eclipse/pydev e.g. uses a seperately installed Jython)
so at least for running the scripts from commandline: use the Sikuli supported run methods: http://sikuli.org/docx/faq/010-command-line.html

--3. how to solve this in Eclipse: I do not know - sorry

-- 
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