All Projects → kevlened → sikuli_cpython

kevlened / sikuli_cpython

Licence: MIT License
UNMAINTAINED: A CPython wrapper around the sikuli standalone jar

Programming Languages

python
139335 projects - #7 most used programming language

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

Installation

###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.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].