← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #191858]: I am getting this error 'module' object has no attribute 'TestCase'

 

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

    Status: Needs information => Open

Steve Brown gave more information on the question:
  I have a good folder and a bad folder

C:\sikuli\Sikuli-r930-win32\Sikuli-IDE\src\fusebox\panelsUnit.sikuli  
is where I successfully created my first test app.  It runs perfectly.

I tried creating my second test app here
C:\sikuli\Sikuli-r930-win32\Sikuli-IDE\src\idirUnit.sikulii
I get the 'module' object has no attribute 'TestCase' error here.

I can solve my problem by copying idirUnit bad under fusebox so I have this 
C:\sikuli\Sikuli-r930-win32\Sikuli-IDE\src\fusebox\idirUnit.sikuli.

I repeated this with your test.
I created 2 raiman.siklui folders one under fusebox and the other outside. 

C:\sikuli\Sikuli-r930-win32\Sikuli-IDE\src\raiman.sikuli

I get the following when trying to run here
[info] Sikuli vision engine loaded.
[info] Windows utilities loaded.

[info] VDictProxy loaded.

[error] Stopped
[error] An error occurs at line 2
[error] Error message: Traceback (most recent call last):
 File "C:\Users\SBROWN~1.VMT\AppData\Local\Temp\sikuli-tmp3904348854941594047.py", line 2, in 
 class SomeTest(unittest.TestCase):
AttributeError: 'module' object has no attribute 'TestCase'

C:\sikuli\Sikuli-r930-win32\Sikuli-IDE\src\fusebox\raiman.sikuli

Running in this folder works fine

Operating system is Windows 7 64 bit

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