← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #203040]: ImportError: Errors in loading sikuli module: unittest

 

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

    Status: Open => Answered

RaiMan proposed the following answer:
There seems to be some name overlay with Sikuli.

So try this:

# from sikuli import * # not needed in Sikuli main scripts
import unittest
import HTMLTestRunner

And if you want o access something in unittest or HTMLTestRunner use qualification (which is already done in your script:
unittest.TestCase
HTMLTestRunner.HTMLTestRunner
...

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