← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #411828]: Sikuli can't import YAML module?

 

Question #411828 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/411828

    Status: Open => Answered

RaiMan proposed the following answer:
For SikuliX scripts you can use the Python scripting language (level
2.7), but internally as interpreter we use the Java based Jython.

Modules available for Python (C based Python) are only uaseable, if they
are completely written in Python language (no C-based or even native
code based parts).

Since Python YAML (https://pypi.python.org/pypi/PyYAML/3.12) relies on a
C-based library, it cannot be used as is in SikuliX.

You might try this solution:
https://pypi.python.org/pypi/PyYAML/3.12

on Windows you have to download the zipped source from
https://pypi.python.org/pypi/PyYAML/3.12, unzip it and run the setup as
mentioned.

To run jython from a commandline use:
java -cp <path-to>/sikulix.jar org.python.util.jython setup.py ...

-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.