← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #209455]: Importing python modules into Sikuli

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Sikuli only TALKS Python, but the Interpreter is Jython (Java based).

So if a Python module (made for the C-Python interpreter or for the
language level beyond 2.5) is not ported to Jython 2.5.2 (used with
Sikuli), then these modules can only be used with Sikuli, if they are
written in Python language only (like e.g. xlrd) and using features of
the language level <= 2.5

So I guess your Requests module is made for the C-based Python interpreter and contains some C/C++-based stuff.
If this is the case: sorry, no chance.

Try to find out, wether there are alternatives available with Jython.

As a last chance: Since you can use plain Java from within Jython
scripts (the classes/jars need only to be on class path), one could find
out, wether there is a Java solution/package that meets your
requirements.

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.