← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #695092]: I am trying to import ddt module to my test but getting error

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
--- General remark:
If you want to do more complex things in SikuliX, then you have to fully understand Python/Jython.
When you want to use Python modules, that are not registered with SikuliX, then you have to find out your self, wether they run with SikuliX/Jython 2.7
You have to understand, how to make Python modules ready for SikuliX/Jython.

All this is not something that is supported here for every aspect of a special Python module.
The net might have more sources to help you in a special case.

In doubt you have to dive into the code of the module and understand
structure, features and dependencies.

--- Your case ddt:
I had a look into it.
ddt depends on enum, which for 2.7 is only available as PyPi module.
If you succeed in making this available in the SikuliX context together with ddt.py, then it might work.

BE aware: all the setup stuff with Python might work in a Jython
installation too (which is not the case with a simple sikulixide-jar
usage). So you might install a module in a Python 2.7 context and then
copy the relevant py files/folders into the SikuliX context or setup
references to the Python stuff (see comment #1)

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