← Back to team overview

sikuli-driver team mailing list archive

[Bug 1506359] Re: [1.1.0] Linux: not working wmctrl should not terminate SikuliX, but only block App class usage --- fixed 1.1.1-2015-10-17

 

Hi, while attempting to run the  SikuliX IDE, SikuliX was not starting
and was complaining that both 'wmctrl' and 'xdotool' is not executable
(in two separate lines).

Therefore, I have retrieved the nightly build V1.1.1-20151126, did the
setup and now the IDE starts....

However, I am still getting an error message on the stdout/stderr:

------------------------------------------------------------
running SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
-jar ./sikulix.jar
[info] runcmd: lsb_release -i -r -s
[info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
[info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
[error] command 'wmctrl' is not executable
command 'xdotool' is not executable
Please check the availability - some features might not work without!
------------------------------------------------------------

A quick search for both binaries using 'which' revealed that at least
wmctrl is available and can be executed:

which wmctrl
/usr/bin/wmctrl

Running /usr/bin/wmctrl:

wmctrl 1.07
Usage: wmctrl [OPTION]...
Actions:
  -m                   Show information about the window manager and
                       about the environment.
  -l                   List windows managed by the window manager.
  -d                   List desktops. The current desktop is marked
                       with an asterisk.
  -s <DESK>            Switch to the specified desktop.
  -a <WIN>             Activate the window by
.
.
.

The xdotool was not part of my linux setup, hence I downloaded it, did a
static compilation and now it is available and working!

Therefore, the only issue right now is the fact that the SikuliX IDE is
identifying wmctrl as missing when in fact it is available and in the
PATH.

Thanks again,
Gizmo

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1506359

Title:
  [1.1.0] Linux: not working wmctrl should not terminate SikuliX, but
  only block App class usage --- fixed 1.1.1-2015-10-17

Status in Sikuli:
  Fix Released

Bug description:
  Trying to run Sikuli 1.1.0 on CentOS7

  Managed to get all required RPMs installed an running the following on
  a remote server forwarding the X session via SSH to a local Windows-
  based X server (XLaunch)

  Managed to run the setup, after that I am getting as follows:

  [sikuli@localhost src]$ ./runsikulix
  running SikuliX: -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
  -jar ./sikulix.jar
  [info] runcmd: lsb_release -i -r -s
  [error] RunTimeINIT: fatal error: java.io.IOException: Cannot run program "lsb_release": error=2, No such file or directory
  [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3)
  [info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9)
  [error] RunTimeIDE:  *** terminating: command 'wmctrl' is not executable
  please check the Availability!
  [sikuli@localhost src]$ which wmctrl
  /usr/bin/wmctrl
  [sikuli@localhost src]$ wmctrl -V
  1.07
  [sikuli@localhost src]$

  Cant really figure out this one - could this be a case of wmctrl
  requiring some kind of desktop environment or windows management
  system running? Im running raw X session - nothing on top of it and
  could run Setup just fine.

  Thanks, 
  Marcel

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1506359/+subscriptions


References