MarketSquare / MarketSquare/robotframework-SikuliLibrary
SikuliLibrary not working on Debian (linux)
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 163
- Forks
- 60
- PR merge metrics
- No merged PRs in 30d
Description
**Scenario** :
1) SikuliLibrary is installed - with pip - `pip install robotframework-SikuliLibrary==1.0.8` _(also tried version robotframework-SikuliLibrary 2.0.0)_
then I can see **SikuliLibrary.jar** at **/usr/local/lib/python3.7/site-packages/SikuliLibrary/lib** Folder

2) tesseract-ocr and libopencv-dev also installed properly with version :
**libopencv-dev is already the newest version (3.2.0+dfsg-6)**
**tesseract-ocr is already the newest version (4.0.0-2).**
3) when we try to run java jar file manually : **java -jar SikuliLibrary.jar 10000 _(where port is 10000)_** then getting following response:
```
WARN: The method class org.apache.commons.logging.impl.SLF4JLogFactory#release() was invoked.
WARN: Please see http://www.slf4j.org/codes.html#release for an explanation.
0 [main] INFO org.eclipse.jetty.server.Server - jetty-7.x.y-SNAPSHOT
46 [main] INFO org.eclipse.jetty.server.handler.ContextHandler - started o.e.j.s.ServletContextHandler{/,null}
167 [main] INFO org.eclipse.jetty.server.AbstractConnector - Started SelectChannelConnector@0.0.0.0:10000
```

4) But when trying to run the robot script , getting error :
```
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/SikuliLibrary/sikuli.py", line 54, in __init__
self.start_sikuli_process(port)
File "/usr/local/lib/python3.7/site-packages/SikuliLibrary/sikuli.py", line 93, in start_sikuli_process
self.remote = self._connect_remote_library()
File "/usr/local/lib/python3.7/site-packages/SikuliLibrary/sikuli.py", line 208, in _connect_remote_library
self._test_get_keyword_names(remote)
File "/usr/local/lib/python3.7/site-packages/SikuliLibrary/sikuli.py", line 225, in _test_get_keyword_names
raise RuntimeError('Failed to get_keyword_names!')
```

How to Solve above error?
**Kindly help**
Note: Already seen issues :
https://github.com/rainmanwy/robotframework-SikuliLibrary/issues/19
and https://github.com/rainmanwy/robotframework-SikuliLibrary/issues/20
**but we are not getting our issue solved with above solution @rainmanwy kindly help**
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reading SikuliLibrary/sikuli.py at start_sikuli_process, _connect_remote_library, and _test_get_keyword_names, then reproduce the Robot script after launching SikuliLibrary.jar on Debian. Compare the successful Jetty startup with the failed keyword-name request; done means the Robot script connects and retrieves the library keywords without RuntimeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, linux, python
- Domain
- operating-systems, testing-qa
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100