Error on jybot --version”

41 views
Skip to first unread message

MichaelSh

unread,
Nov 16, 2010, 9:34:07 AM11/16/10
to robotframework-users
Hi,
I’ve installed python, rf and ride. The installs went smoothly and
everything operated well.
OS=WinXP, SP3
C:\WINDOWS>pybot --version
Robot Framework 2.5.4 (Python 2.7 on win32)
C:\WINDOWS>python -V
Python 2.7

Now I’ve installed jython:
java -jar jython_installer-2.5.2rc2.jar
added ";c:\jython2.5.2rc2\bin;c:\jython2.5.2rc2;" to Path
Set "JYTHON_HOME=c:\jython2.5.2rc2;c:\jython2.5.2rc2\bin"
When I try to run “c:\jybot --version” I get following error
Traceback (most recent call last):
File "C:\Python27\Lib\site-packages\robot\runner.py", line 307, in
<module>
import robot
File "C:\Python27\Lib\site-packages\robot\__init__.py", line 36, in
<module>
os._posix = os.JavaPOSIX(os.PythonPOSIXHandler())
AttributeError: 'module' object has no attribute 'JavaPOSIX'

Any help appreciated

Thanks,
Michael

Pekka Klärck

unread,
Nov 16, 2010, 10:07:07 AM11/16/10
to michae...@gmail.com, robotframework-users
2010/11/16 MichaelSh <michae...@gmail.com>:

>
> Now I’ve installed jython:
> java -jar jython_installer-2.5.2rc2.jar
> added  ";c:\jython2.5.2rc2\bin;c:\jython2.5.2rc2;" to Path
> Set "JYTHON_HOME=c:\jython2.5.2rc2;c:\jython2.5.2rc2\bin"
> When I try to run “c:\jybot --version” I get following error
> Traceback (most recent call last):
>  File "C:\Python27\Lib\site-packages\robot\runner.py", line 307, in
> <module>
>    import robot
>  File "C:\Python27\Lib\site-packages\robot\__init__.py", line 36, in
> <module>
>    os._posix = os.JavaPOSIX(os.PythonPOSIXHandler())
> AttributeError: 'module' object has no attribute 'JavaPOSIX'

This looks weird. The breakage occurs in a workaround code we have for
a Jython bug. This code uses some Jython internals, and it could be
that they have changes in Jython 2.5.2rc2 compared to the Jython
2.5.1. Could you try installing Jython 2.5.1 and see does that fix the
problem? If it does, we nevertheless need to change this piece of code
in RF 2.5.5.

Cheers,
.peke
--
Agile Tester/Developer/Consultant :: http://eliga.fi
Lead Developer of Robot Framework :: http://robotframework.org

MichaelSh

unread,
Nov 16, 2010, 10:38:30 AM11/16/10
to robotframework-users
Hi
I've installed Jython 2.5.1 and it fixed the problem.

c:\jybot --version
"Robot Framework 2.5.4 (Jython 2.5.1 on java1.6.0_20)

10xs
Michael

On Nov 16, 5:07 pm, Pekka Klärck <p...@iki.fi> wrote:
> 2010/11/16 MichaelSh <michael.sh...@gmail.com>:

Pekka Klärck

unread,
Nov 16, 2010, 10:50:53 AM11/16/10
to michae...@gmail.com, robotframework-users
2010/11/16 MichaelSh <michae...@gmail.com>:

> Hi
> I've installed Jython 2.5.1  and it fixed the problem.
>
> c:\jybot --version
> "Robot Framework 2.5.4 (Jython 2.5.1 on java1.6.0_20)

Great. It seems we have some testing to do with Jython 2.5.2rc2.
Submitted an issue about it:
http://code.google.com/p/robotframework/issues/detail?id=707

Reply all
Reply to author
Forward
0 new messages