← Back to team overview

sikuli-driver team mailing list archive

[Bug 1717461] [NEW] [1.1.1] subprocess.Popen does not seem to work on macOS 10.12+ --- fixed 1.1.2 2017-09-15

 

Public bug reported:

Hello,

I am in the process of creating a script that will run through various
Unreal demos for me - it will launch them with a few arguments and then
kill the process.  So far, I am focusing on having A process launch with
Sikuli on mac.

I have been using subprocess.Popen and I can launch the demo and other
apps from the MacOS terminal just fine using Python.  When I try the
same code in Sikuli, nothing seems to happen - no process opens, the IDE
just reappears with no output as if it has successfully completed the
script.  I have the code to print the output of the process to the
screen, but nothing is output.

----------------------
My Code:

import subprocess

com =
subprocess.Popen("/Applications/Calculator.app/Contents/MacOS/Calculator",
stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

result = com.stdout.read()
print(result)
-----------------------

When running this, I see this output:

2017-09-14 17:15:40.308 JavaAppLauncher[4260:119455] No Info.plist file
in application bundle or no NSPrincipalClass in the Info.plist file,
exiting

Again, the calc app does not open.  However, when I change my code to
run one of the Unreal demos I have on my system, I see no output at all,
yet I do see other prints I have, such as "I am here" to help me follow
the code.

The Unreal demo location for me is here:
/Users/test/Desktop/Mac_Unreal4.17/Hallway.app/Contents/MacOS/Hallway

I have been able to use Sikuli on my Win10 machine to do this exact same
task - so I know Sikuli is up to the job.

I am running nightly build 2017-09-14 and MacOS 10.13 (Beta 9) 17A360a
--  starting to wonder if this is a Beta issue.

Any help or idea would be appreciated - thanks.

** Affects: sikuli
     Importance: Critical
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => Critical

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.2

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

Title:
  [1.1.1] subprocess.Popen does not seem to work on macOS 10.12+ ---
  fixed 1.1.2 2017-09-15

Status in Sikuli:
  Fix Committed

Bug description:
  Hello,

  I am in the process of creating a script that will run through various
  Unreal demos for me - it will launch them with a few arguments and
  then kill the process.  So far, I am focusing on having A process
  launch with Sikuli on mac.

  I have been using subprocess.Popen and I can launch the demo and other
  apps from the MacOS terminal just fine using Python.  When I try the
  same code in Sikuli, nothing seems to happen - no process opens, the
  IDE just reappears with no output as if it has successfully completed
  the script.  I have the code to print the output of the process to the
  screen, but nothing is output.

  ----------------------
  My Code:

  import subprocess

  com =
  subprocess.Popen("/Applications/Calculator.app/Contents/MacOS/Calculator",
  stdout=subprocess.PIPE, stderr=subprocess.STDOUT)

  result = com.stdout.read()
  print(result)
  -----------------------

  When running this, I see this output:

  2017-09-14 17:15:40.308 JavaAppLauncher[4260:119455] No Info.plist
  file in application bundle or no NSPrincipalClass in the Info.plist
  file, exiting

  Again, the calc app does not open.  However, when I change my code to
  run one of the Unreal demos I have on my system, I see no output at
  all, yet I do see other prints I have, such as "I am here" to help me
  follow the code.

  The Unreal demo location for me is here:
  /Users/test/Desktop/Mac_Unreal4.17/Hallway.app/Contents/MacOS/Hallway

  I have been able to use Sikuli on my Win10 machine to do this exact
  same task - so I know Sikuli is up to the job.

  I am running nightly build 2017-09-14 and MacOS 10.13 (Beta 9) 17A360a
  --  starting to wonder if this is a Beta issue.

  Any help or idea would be appreciated - thanks.

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


Follow ups