Closed yanne closed 10 years ago
Original comment by janne.t....@gmail.com
on May 10, 2011.
Do you possibly have also Jython2.2 installed and used by RF accidentally? This is the only explanation I can think of since the import statement at line 17 uses parentheses, and support for those was added in Python 2.4.
How do you start RF?
Can you find out what Jython version the jybot command uses? (by running "cat which jybot
")
Original comment by damon....@gmail.com
on May 11, 2011.
Here is the cat info:
$ cat which jybot
#
#
http://www.apache.org/licenses/LICENSE-2.0
#
#
#
jython="jython"
runner="/usr/local/lib/python2.6/dist-packages/robot/runner.py"
if uname | grep -q CYGWIN; then
runner=cygpath -wa "$runner"
fi
$jython "$runner" "$@"
We use a run shell script to call RF jybot $ARGS
I seem to have two jythons installed: drwxr-xr-x 7 dhermann dhermann 4096 2010-10-19 08:43 jython2.5.1 drwxr-xr-x 10 dhermann dhermann 4096 2010-10-12 09:25 jython2.5.2b2
which one should I remove and do I just rm -rf the dir?
Thanks for the prompt reply :D
Original comment by pekka.klarck
on May 12, 2011.
Could you run jython --version
to find out what's your active Jython version?
Original comment by janne.t....@gmail.com
on Sep 25, 2011.
This problem is indeed caused by too old Jython version, 2.5.1 or newer is recommended.
None
This issue was originally opened at Google Code on May 10, 2011.