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

Bug #1506359 reported by RaiMan
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
Fix Released
Critical
RaiMan

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

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → Fix Committed
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 1.1.1
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Critical
RaiMan (raimund-hocke)
summary: [1.1.0] Linux: not working wmctrl should not terminate SikuliX, but only
- block App class usage
+ block App class usage --- fixed 1.1.1 2015-10-17
RaiMan (raimund-hocke)
summary: [1.1.0] Linux: not working wmctrl should not terminate SikuliX, but only
- block App class usage --- fixed 1.1.1 2015-10-17
+ block App class usage --- fixed 1.1.1-2015-10-17
RaiMan (raimund-hocke)
Changed in sikuli:
status: Fix Committed → Fix Released
Revision history for this message
Gizmo (gramps-gramps) wrote :

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

Revision history for this message
RaiMan (raimund-hocke) wrote :

@Gizmo
ok, thanks for the pointer. I will again have a look.

Have you checked, wether the App class functions work?

what Linux?

Revision history for this message
David Pérez (david-perez-ingeniero) wrote :

Related problem:
http://stackoverflow.com/questions/34443779/wmctrl-not-executable-while-running-sikulix-script-in-headless-mode

I'm experiencing this with SikuliX 1.1.0 and CentOS 7.X, with Xvfb

Revision history for this message
David Pérez (david-perez-ingeniero) wrote :

wmctrl is already installed and in the PATH.

Revision history for this message
David Pérez (david-perez-ingeniero) wrote :

java -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar /home/jenkins/tools/sikuli/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] RunTimeIDE: *** terminating: command 'wmctrl' is not executable
please check the Availability!

WHen running with "ssh -X" (X Windows forwarding) it works ok.

Revision history for this message
David Pérez (david-perez-ingeniero) wrote :

Related info:
https://answers.launchpad.net/sikuli/+question/272434

A window manager must be installed.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.