sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #32323
[Bug 1453886] Re: [Jython] platform.architecture() does not work from sikuli-script.jar --- Jython problem
you might try with the latest Jython 2.7.0 (this is also bundled with SikuliX 1.1.0).
If this does not work either, you have to live with it until it sis fixed in Jython.
In JVM environments the relevant system architecture is depending on the
architecture of the JVM (on Windows 64Bit, you could have a 32-Bit or a
64-Bit JVM running).
The JVM architecture of the running JVM can be retrieved using the system property
os.arch
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1453886
Title:
[Jython] platform.architecture() does not work from sikuli-script.jar
--- Jython problem
Status in Sikuli:
Won't Fix
Bug description:
To determine some test parameters we are looking to check the system
architecture configuration (32 vs 64 specifically).
When in an interactive jython session, I get the following:
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes\jasmine.jar
Jython 2.7b2 (default:a5bc0032cf79+, Apr 22 2014, 21:20:17)
[Java HotSpot(TM) Client VM (Oracle Corporation)] on java1.7.0_17
Type "help", "copyright", "credits" or "license" for more information.
>>> import platform
>>> print platform.architecture()
('32bit', '')
But when I use a sikuli-script.jar interactive session I get the
following:
C:\DeploymentUnit\SikuliX>java -jar sikuli-script.jar -i
Picked up JAVA_TOOL_OPTIONS: -agentlib:jvmhook
Picked up _JAVA_OPTIONS: -Xrunjvmhook -Xbootclasspath/a:C:\PROGRA~1\HP\QUICKT~1\bin\JAVA_S~1\classes;C:\PROGRA~1\HP\QUIC
KT~1\bin\JAVA_S~1\classes\jasmine.jar
Loading HP QuickTest Professional Java Support (version 11.0.0.0) (SUN 1.7.0_17)
SikuliX Package Build: 1.0.1 12SEP2013160242
Hello, this is your interactive Sikuli (rules for interactive Python apply)
use the UP/DOWN arrow keys to walk through the input history
help()<enter> will output some basic Python information
shelp()<enter> will output some basic Sikuli information
... use ctrl-d to end the session
>>> import platform
>>> print platform.architecture()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 887, in architecture
File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 830, in _syscmd_file
File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\platform.py", line 796, in _follow_symlinks
File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 493, in abspath
File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 53, in isabs
File "C:\DeploymentUnit\SikuliX\sikuli-script.jar\Lib\ntpath.py", line 119, in splitdrive
TypeError: 'NoneType' object is unsubscriptable
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1453886/+subscriptions
References