← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #673447]: Python module: ImportError ( No module named psycopg2 ) --- not compatible with Jython

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
The interpreter for Python in SikuliX is the Java based Jython.

Usually Python modules depending on C-based libraries cannot be used
with Jython and lead to an import error.

Only modules written in Python only with language level 2.7 normally
work out of the box.

On the other hand, available Java libraries can be used in any case.

Another problem might be, that you pip-installed the module into the
Python environment, which is not automatically available for
SikuliX/Jython.

Check/add sys.path accordingly.

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