Re: [Sikuli-driver] [Question #251798]: CentOS - libtesseract.so.3 error

2014-07-28 Thread RaiMan
Question #251798 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251798

Linked to bug: #1349255
https://bugs.launchpad.net/bugs/1349255
CentOS: how to setup SikuliX --- a script should be available

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Bug 1349255] [NEW] CentOS: how to setup SikuliX --- a script should be available

2014-07-28 Thread RaiMan
Public bug reported:

I have read many posts with similar questions and I have tried to use
them as a guide but I have been unable to overcome my issue with trying
to get Sikuli to work on CentOS 6.x.

From what I can tell this is an issue with Tesseract but I can't figure
out how to correct it. I have performed the following thus far...:

 Installed CentOS 6.x
 Installed some prereqs (dev tools, gcc, cmake, etc)
 Installed OpenCV 2.2
 Installed Leptonica
 Installed Tesseract 3.02.02
 Installed Sikuli 1.0.1

When I run ./runIDE -d 3 -c I get the following output:

running SikuliX-IDE: -Xmx512M -Dapple.laf.useScreenMenuBar 
-Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
-jar ./sikuli-ide.jar -d 3 -c
[debug] Running on Java 7 (1.7.0_45-mockbuild_2013_11_22_18_30-b00)
[debug] --- Sikuli parameters ---
[debug] 1: -d
[debug] 2: 3
[debug] 3: -c
[debug] init user preferences
[debug] locale: en_US
[debug] ResourceLoaderBasic: SikuliX Package Build: 1.0.1 12SEP2013160242
[debug] ResourceLoaderBasic: check: we are running on arch: amd64
[debug] ResourceLoaderBasic: check: using Java at: 
/usr/lib/jvm/java-1.7.0-openjdk-1.7.0.45.x86_64/jre/
[debug] ResourceLoaderBasic: check: Exists libs folder at location of jar? YES: 
/home/user/Sikuli/
[debug] ResourceLoaderBasic: checkLibsDir: /home/user/Sikuli/libs
[debug] ResourceLoaderBasic: loadLib: JXGrabKey
[debug] ResourceLoaderBasic: loadLib: Found: JXGrabKey
[debug] ResourceLoaderBasic: loadLib: Now loaded: JXGrabKey
[debug] ResourceLoaderBasic: checkLibsDir: Using libs at: /home/user/Sikuli/libs
[debug] Screen: initScreens: basic initialization (1 Screen(s) found)
[debug] *** monitor configuration (primary: 0) ***
[debug] Screen 0: S(0)[0,0 1583x687]
[debug] *** end monitor configuration ***
[debug] [I18N] menuShowThumbs
[debug] ResourceLoaderBasic: loadLib: Is already loaded: JXGrabKey
[debug] Sikuli-IDE startup: 1519
[debug] MenuAction.doLoad
[debug] SikuliX Jython Support Build: 1.0.1 12SEP2013160248
[debug] SikuliEditorKit.read
[debug] ImageLocator: found 1405605172817.png in /home/user/Desktop/test.sikuli/
[debug] FileManager: tempfile create: /tmp/sikuli-4166345826942410403.png
[debug] FileManager: tempfile create: /tmp/sikuli-4490415893266343011.py
[debug] JythonScriptRunner: : executeScriptHeader: adding SikuliX Lib path to 
sys.path
/home/user/Sikuli/sikuli-ide.jar/Lib
[debug] Jython: sikuli: __init__: entering
[debug] Jython: sikuli: Sikuli: entering
[debug] Jython: sikuli: Sikuli: constants
[debug] Jython: sikuli: Sikuli: import Region
[debug] Jython: sikuli: Sikuli: import Screen
[debug] Jython: sikuli: Sikuli: Env.addHotkey
[debug] Jython: sikuli: Sikuli: import Match
[debug] Jython: sikuli: Sikuli: import Pattern
[debug] Jython: sikuli: Sikuli: import Location
[debug] Jython: sikuli: Sikuli: import ScreenUnion
[debug] Jython: sikuli: Sikuli: import Finder
[debug] ResourceLoaderBasic: loadLib: VisionProxy
[debug] ResourceLoaderBasic: loadLib: Found: VisionProxy
[error] ResourceLoaderBasic: loadLib: Fatal Error 110: loading: 
libVisionProxy.so
[error] ResourceLoaderBasic: loadLib: Since native library was found, it might 
be a problem with needed dependent libraries
/home/user/Sikuli/libs/libVisionProxy.so: libtesseract.so.3: cannot open shared 
object file: No such file or directory
[error] Terminating SikuliX after a fatal error(110)! Sorry, but it makes no 
sense to continue!
If you do not have any idea about the error cause or solution, run again
with a Debug level of 3. You might paste the output to the QA board.
[debug] SikuliXFinal: cleanUp: 0

I then tried running the ./makeVisionProxy and then copied the
libVisionProxy.so as the README stated but no change.

Thanks in advance

** Affects: sikuli
 Importance: Undecided
 Status: New

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

Title:
  CentOS: how to setup SikuliX --- a script should be available

Status in Sikuli:
  New

Bug description:
  I have read many posts with similar questions and I have tried to use
  them as a guide but I have been unable to overcome my issue with
  trying to get Sikuli to work on CentOS 6.x.

  From what I can tell this is an issue with Tesseract but I can't
  figure out how to correct it. I have performed the following thus
  far...:

   Installed CentOS 6.x
   Installed some prereqs (dev tools, gcc, cmake, etc)
   Installed OpenCV 2.2
   Installed Leptonica
   Installed Tesseract 3.02.02
   Installed Sikuli 1.0.1

  When I run ./runIDE -d 3 -c I get the following output:

  running SikuliX-IDE: -Xmx512M -Dapple.laf.useScreenMenuBar 
-Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine
  -jar ./sikuli-ide.jar -d 3 -c
  [debug] Running on Java 7 (1.7.0_45-mockbuild_2013_11_22_18_30-b00)
  [debug] --- Sikuli parameters ---
  [debug] 1: -d
  [debug] 2: 3
  [debug] 3: -c
  [debug] init user preferences
  [debug] 

Re: [Sikuli-driver] [Question #252116]: Get 403 error

2014-07-28 Thread RaiMan
Question #252116 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252116

Status: Open = Answered

RaiMan proposed the following answer:
the doc link on http://www.sikuli.org  (tab Documentation) is definitely
fixed.

Might be, you should purge your browser cache.

Or if it is not the doc link, then please post the url, that does not
work.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252232]: Using StyledRectangleTarget in python api

2014-07-28 Thread Jerzy
Question #252232 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252232

Status: Answered = Solved

Jerzy confirmed that the question is solved:
Thanks RaiMan, that solved my question.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252274]: How to run sikuli tests (Java) in parallel

2014-07-28 Thread RaiMan
Question #252274 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252274

Status: Open = Answered

RaiMan proposed the following answer:
not really clear, what you mean with sikulix-api.

if it is SikuliX 1.0.1: this is definitely not thread safe with respect
to the concurrent usage of mouse and keyboard in different threads and
other features like paste().

If it is SikuliX 1.1.0-BetaX: at least the mouse usage should be thread
safe now: actions like click are now synchronised, so that only one
action can be processed at one time. Moreover can the mouse usage be
reserved for one thread, so one might create something like transactions
with regard to mouse usage. Synched keyboard usage (type, write) will
follow soon.

Generally: the concurrent usage of the same SikuliX object (e.g.
regions) in different threads should work, as long as changes are only
done in one thread and the usage is somehow synched externally.
Concurrent changes might lead to unexpected results in the current
implementation.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252103]: Not able to use sikuliX snapshot

2014-07-28 Thread RaiMan
Question #252103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252103

Status: Open = Answered

RaiMan proposed the following answer:
this is my OSSRH test pom. this works.

?xml version=1.0?
project xsi:schemaLocation=http://maven.apache.org/POM/4.0.0 
http://maven.apache.org/xsd/maven-4.0.0.xsd; 
xmlns=http://maven.apache.org/POM/4.0.0;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
  modelVersion4.0.0/modelVersion
  groupIdcom.sikulix/groupId
  artifactIdsikulixtestrun/artifactId
  version1.1.0-Beta4/version
  urlhttp://maven.apache.org/url

  properties
project.build.sourceEncodingUTF-8/project.build.sourceEncoding
  /properties
  
  repositories
repository
  idcom-sikulix/id
  namecom-sikulix/name
  urlhttp://oss.sonatype.org/content/groups/public/url
  releases
enabledfalse/enabled
updatePolicydaily/updatePolicy
checksumPolicyfail/checksumPolicy
  /releases
  snapshots
enabledtrue/enabled
updatePolicyalways/updatePolicy
checksumPolicyfail/checksumPolicy
  /snapshots
  layoutdefault/layout
/repository
  /repositories
  
  dependencies
dependency
  groupIdcom.sikulix/groupId
  artifactIdsikulixapi/artifactId
  version1.1.0-Beta4-SNAPSHOT/version
/dependency
  /dependencies
  
  build
plugins
  plugin
artifactIdmaven-jar-plugin/artifactId
version2.4/version
configuration
  archive
manifest
  mainClasscom.sikulix.testrun.TestRun/mainClass
/manifest
  /archive
/configuration
  /plugin
  plugin
artifactIdmaven-compiler-plugin/artifactId
version3.1/version
configuration
  source1.6/source
  target1.6/target
/configuration
  /plugin
/plugins
  /build
/project

//-- this is my test source:
package com.sikulix.testrun;

import org.sikuli.basics.Debug;
import org.sikuli.script.*;

public class TestRun {

  public static void main(String[] args) {
Debug.test(SikuliX 2014 TestRun: hello);
Debug.setDebugLevel(3);
Screen s = new Screen();
s.click();
  }
}

Currently the dependency sikulixtessdata is not yet on OSSRH and leads to
[debug] SikuliX: add to classpath: 
/Users/rhocke/.m2/repository/com/sikulix/sikulixtessdata/1.1.0-Beta4-SNAPSHOT/sikulixtessdata-1.1.0-Beta4-SNAPSHOT.jar
[error] SikuliX: does not exist - not added

just ignore it.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252118]: On execution of .skl file, Preparing to Install

2014-07-28 Thread RaiMan
Question #252118 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252118

Status: Open = Answered

RaiMan proposed the following answer:
Sorry, but RC3 is no longer supported for such system specific problems.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252118]: [RC3] On execution of .skl file, Preparing to Install

2014-07-28 Thread RaiMan
Question #252118 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252118

Summary changed to:
[RC3] On execution of .skl file, Preparing to Install

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252103]: Not able to use sikuliX snapshot

2014-07-28 Thread Robert Grzeskowiak
Question #252103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252103

Robert Grzeskowiak posted a new comment:
Hi,

I have tried the same configuration as you have and unfortunately with no good 
result.
I put even your test-code and added sysout in the end which is not printed out.
The first TestRun: hello is displayed and later on I got several of errors:

Jul 28, 2014 9:39:41 AM java.util.prefs.WindowsPreferences init
WARNING: Could not open/create prefs root node Software\JavaSoft\Prefs at root 
0x8002. Windows RegCreateKeyEx(...) returned error code 5.
[TEST] SikuliX 2014 TestRun: hello
[debug] ResourceLoader: SikuliX Package Build: 1.1.0-Beta4 
2014-07-26_07:39nightly
[debug] ResourceLoader: check: The jar in use is some sikulixapi.jar
/C:/Users/robert.grzeskowiak/.m2/repository/com/sikulix/sikulixapi/1.1.0-Beta4-SNAPSHOT/sikulixapi-1.1.0-Beta4-20140726.054020-8.jar
[debug] SikuliX: add to classpath: 
/C:/Users/robert.grzeskowiak/.m2/repository/com/sikulix/sikulixlibswin/1.1.0-Beta4-SNAPSHOT/sikulixlibswin-1.1.0-Beta4-20140726.054020-8.jar
[error] SikuliX: does not exist - not added
[debug] SikuliX: add to classpath: 
/C:/Users/robert.grzeskowiak/.m2/repository/com/sikulix/sikulixtessdata/1.1.0-Beta4-SNAPSHOT/sikulixtessdata-1.1.0-Beta4-20140726.054020-8.jar
[error] SikuliX: does not exist - not added
[error] ResourceLoader: Terminating: The jar was not built with setup nor can 
the libs be exported from classpath!
/C:/Users/robert.grzeskowiak/.m2/repository/com/sikulix/sikulixapi/1.1.0-Beta4-SNAPSHOT/sikulixapi-1.1.0-Beta4-20140726.054020-8.jar

Process finished with exit code 1

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252118]: [RC3] On execution of .skl file, Preparing to Install

2014-07-28 Thread Ryan Johnson
Question #252118 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252118

Ryan Johnson posted a new comment:
Found solution - Open .skl file in batch file

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252103]: Not able to use sikuliX snapshot

2014-07-28 Thread RaiMan
Question #252103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252103

RaiMan proposed the following answer:
Ok, I have to test on Windows and come back soon.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252118]: [RC3] On execution of .skl file, Preparing to Install

2014-07-28 Thread RaiMan
Question #252118 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252118

Status: Answered = Solved

RaiMan changed the question status:
user found a solution

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252211]: NameError when running from command line

2014-07-28 Thread RaiMan
Question #252211 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252211

Status: Open = Answered

RaiMan proposed the following answer:
just tested on my Windows 8-64:

- having script1.sikuli and script2.sikuli in the same folder
- running the above command being on a command line in that folder

works as expected.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252103]: Not able to use sikuliX snapshot

2014-07-28 Thread RaiMan
Question #252103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252103

RaiMan proposed the following answer:
again tested.

usage and result:
https://github.com/RaiMan/SikuliX-2014/blob/master/TestRunMaven/sikulixtestrun-log-win.txt

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252211]: NameError when running from command line

2014-07-28 Thread Allen Liu
Question #252211 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252211

Allen Liu posted a new comment:
Thanks for your time RaiMan.

Here is the complete structure of my script:

All of the *.sikuli files are saved under ${root}:

File Import statement--Functions Name
|common.sikuli (has all common functions) --- from sikuli import * 
-- login() ...
|module1.sikulifrom sikuli import *;from common import * 
fun1()
|main.sikuli (entry script, served as script1.sikuli as mentioned) --- 
import common, module1; reload(common);reload(home); from sikuli import *;from 
home import * -- login(); fun1()...

When I ran main.sikuli from IDE, everything works fine. But it throws:

[error] NameError ( name 'fun1' is not defined )

Is there a restriction of nested import? Because common.sikuli is
referred everywhere.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252211]: NameError when running from command line

2014-07-28 Thread Allen Liu
Question #252211 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252211

Allen Liu posted a new comment:
Sorry, to make my last comment clearer, the error is thrown by command
line only.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252211]: NameError when running from command line

2014-07-28 Thread Allen Liu
Question #252211 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252211

Allen Liu posted a new comment:
och, one more correction on module name:

File Import statement--Functions Name
|common.sikuli (has all common functions) --- from sikuli import * 
-- login()
|home.sikulifrom sikuli import *;from common import * fun1()
|main.sikuli (entry script) --- import common, home; 
reload(common);reload(home); from sikuli import *;from home import * -- 
login(); fun1()...

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252211]: NameError when running from command line

2014-07-28 Thread RaiMan
Question #252211 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252211

RaiMan proposed the following answer:
this works for me:

# nestedmain.sikuli
from nestedmodule import *
print running main
common1()
moduleF1()

# nestedmodule.sikuli
from sikuli import *
from nestedcommon import *
def moduleF1():
print from moduleF1
common1()

# nestedcommon.sikuli
from sikuli import *
def common1():
print from common1

using
/Users/rhocke/SikuliX/ZRun101/runIDE -r nestedmain.sikuli

this output
running main
from common1
from moduleF1
from common1

I do not think there is a difference towards Windows.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252103]: Not able to use sikuliX snapshot

2014-07-28 Thread RaiMan
Question #252103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252103

RaiMan requested more information:
did an 
mvn clean install 

before?

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252103]: Not able to use sikuliX snapshot

2014-07-28 Thread Robert Grzeskowiak
Question #252103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252103

Robert Grzeskowiak posted a new comment:
Yes
I have even tried on maven 3.0.5 and 3.1.1

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252103]: Not able to use sikuliX snapshot

2014-07-28 Thread RaiMan
Question #252103 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252103

RaiMan proposed the following answer:
I am on Windows 8 64
have Java 1.7-65
Maven 3.1.1

and in my user-home I shave a mavenrc_pre.bat
defining 
JAVA_HOME=path-to-the-JDK 1.7

without this my Maven refuses to work at all.

I even deleted the .m2 repo path com.sikulix

…. it works in all cases

I have no idea.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #252323]: Sikuli stuck in run slow

2014-07-28 Thread Michael A. Phillips
New question #252323 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252323

Fairly new installation of SIkuli 1.0.1 on Win7 64bit ONLY and ALWAYS runs in 
Run In Slow Motion  
Clicking Run in Slow Motion and clicking Run both give the same results.  The 
script runs as expected and the message logs are fine with no error.  The 
console loges from the RunIDE.cmd show nothing irregular.  How can I diagnose 
this issue?

TIA,

Mike

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #252331]: Capturing numbers displayed dynamically on a webpage?

2014-07-28 Thread Nirmala
New question #252331 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252331

Hi,
We want to automate our regression tests. Basically, our application is a web 
app and we need to capture an ID that would be generated on the webpage for 
each action. I wanted to know if Sikuli can:
a) Capture the ids that are generated
b) Verify the status for the id generated on the webpage
c) Depending on the status provide pass/fail test results

For example:
I have used sikuli to automate and generate the ID successfully. For example I 
have the below text on my web page:
Workflow generated successfully and the id is . Till then I am happy in 
using Sikuli.
For every process the id generated would be 
Upon id generation, if the status(this is a column in the page) is error then 
the test should fail
and if the status = 'Processed or Loaded then the test would be complete or 
end and test result should be PASS

This is what all our regression is about. Getting the id e.g 1234(unique 
sequence but dynamic) and see if it fail or processed.  I tried with onappear 
but i am not able to capture the id, but just the text. Also, its so hard to 
map the id with the status on the web page and i dont know how to do it.

Please provide help. I wanted to know if this is possible at all with Sikuli. 
Thanks



-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #252332]: exact image find multiple image

2014-07-28 Thread Kelvin Yip
New question #252332 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252332

Hi all,

I am using Sikuli 1.1.0 Beta 3 to automatically capture a region of the screen 
(contains some text and number). The captured image is 96 dpi with resolution 
95 x 60. 
Now with the capture image, I use if exists(Pattern(xxx.png).exact, 0) and 
it will match different text on the screen. 
For example, 6 6 will match 6 7 and 7 6 on the screen. 
Any suggestion to the problem ? I can send out the image if needed.

Thanks a lot.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #252211]: NameError when running from command line

2014-07-28 Thread Allen Liu
Question #252211 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/252211

Status: Answered = Solved

Allen Liu confirmed that the question is solved:
Thanks for the coaching, Raiman. I finally found the root cause:

There is a module named home.sikuli and it passes once I changed it to
homePage.sikuli.

I guess there is something different between IDE and command when
parsing the keyword home:

-- import home; reload(home); from home import *

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #165999]: problems using Python logging module

2014-07-28 Thread Huang Jie
Question #165999 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/165999

Huang Jie proposed the following answer:
Hi Raiman,

I have a question about import logging under Sikuli environment. But this issue 
cannot be reproduced under python environment. please my program as below, the 
run result will repeat several times but I just run one time. I think the 
expected result is one log.
Could you please give me the solution for this?

import logging

def TT(String):
logger = logging.getLogger('mylogger')
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler('test.log')
fh.setLevel(logging.DEBUG)
 ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - 
%(message)s')
fh.setFormatter(formatter)
ch.setFormatter(formatter)
logger.addHandler(fh)
logger.addHandler(ch)
logger.info(String)
if __name__ == __main__:
TT('yes')


Run result:
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


[Sikuli-driver] [Question #252333]: The run result repeat several times when import logging module.

2014-07-28 Thread Huang Jie
New question #252333 on Sikuli:
https://answers.launchpad.net/sikuli/+question/252333

Hi Raiman,

I have a question about import logging under Sikuli environment. But this issue 
cannot be reproduced under python environment. please see my program as below, 
the run result will repeat several times but I just run one time. I think the 
expected result is one log.
Could you please give me the solution for this?
import logging
def TT(String):
logger = logging.getLogger('mylogger')
logger.setLevel(logging.DEBUG)
fh = logging.FileHandler('test.log')
fh.setLevel(logging.DEBUG)
 ch = logging.StreamHandler()
ch.setLevel(logging.DEBUG)
 formatter = logging.Formatter('%(asctime)s - %(name)s - %(levelname)s - 
%(message)s')
fh.setFormatter(formatter)
ch.setFormatter(formatter)
logger.addHandler(fh)
logger.addHandler(ch)
logger.info(String)
if __name__ == __main__:
TT('yes')
Run result:
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes
2014-07-29 11:11:51,969 - mylogger - INFO - yes


-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp


Re: [Sikuli-driver] [Question #251894]: A complete noob who isn't even sure how to download and use this

2014-07-28 Thread Alison W
Question #251894 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/251894

Status: Answered = Solved

Alison W confirmed that the question is solved:
Thank you very much! :)

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

___
Mailing list: https://launchpad.net/~sikuli-driver
Post to : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp