Issue1999

classification
Title: Jython 2.5.2 is not working in HP and IBM platforms‏
Type: Severity: normal
Components: Versions: Jython 2.5
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: fwierzbicki, jeff.allen, knettem
Priority: normal Keywords:

Created on 2012-12-26.12:56:34 by knettem, last changed 2013-02-25.21:52:31 by fwierzbicki.

Files
File name Uploaded Description Edit Remove
unnamed knettem, 2012-12-27.17:49:57
unnamed knettem, 2012-12-27.17:53:58
Messages
msg7550 (view) Author: naresh (knettem) Date: 2012-12-26.12:56:33
I am trying to use the Jython in IBM AIX and HP machines to test our framework which is based on JAVA.
when trying to run our python and jython based testcases using system test framework we are getting below errors in jython.err file

Error: could not find libjava.so
Error: could not find Java 2 Runtime Environment.” (Shared library of java)

Trying to find in online whether jython is supported on these two platforms HP and IBM and i could not able to get proper info.
msg7553 (view) Author: Jeff Allen (jeff.allen) Date: 2012-12-27.15:31:01
Jython is not very sensitive to the OS: in many ways, Jython treats Java as the platform, rather than the OS. I believe it runs on AIX and HP Linux but haven't done that myself.

The error message you quote is characteristic of not being able to run Java. Assuming you can run Jython straightforwardly at the command prompt, it may be that down in your test framework the LD_LIBRARY_PATH in effect when you launch Java (or the jython launch script) does not include the location of libjava.so. Or it may be JAVA_HOME that is at fault.

At the moment it looks like your problem occurs before you get as far as Jython. Let us know whether furher investigation still points to Jython.
msg7554 (view) Author: naresh (knettem) Date: 2012-12-27.17:49:57
Hi Jeff,

Thanks for your response.
I have exported the LD_LIBRARY_PATH to the java libjava.so files location i.e. /java/jdk1.6_64/jre/lib/ppc64/
in our script we are calling the start jython function and that time it is creating the jython err file with below mentioned error message.

Thanks,
Naresh

> Subject: [issue1999] Jython 2.5.2 is not working in HP and IBM platforms‏
> To: n.nareshkumar@hotmail.com
> From: report@bugs.jython.org
> Date: Thu, 27 Dec 2012 15:31:02 +0000
> 
> 
> Jeff Allen added the comment:
> 
> Jython is not very sensitive to the OS: in many ways, Jython treats Java as the platform, rather than the OS. I believe it runs on AIX and HP Linux but haven't done that myself.
> 
> The error message you quote is characteristic of not being able to run Java. Assuming you can run Jython straightforwardly at the command prompt, it may be that down in your test framework the LD_LIBRARY_PATH in effect when you launch Java (or the jython launch script) does not include the location of libjava.so. Or it may be JAVA_HOME that is at fault.
> 
> At the moment it looks like your problem occurs before you get as far as Jython. Let us know whether furher investigation still points to Jython.
> 
> ----------
> nosy: +jeff.allen
> 
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue1999>
> _______________________________________
msg7555 (view) Author: naresh (knettem) Date: 2012-12-27.17:53:58
also i gone through the jython library platform.py file and it contains some list of below platforms only

Mac, windows, redhat, cent os etc.... here there is no HP or IBM platform in that py file. 
platform.py file location -- > jython\2.5.2\Lib\Platform.py. here i am using 2.5.2 version

> Subject: [issue1999] Jython 2.5.2 is not working in HP and IBM platforms‏
> To: n.nareshkumar@hotmail.com
> From: report@bugs.jython.org
> Date: Thu, 27 Dec 2012 17:49:57 +0000
> 
> 
> naresh added the comment:
> 
> Hi Jeff,
> 
> Thanks for your response.
> I have exported the LD_LIBRARY_PATH to the java libjava.so files location i.e. /java/jdk1.6_64/jre/lib/ppc64/
> in our script we are calling the start jython function and that time it is creating the jython err file with below mentioned error message.
> 
> Thanks,
> Naresh
> 
> > Subject: [issue1999] Jython 2.5.2 is not working in HP and IBM platforms‏
> > To: n.nareshkumar@hotmail.com
> > From: report@bugs.jython.org
> > Date: Thu, 27 Dec 2012 15:31:02 +0000
> > 
> > 
> > Jeff Allen added the comment:
> > 
> > Jython is not very sensitive to the OS: in many ways, Jython treats Java as the platform, rather than the OS. I believe it runs on AIX and HP Linux but haven't done that myself.
> > 
> > The error message you quote is characteristic of not being able to run Java. Assuming you can run Jython straightforwardly at the command prompt, it may be that down in your test framework the LD_LIBRARY_PATH in effect when you launch Java (or the jython launch script) does not include the location of libjava.so. Or it may be JAVA_HOME that is at fault.
> > 
> > At the moment it looks like your problem occurs before you get as far as Jython. Let us know whether furher investigation still points to Jython.
> > 
> > ----------
> > nosy: +jeff.allen
> > 
> > _______________________________________
> > Jython tracker <report@bugs.jython.org>
> > <http://bugs.jython.org/issue1999>
> > _______________________________________
> 
> Added file: http://bugs.jython.org/file1317/unnamed
> 
> _______________________________________
> Jython tracker <report@bugs.jython.org>
> <http://bugs.jython.org/issue1999>
> _______________________________________
msg7556 (view) Author: Jeff Allen (jeff.allen) Date: 2012-12-27.20:08:40
This is definitely a message you get from Java when it can't start, rather than from Jython when it goes wrong. Google it: I found some stuff specific to HP-UX, and maybe it will mean something to you. I would guess jython.err is defined by your test to contain the stderr output of the jython launcher script.

If you have scope to do so, try running a script in the same circumstances that dumps you the critical variables. Maybe the test framework resets them.

Also, the jython launcher allows you to pass arguments to Java. The command:
    jython -J-version
results in Java identifying its version and exiting, for example.

As for platform.py, I think only CPython needs most of that. Your platform *is* on there:
>>> import platform
>>> platform.system()
'Java'
:-)
History
Date User Action Args
2013-02-25 21:52:31fwierzbickisetpriority: normal
2013-02-25 21:52:22fwierzbickisetnosy: + fwierzbicki
versions: + Jython 2.5, - 2.5.2
2012-12-27 20:08:40jeff.allensetmessages: + msg7556
2012-12-27 17:53:58knettemsetfiles: + unnamed
messages: + msg7555
2012-12-27 17:49:57knettemsetfiles: + unnamed
messages: + msg7554
2012-12-27 15:31:02jeff.allensetnosy: + jeff.allen
messages: + msg7553
2012-12-26 12:56:34knettemcreate