yanne / api-test

0 stars 0 forks source link

Error in javaclient.py @ line 17 #31

Closed yanne closed 10 years ago

yanne commented 10 years ago

None

This issue was originally opened at Google Code on May 10, 2011.

yanne commented 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")

yanne commented 10 years ago

Original comment by damon....@gmail.com on May 11, 2011.

Here is the cat info:


$ cat which jybot

!/bin/bash

Copyright 2008-2009 Nokia Siemens Networks Oyj

#

Licensed under the Apache License, Version 2.0 (the "License");

you may not use this file except in compliance with the License.

You may obtain a copy of the License at

#

http://www.apache.org/licenses/LICENSE-2.0

#

Unless required by applicable law or agreed to in writing, software

distributed under the License is distributed on an "AS IS" BASIS,

WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

See the License for the specific language governing permissions and

limitations under the License.

#

jybot -- Jython start up script for Robot Framework on unixes

#

Executable to use when calling Jython. Must be a full path unless the

directory containing "jython" is in PATH.

jython="jython"

Path to robot/runner.py

runner="/usr/local/lib/python2.6/dist-packages/robot/runner.py"

Use Windows path on Cygwin.

if uname | grep -q CYGWIN; then runner=cygpath -wa "$runner" fi

Run Robot on Jython interpreter

$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

yanne commented 10 years ago

Original comment by pekka.klarck on May 12, 2011.

Could you run jython --version to find out what's your active Jython version?

yanne commented 10 years ago

Original comment by damon....@gmail.com on May 12, 2011.

Jython 2.2.1 on java1.6.0_24

cheers

yanne commented 10 years ago

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.