Re: [Sikuli-driver] [Question #185791]: How to run Sikuli On Virtual Machines

2014-01-30 Thread RaiMan
Question #185791 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/185791

Assignee: None = RaiMan

-- 
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 #185791]: How to run Sikuli On Virtual Machines

2014-01-30 Thread RaiMan
Question #185791 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/185791

RaiMan posted a new comment:
Interesting, but as already mentioned: I have no experience with this.

I will give you a note, when the version 1.1.0-Beta1 is available: It
contains a simple remote solution, that allows to run a script on one
machine, while using screen, keyboard and mouse on another machine
reachable via TCP/IP.

-- 
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 #243001]: sikulix 1.0.1 install fails on OSX 10.8.5 - RunSetup: adding stuff to jars did not work

2014-01-30 Thread monogeo
New question #243001 on Sikuli:
https://answers.launchpad.net/sikuli/+question/243001

I double clicked sikuli_setup.jar, selected pack1 (option1), pack3 (option3) 
and option5 (I want to use Tesseract based OCR features), then clicked Setup 
Now, but it failed :(

This is the first install on the system. Below is the complete setup log. Any 
help is greatly appreciated!

[debug (1/30/14 12:07:06 AM)] RunSetup: SikuliX Setup Build: 1.0.1 
12NOV201312
[debug (1/30/14 12:07:06 AM)] RunSetup: ... starting with no args given
[debug (1/30/14 12:07:06 AM)] RunSetup: user home: /Users/monogeo
[debug (1/30/14 12:07:13 AM)] RunSetup: RunningSystem: Mac OSX 10.8.5
[debug (1/30/14 12:07:13 AM)] RunSetup: parent of jar/classes: 
/Users/monogeo/sikulix/
[debug (1/30/14 12:07:13 AM)] RunSetup: RunningJava: Java 6 (x86_64) 
1.6.0_65-b14-462-11M4609
[debug (1/30/14 12:07:13 AM)] RunSetup: ... it seems that Sikuli is used the 
first time on this system
[debug (1/30/14 12:13:27 AM)] FileManager: Downloading 1.0.1-1.jar having 12942 
KB
[debug (1/30/14 12:13:39 AM)] FileManager: downloaded 12942 KB to 
/Users/monogeo/sikulix/1.0.1-1.jar
[debug (1/30/14 12:13:39 AM)] FileManager: download time: 11
[debug (1/30/14 12:13:43 AM)] FileManager: Downloading 1.0.1-9.jar having 273 KB
[debug (1/30/14 12:13:45 AM)] FileManager: downloaded 273 KB to 
/Users/monogeo/sikulix/1.0.1-9.jar
[debug (1/30/14 12:13:45 AM)] FileManager: download time: 1
[debug (1/30/14 12:13:48 AM)] FileManager: unpackJar: 
/Users/monogeo/sikulix/sikuli-macapp.jar to /Users/monogeo/sikulix/
[debug (1/30/14 12:13:48 AM)] FileManager: unpackJar: completed
[debug (1/30/14 12:13:49 AM)] FileManager: Downloading 1.0.1-3.jar having 408 KB
[debug (1/30/14 12:13:51 AM)] FileManager: downloaded 408 KB to 
/Users/monogeo/sikulix/1.0.1-3.jar
[debug (1/30/14 12:13:51 AM)] FileManager: download time: 1
[debug (1/30/14 12:13:55 AM)] FileManager: Downloading 1.0.1-5.jar having 12320 
KB
[debug (1/30/14 12:14:09 AM)] FileManager: downloaded 12320 KB to 
/Users/monogeo/sikulix/1.0.1-5.jar
[debug (1/30/14 12:14:09 AM)] FileManager: download time: 13
[debug (1/30/14 12:14:12 AM)] RunSetup: Download ended
[debug (1/30/14 12:14:12 AM)] RunSetup: adding native stuff to sikuli-ide.jar
[debug (1/30/14 12:14:12 AM)] FileManager: buildJar: 
/Users/monogeo/sikulix/sikuli-temp.jar
[debug (1/30/14 12:14:12 AM)] FileManager: buildJar: adding: 
/Users/monogeo/sikulix/sikuli-ide.jar
[debug (1/30/14 12:14:16 AM)] FileManager: buildJar: adding: 
/Users/monogeo/sikulix/sikuli-setup.jar
[error (1/30/14 12:14:16 AM)] FileManager: buildJar: 
/Users/monogeo/sikulix/sikuli-setup.jar (No such file or directory)
[debug (1/30/14 12:14:16 AM)] RunSetup: adding native stuff to sikuli-java.jar
[debug (1/30/14 12:14:16 AM)] FileManager: buildJar: 
/Users/monogeo/sikulix/sikuli-temp.jar
[debug (1/30/14 12:14:16 AM)] FileManager: buildJar: adding: 
/Users/monogeo/sikulix/sikuli-java.jar
[debug (1/30/14 12:14:16 AM)] FileManager: buildJar: adding: 
/Users/monogeo/sikulix/sikuli-setup.jar
[error (1/30/14 12:14:16 AM)] FileManager: buildJar: 
/Users/monogeo/sikulix/sikuli-setup.jar (No such file or directory)
[debug (1/30/14 12:14:16 AM)] RunSetup: preparing Mac app as SikuliX-IDE.app
[debug (1/30/14 12:14:16 AM)] FileManager: buildJar: 
/Users/monogeo/sikulix/SikuliX-IDE.app/Contents/sikuli-ide.jar
[debug (1/30/14 12:14:16 AM)] FileManager: buildJar: adding: 
/Users/monogeo/sikulix/sikuli-ide.jar
[error (1/30/14 12:14:19 AM)] FileManager: buildJar: Unexpected end of ZLIB 
input stream
[debug (1/30/14 12:14:19 AM)] ResourceLoaderBasic: export: Trying to access 
package
[debug (1/30/14 12:14:19 AM)] ResourceLoaderBasic: export: Accessing jar: 
file:/Users/monogeo/sikulix/sikuli_setup_1.0.1.jar
[debug (1/30/14 12:14:20 AM)] ResourceLoaderBasic: export: Found 1 Files in 
Commands/mac/runIDE
[debug (1/30/14 12:14:20 AM)] ResourceLoaderBasic: runcmd: chmod ugo+x 
/Users/monogeo/sikulix/SikuliX-IDE.app/Contents/runIDE 
[info (1/30/14 12:14:20 AM)] runcmd: chmod ugo+x 
/Users/monogeo/sikulix/SikuliX-IDE.app/Contents/runIDE 
[error (1/30/14 12:14:26 AM)] RunSetup: Adding stuff to jars did not work
[error (1/30/14 12:14:26 AM)] RunSetup: ... terminated abnormally :-(

-- 
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 #243001]: sikulix 1.0.1 install fails on OSX 10.8.5 - RunSetup: adding stuff to jars did not work

2014-01-30 Thread monogeo
Question #243001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243001

monogeo gave more information on the question:
The same setup (option1, option2 and option5) was successful when I used
the command line with sudo:

[sikulix]$ sudo java -jar sikuli-setup.jar
[debug] SikuliX Setup Build: 1.0.1 12NOV201312
[debug] ... starting with no args given
[debug] user home: /Users/monogeo
[debug] Download ended
[debug] adding native stuff to sikuli-ide.jar
[debug] adding native stuff to sikuli-java.jar
[debug] preparing Mac app as SikuliX-IDE.app
[debug] trying to set up the environment
[debug] Trying to run functional test: JAVA-API
[debug] Trying to run functional test: running Jython statements via 
SikuliScript
[debug] ... SikuliX Setup seems to have ended successfully ;-)
[sikulix]$

-- 
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 #243001]: sikulix 1.0.1 install fails on OSX 10.8.5 - RunSetup: adding stuff to jars did not work

2014-01-30 Thread RaiMan
Question #243001 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243001

Status: Open = Answered

RaiMan proposed the following answer:
That sudo works, simply means, that the folder
/Users/monogeo/sikulix

or at least
/Users/monogeo/sikulix/sikuli-setup.jar

has some special access rights, that prevents the normal user to run
the setup successfully.

pls. check and eventually run a repair access rights

-- 
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 #242941]: How to run a batch file in foreground using sikuli

2014-01-30 Thread obiwan-92
Question #242941 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242941

obiwan-92 proposed the following answer:
Hello,

@RaiMan
Don't you take your coffee this morning ? ;-)

@Rubynator
The explanation is pretty clear about the Python part.

About the Batch part :
CMD /k start myTitle C:\sikuli\something.bat 
launch a new cmd windows with the title myTitle and execute the something.bat 
command.

cmd  : shortcut to execute a batch command
/K : parameter of cmd command to maintain the window after executed the command 
(cmd /? to have more info)
Start : launch the window

-- 
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 #242941]: How to run a batch file in foreground using sikuli

2014-01-30 Thread RaiMan
Question #242941 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242941

RaiMan posted a new comment:
@ obiwan
some shit happens having had  coffee or not ;-)
have a nice day.

-- 
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 #232900]: [1.0] [HowTo] turn on text recognition --- solution

2014-01-30 Thread syed
Question #232900 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232900

syed posted a new comment:
Many Thanks RaiMan again for your useful input.
Eventually I have managed to get the Sikuli OCR working. The thing which Sikuli 
wasn't installing was the 'tessdata' folder with 'English' language 
provision(file) in it. It was showing sort of following Error on my 64-bit 
windows  command line window(not on my 32-bit laptop, although was not working 
there as well)
--Message on Command line Window---
Error opening data file F:/sikuli/libs/tessdata/eng.traineddata
Please make sure the TESSDATA_PREFIX environment variable is set to the parent 
directory of your tessdata directory.
-End---
So I what I did, I downloaded tess4j from the following link and unzip it, take 
the tessdata foler out of it and put it into the libs folder inside Sikuli and 
set the evnironment variable path of TESSDATA_PREFIX  to sikuli libs folder.
http://sourceforge.net/projects/tess4j/

And it was working fine after that on both systems i.e at my work(64-bit 
windows7) and at home(32-bit windows7).
Although it is doing OCR but sometimes mess up with digits which is most 
important in Testing :(. [emailed you screenshot]

I have tried other OCR Java API , AspriseOCR.jar , but its worse than Sikuli 
OCR built in API. 
Then I was trying to tess4j but couldn't get it right on my eclipse due to 
64-bit system and it has 32-bit dll files. :(
If you don't bother and have time, could you please tell me how to setup tess4j 
on 64-bit system. It showing me following error
Error Message--
Exception in thread main java.lang.UnsatisfiedLinkError: Unable to load 
library 'libtesseract302': Native library (win32-x86-64/libtesseract302.dll) 
not found in resource path 
--End-
There are already two dll files(liblept168.dll and libtesseract302.dll) which i 
copy-pasted on c:\windows\system32 folder and also include it in 
folder(tesseractlib) on my project folder. I have already the following jar 
files on my build path
ghost4j-0.3.1.jar
jna.jar
jai_imageio.jar
junit-4.10.jar
tess4.jar
and in my code i am also trying to load them by doing this
---code-
public static void main(String[] args) {
System.setProperty(jna.library.path, //tesseractlib//);
File file=new 
File(System.getProperty(user.dir)+//tempOCRImages//no1DropDown.png);
Tesseract t4j= Tesseract.getInstance();
try{
String text=t4j.doOCR(file);
System.out.println(Text is :+ text);
}catch(Exception e){
System.out.println( IN the exception : +e);
}   
}
-End code---
Sorry to post a deviated post here but it may be help anyone else who really 
need OCRing the Image for Testing purposes.
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


Re: [Sikuli-driver] [Question #232900]: [1.0] [HowTo] turn on text recognition --- solution

2014-01-30 Thread RaiMan
Question #232900 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232900

RaiMan posted a new comment:
-- ERROR: Error opening data file F:/sikuli/libs/tessdata/eng.traineddata
Sorry, that you had so much effort.
If you have setup with option 5 and get this message, then simply delete the 
libs folder and restart the IDE: now the libs folder will be recreated and now 
with tessdata (fixed with version 1.0.1)

-- Tess4J
I downloaded it to my Mac and played around a little bit.
It looks very promising and I will integrate it with SikuliX, since then 
everything can be handled on the Java level.
… but with your numbers Tesseract has problems anyway (made some tests)

So I guess for the moment, using Sikuli's OCR is the easiest choice.

The stony way:
Tess4J: Besides the Windows 64Bit challenge (you might switch to using the 
32-Bit Java), the problem with Tess4J, if you want to combine it with SikuliX: 
the normal operation expects 300dpi images, images Sikuli takes from the screen 
are 72dpi to 96dpi. So they have to be scaled up and need to be grayscale 
(which Sikuli currently does internally before giving the image to Tesseract)
Both can be done in Java with image processing using the graphics context.

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 #232900]: [1.0] [HowTo] turn on text recognition --- solution

2014-01-30 Thread RaiMan
Question #232900 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/232900

RaiMan posted a new comment:
--- Sorry to post a deviated post here but it may be help anyone else
who really need OCRing the Image for Testing purposes.

That really is nor problem in any case. working alternatives, that might
be possible to combine with Sikuli are always welcome.

-- 
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 #242920]: Issue when accessing to MySQL database

2014-01-30 Thread rod
Question #242920 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242920

Status: Answered = Open

rod is still having a problem:
Still a fatal error...

Here my steps :

1) set CLASSPATH=C:\Program Files (x86)\MySQL\MySQL Connector 
J\mysql-connector-java-5.1.28-bin.jar
2) set CLASSPATH=%CLASSPATH%;C:\Jython\jython-standalone-2.5.3.jar
3) java -cp %CLASSPATH%;C:\apps\SikuliX\sikuli-ide.jar org.python.util.jython

 from com.ziclix.python.sql import zxJDBC
 import org.sikuli.basics.SikuliXforJython
 import sys
 print sys.path
['', 'C:\\Jython\\Lib', 'C:\\Jython\\jython-standalone-2.5.3.jar\\Lib', 
'__classpath__', '__pyclasspath__/', u'/C:/apps/SikuliX/sikuli-ide.jar/Lib']
 from sikuli import *
[error] ResourceLoaderBasic: loadLib: Fatal Error 110: loading: WinUtil.dll
[error] ResourceLoaderBasic: loadLib: Since native library was found, it might 
be a problem with needed dependent libraries
C:\apps\SikuliX\libs\WinUtil.dll: Can't find dependent libraries
[error] ResourceLoaderBasic: loadLib: Check, wether a valid Sikuli libs folder 
is in system path at runtime!
[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.

-- 
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 #242920]: Issue when accessing to MySQL database

2014-01-30 Thread RaiMan
Question #242920 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242920

Status: Open = Answered

RaiMan proposed the following answer:
why not doing, what I suggested in comment #9?
sikuli-ide.jar should not be used with external Jython, since it itself 
contains a Jython built-in, that might conflict.

as the error said: Check, wether a valid Sikuli libs folder is in system
path at runtime!

-- 
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 #242975]: How do I connect SikuliX IDE to MySQL using zxJDBC

2014-01-30 Thread Peter Spierenburg
Question #242975 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242975

Status: Answered = Open

Peter Spierenburg is still having a problem:
I'm not seeing a solution there. And I'm not trying to use sikuli on the
command line, but through the IDE.

-- 
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 #242975]: How do I connect SikuliX IDE to MySQL using zxJDBC

2014-01-30 Thread Peter Spierenburg
Question #242975 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242975

Status: Open = Solved

Peter Spierenburg confirmed that the question is solved:
Here is the solution:

import jarray

class classPathHacker(object):
Original Author: SG Langer Jan 2007, conversion from Java to Jython
Updated version (supports Jython 2.5.2) From 
http://glasblog.1durch0.de/?p=846

Purpose: Allow runtime additions of new Class/jars either from
local files or URL

import java.lang.reflect.Method
import java.io.File
import java.net.URL
import java.net.URLClassLoader

def addFile(self, s):
Purpose: If adding a file/jar call this first
with s = path_to_jar
# make a URL out of 's'
f = self.java.io.File(s)
u = f.toURL()
a = self.addURL(u)
return a
 
def addURL(self, u):
Purpose: Call this with u= URL for
the new Class/jar to be loaded
sysloader = self.java.lang.ClassLoader.getSystemClassLoader()
sysclass = self.java.net.URLClassLoader
method = sysclass.getDeclaredMethod(addURL, [self.java.net.URL])
a = method.setAccessible(1)
jar_a = jarray.array([u], self.java.lang.Object)
b = method.invoke(sysloader, [u])
return u

tmp = classPathHacker()
tmp.addFile(C:\Program Files\Sikuli\libs\mysql-connector-java-5.1.26-bin.jar)

from com.ziclix.python.sql import zxJDBC
db = zxJDBC.connect(jdbc:mysql://localhost/core, xxx, xxx, 
com.mysql.jdbc.Driver, CHARSET='iso_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


[Sikuli-driver] [Question #242975]: Status of bug #1274500 changed to 'Fix Committed' in Sikuli

2014-01-30 Thread RaiMan
Bug #1274500 status changed in Sikuli:

New = Fix Committed

https://bugs.launchpad.net/sikuli/+bug/1274500
[request] IDE: want to dynamically add something to Java classpath at runtime 
(e.g. JDBC driver)

This bug is linked to #242975.
How do I connect SikuliX IDE to MySQL using zxJDBC
https://answers.launchpad.net/sikuli/+question/242975

-- 
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 #242975]: How do I connect SikuliX IDE to MySQL using zxJDBC

2014-01-30 Thread RaiMan
Question #242975 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242975

RaiMan posted a new comment:
great finding.

Sorry, I did not realize, that you are working with the IDE (though it
is obvious in your question ;-)

SikuliX already has internal features, to add something to Java class path and 
or Jython sys.path at runtime.
I will make this feature publicly available in both API levels.

The problem with the JDBC driver, when it is set outside via class path 
environment is that it then comes before the Sikuli jar. This then hides stuff 
on sys.path and leads to the known problems.
So adding it later inside the script is the right solution.

Thanks again.

-- 
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 1274500] [NEW] [request] IDE: want to dynamically add something to Java classpath at runtime (e.g. JDBC driver)

2014-01-30 Thread RaiMan
Public bug reported:

 workaround until solution is available in SikuliX

see related question

-

In  the Can I do X or Y or Z in Sikuli? there is a bit about
connecting sikuli to a database.

Anyway, my goal is to make the following script run:

from com.ziclix.python.sql import zxJDBC
db = zxJDBC.connect(jdbc:mysql//localhost/core, xxx, xxx, 
com.mysql.jdbc.Driver, CHARSET='iso_1')

I've copied the mysql-connector-java-3.1.14-bin.jar file into sikuli's
libs directory.

I've added an entry to the classpath in the runIDE.cmd script

I've tried adding the classpath entry inside my sikuli script

In all cases, I get:

[error] zxJDBC.DatabaseError ( driver [com.mysql.jdbc.Driver] not found
)

What do I need to do in order to make this work?

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

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

** Changed in: sikuli
   Importance: Undecided = High

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

** Changed in: sikuli
Milestone: None = 1.1.0

** Description changed:

+  workaround until solution is available in SikuliX
+ 
+ see related question
+ 
+ -
+ 
  In  the Can I do X or Y or Z in Sikuli? there is a bit about
  connecting sikuli to a database.
  
  Anyway, my goal is to make the following script run:
  
- from com.ziclix.python.sql import zxJDBC
- db = zxJDBC.connect(jdbc:mysql//localhost/core, xxx, xxx, 
com.mysql.jdbc.Driver, CHARSET='iso_1')
+ from com.ziclix.python.sql import zxJDBC
+ db = zxJDBC.connect(jdbc:mysql//localhost/core, xxx, xxx, 
com.mysql.jdbc.Driver, CHARSET='iso_1')
  
  I've copied the mysql-connector-java-3.1.14-bin.jar file into sikuli's
  libs directory.
  
  I've added an entry to the classpath in the runIDE.cmd script
  
  I've tried adding the classpath entry inside my sikuli script
  
  In all cases, I get:
  
  [error] zxJDBC.DatabaseError ( driver [com.mysql.jdbc.Driver] not found
  )
  
  What do I need to do in order to make this work?

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

Title:
  [request] IDE: want to dynamically add something to Java classpath at
  runtime (e.g. JDBC driver)

Status in Sikuli:
  Fix Committed

Bug description:
   workaround until solution is available in SikuliX

  see related question

  -

  In  the Can I do X or Y or Z in Sikuli? there is a bit about
  connecting sikuli to a database.

  Anyway, my goal is to make the following script run:

  from com.ziclix.python.sql import zxJDBC
  db = zxJDBC.connect(jdbc:mysql//localhost/core, xxx, xxx, 
com.mysql.jdbc.Driver, CHARSET='iso_1')

  I've copied the mysql-connector-java-3.1.14-bin.jar file into sikuli's
  libs directory.

  I've added an entry to the classpath in the runIDE.cmd script

  I've tried adding the classpath entry inside my sikuli script

  In all cases, I get:

  [error] zxJDBC.DatabaseError ( driver [com.mysql.jdbc.Driver] not
  found )

  What do I need to do in order to make this work?

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

___
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 #242975]: How do I connect SikuliX IDE to MySQL using zxJDBC

2014-01-30 Thread RaiMan
Question #242975 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242975

Linked to bug: #1274500
https://bugs.launchpad.net/bugs/1274500
[request] IDE: want to dynamically add something to Java classpath at 
runtime (e.g. JDBC driver)

-- 
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 #242920]: Issue when accessing to MySQL database

2014-01-30 Thread rod
Question #242920 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242920

Status: Answered = Solved

rod 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 #242920]: Issue when accessing to MySQL database

2014-01-30 Thread rod
Question #242920 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242920

Status: Solved = Open

rod is still having a problem:
Sorry Raiman, 
but I do not have any sikuli-java.jar in my C:\apps\SikuliX.

In my Sikuli packages there are only 3 jar files :
- sikuli-ide.jar
- sikuli-setup.jar
- sikuli-tessdata.jar

How can I get this sikuli-java.jar ?

-- 
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 #243024]: Image captures on different resolutions

2014-01-30 Thread LP_account
New question #243024 on Sikuli:
https://answers.launchpad.net/sikuli/+question/243024

I take some image captures in 1920x1080 resolution pc. I create a script in 
java with eclipse IDE, and try to use those image captures. It works fine. But 
when i run the same script with the same images in 1440x900 resolution pc, it 
doesn`t run.

Is that a problem of captures or the different resolutions? Any ideas?

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


Re: [Sikuli-driver] [Question #242920]: Issue when accessing to MySQL database

2014-01-30 Thread RaiMan
Question #242920 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242920

Status: Open = Answered

RaiMan proposed the following answer:
delete everything in the setup folder except sikuli-setup.jar and repeat
the setup with options 1, 3, 5

-- 
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 #242920]: Issue when accessing to MySQL database

2014-01-30 Thread rod
Question #242920 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242920

Status: Answered = Open

rod is still having a problem:
I cleaned the setup folder and installed packages 1,3 and 5 (and got the
sikuli-java.jar file !).

1) echo %CLASSPATH%
C:\Program Files (x86)\MySQL\MySQL Connector 
J\mysql-connector-java-5.1.28-bin.jar;C:\Jython\jython-standalone-2.5.3.jar

2) java -cp %CLASSPATH%;C:\apps\SikuliX\sikuli-java.jar
org.python.util.jython

 print sys.path
['', 'C:\\Jython\\Lib', 'C:\\Jython\\jython-standalone-2.5.3.jar\\Lib', 
'__classpath__', '__pyclasspath__/', 'C:\\apps\\SikuliX', 
'C:\\apps\\SikuliX\\sikuli-java.jar']
 from com.ziclix.python.sql import zxJDBC
 import org.sikuli.basics.SikuliXforJython
 from sikuli import *
[error] ResourceLoaderBasic: loadLib: Fatal Error 110: loading: WinUtil.dll
[error] ResourceLoaderBasic: loadLib: Since native library was found, it might 
be a problem with needed dependent libraries
C:\apps\SikuliX\libs\WinUtil.dll: Can't find dependent libraries
[error] ResourceLoaderBasic: loadLib: Check, wether a valid Sikuli libs folder 
is in system path at runtime!
[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.

-- 
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 #242920]: Issue when accessing to MySQL database

2014-01-30 Thread RaiMan
Question #242920 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/242920

Status: Open = Answered

RaiMan proposed the following answer:
You should at least log out and log in again after having setup SikuliX
on Windows.

If the problem persists, do this

2) java -Dsikuli.Debug=3 -cp %CLASSPATH%;C:\apps\SikuliX\sikuli-
java.jar org.python.util.jython

you might post the debug output here or send it silently to my mail at
https://launchpad.net/~raimund-hocke

-- 
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 #243024]: Image captures on different resolutions

2014-01-30 Thread RaiMan
Question #243024 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/243024

Status: Open = Answered

RaiMan proposed the following answer:
Must not be resolution but only different rendering on both screens.
To get nearer, you have to manually compare shots from the same visual on both 
screens in an image viewer at a higher resolution, where you can see single 
pixels.

If you do not find a solution, then you need different image sets for
both screens.

Possible to send me a relevant screenshot from bot screens silently to
my mail at https://launchpad.net/~raimund-hocke?

-- 
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 1224811] Re: [1.0.1] improvements for text recognition

2014-01-30 Thread RaiMan
** Tags added: fkt-text

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

Title:
  [1.0.1] improvements for text recognition

Status in Sikuli:
  In Progress

Bug description:
   small fonts
  ... more background info in the related question
  Improvement in OCR recognition with small images (thanks to Jose Damian)

  Anyway, I think it is an error to use interpolation to enlarge these small 
images. Given that it is needed an image height greater than 30 pixels, the 
best solution for me has been to enlarge the image adding pixels to the border:
  ---
  if (in_img.rows  MIN_HEIGHT){
     scale = ceil(MIN_HEIGHT / float(in_img.rows));
     copyMakeBorder (in_img, out_img, 0, (scale-1)*in_img.rows, 0, 
(scale-1)*in_img.cols, BORDER_REPLICATE);
  ---

  This solution achieves near perfect recognition with my image samples.
  I don't know if this is the right treatment for all kinds of small images and 
could be included in a future release; but at least it is a change that people 
can try if they have problems recognizing small fonts.

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

___
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 #243053]: Using external python module using json

2014-01-30 Thread MicMarcil
New question #243053 on Sikuli:
https://answers.launchpad.net/sikuli/+question/243053

Hello,

I want to use an external python module that uses json internally.
I took a look at this post 
https://answers.launchpad.net/sikuli/+question/193318; which is not far from 
my problem.

I understand that json isn't part of Jython, and that I can workaround this 
using simplejson.

I downloaded and integrated simplejson in the Lib folder, inside my Sikuli 
installation.
I realised after that simplejson seems to be already part of Sikuli 1.0.1 and 
that Jython version :) 

So, back to my json problem... when I import my external module and uses the 
function from this module, I always get :
[error] NameError ( global name 'json' is not defined )

I tried things like : import simplejson as json
But I can't find a way to make my script work. I always come back to this error 
:(

Here's an example of a non-working code, written directly in my Sikuli script:
client = APIClient('some_server') 
client.user = 'some_user'
client.password = 'some_password'

result = client.send_post('some_json')  == [error] NameError ( global name 
'json' is not defined )

The module is using a APIClient class internally... is this conflicting with an 
APIClient class already existing in Jython? Is is the same class?

I'm afraid I might have to adapt this external module... (I'll do it if I have 
no choice)
I'm a bit loss trying to get this external module to work in Sikuli :(

Thanks for the help.
Michael



-- 
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