← Back to team overview

sikuli-driver team mailing list archive

[Bug 1238197] Re: [1.0.1] Sikuli unable to open some Apps in windows 8

 

I just realized, that the following is already available with version
1.0.1 ;-)

app = os.path.join(r"\\tsarchive", "Storage", "Timeslips", "Installations", Settings.tsVersion, Settings.tsBuild, "setup.exe")
result = run('start /i /b "%s"'%(app))

result contains the textual output, that would be seen if you run the
command on commadline

the first line might contain 
*** error ***

if the trial to run the command returned an error (e.g. program not
found)

generally:
result = run(cmd)

where command contains a string as you would have written it on command
line, means correctly quoted, what has to be quoted on command line.

** Summary changed:

- [1.0.1] Sikuli unable to open some Apps in windows 8
+ [1.0.1] Sikuli unable to open some Apps in windows 8 --- workaround

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

Title:
  [1.0.1] Windows8: App.open() does not work sometimes --- workaround

Status in Sikuli:
  In Progress

Bug description:
  ******** workaround
  you might use the run(cmd) instead of App.open()
  --- Windows
  result = run('start /i /b "%s"'%(app))

  --- Mac
  result = run('open "%s"'%(app))

  --- Linux
  ??? (use a similar command to run something in an independent process)

  result contains the textual output, that would be seen if you run the command on commadline
  the first line might contain
  *** error ***
  if the trial to run the command returned an error (e.g. program not found)

  -----------------------------------------------------------------------------

  
  I have Sikuli R930 installed on Windows 8 Enterprise x64 currently.

  I have a script that installs software and it is not seeming to work
  properly.

  I have 2 App open commands and one works fine and the other just never
  works.

  the one that works fine is this:

  Settings.tscode = App(os.path.join(r"\\tsarchive", "Storage",
  "Timeslips", "Installations", Settings.tsVersion, "utilities",
  "TSCodes.exe"))

  When this is called it opens a code generator application no problem

  The one that does not work is this:

  Settings.tssetup = App(os.path.join(r"\\tsarchive", "Storage",
  "Timeslips", "Installations", Settings.tsVersion, Settings.tsBuild,
  "setup.exe"))

  It never opens and says App not found.

  Same exact script works perfectly on Windows 7 Pro x64

  even if I dumb the APP open command to this:

  tssetup = App(r'"c:\BUILD\Setup.exe"')

  and call tssetup.open()

  it says App not found.

  If i dumb down the App that does work TSCODE to this:

  TSCode = App(r'"c:\BUILD\TSCode.exe"')

  Retested all above with latest V1.01 with same results.

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


References