← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #272353]: Importing Python library smtplib

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
Python is not relevant for SikuliX, since it internally uses the bundled Java based Jython interpreter.
SikuliX only allows to run scripts written in Python language.

With version 1.1.0 (final) it is Jython 2.7, which says, it is
compatible to the Python language level 2.7 including the standard
modules, that come with the Python 2.7 package.

Python modules (usually pip installable) can only be used in the SikuliX
context, if they are completely written in Python language and do not
depend on any C-based stuff or native libraries.

I just tested your script with the final 1.1.0 and it runs through to the final statement telling 
Error: unable to send email

So be sure, not to have any pointers to any stuff from your Python 2.7
in the SikuliX environment at runtime.

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