https://github.com/kevlened/sikuli_cpython
UNMAINTAINED: A CPython wrapper around the sikuli standalone jar
https://github.com/kevlened/sikuli_cpython
Last synced: 3 months ago
JSON representation
UNMAINTAINED: A CPython wrapper around the sikuli standalone jar
- Host: GitHub
- URL: https://github.com/kevlened/sikuli_cpython
- Owner: kevlened
- License: mit
- Created: 2013-11-24T22:57:21.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2015-09-14T20:46:13.000Z (about 10 years ago)
- Last Synced: 2024-11-18T21:05:22.085Z (11 months ago)
- Language: Python
- Homepage:
- Size: 17 MB
- Stars: 62
- Watchers: 9
- Forks: 12
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
sikuli_cpython
==============A CPython wrapper around the sikuli standalone jar
Why
---
Sikuli is traditionally written in Jython, which is painful if you want to mix it with Selenium scripts. This module makes it possible for CPython to run the Jython scripts created by Sikuli-IDE.How it works
------------
This module wraps the sikuli standalone jar using [pyjnius](https://github.com/kivy/pyjnius) from the Kivy project. Pyjnius allows us to use java classes in CPython.Requirements
------------
* 32-bit JDK
* 32-bit Python 2.7
* cython 0.19.2
* pyjnius 1.1-devInstallation
------------###On Linux/Mac
Ensure your python instance (virtualenv or global) meets all the above requirements
Run `pip install sikuli`###On Windows:
Simply run `pip install sikuli`, this will install cython if not already installed, pyjnius, and sikuli.
Make sure the path to a jvm.dll is in your PATH environment variable. The path should be: `C:\Program Files (x86)\Java\jdk[YOUR JDK VERSION]\jre\bin\server`Troubleshooting
---------------
* If `pip install sikuli` times out, try `pip --default-timeout=100 install sikuli`. It's downloading a jar from PyPi, so it may take longer than your average module.
* pyjnius is known to be inconsistent in Window 7 64-bit. If you see a jvm memory error, try relogging into your profile.