← Back to team overview

sikuli-driver team mailing list archive

[Question #183032]: uc1.sikuli calls uc1_sc1.sikuli calls uc1_sc1_tc1.sikuli calls actm_delegation1.sikuli

 

New question #183032 on Sikuli:
https://answers.launchpad.net/sikuli/+question/183032

I have 4 scripts where one calls another, nested.

uc1.sikuli
---
from sikuli import *

uc_path = "c:\\Users\\....\\Documents\\sikuli"
if not uc_path in sys.path: sys.path.append(uc_path)
print uc_path

print "uc1"

import uc1_sc1
---

uc1_sc1.sikuli
---
from sikuli import *

print "uc1_sc1"

import uc1_sc1_tc1
---

uc1_sc1_tc1.sikuli
---
from sikuli import *

print "uc1_sc1_tc1"

from actm_delegation1 import *
---

actm_delegation1.sikuli
---
from sikuli import *

isLoggedIn = False
isMobileInGAL = False
isMobileOnMy = False

def addMobileToDelegation():
    # Add mobile phone number to My Profile
    # Show in details, Allow editing
    # login
    dlg = find("AccessReques.png")
...
    isMobileOnMy = True
    
    # Log out
    lo = find("1324407046794.png")
    lo.click("Logout.png")
    isLoggedIn = False
---


And yet, it spits out this
---
C:\Users\...\Documents\sikuli
uc1
uc1_sc1
C:\Users\...\Documents\sikuli
uc1_sc1_tc1
[error] Stopped
[error] An error occurs at line 9
[error] Error message: Traceback (most recent call last):
 File "C:\Users\...\AppData\Local\Temp\sikuli-tmp9068862656009163499.py", line 9, in 
 import uc1_sc1
 File "C:\Program Files (x86)\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\SikuliImporter.py", line 45, in load_module
 File "C:\Program Files (x86)\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\SikuliImporter.py", line 29, in _load_module
ImportError: Errors in loading sikuli module: uc1_sc1
Errors in loading sikuli module: uc1_sc1_tc1
No module named actm_delegation1
 - HOW TO FIX? Try adding "from sikuli import *" in the module.

 - HOW TO FIX? Try adding "from sikuli import *" in the module.


---
Here is my file structure under the C:\\Users\\...\\Documents\\sikuli folder

12/20/2011  03:11 PM    <DIR>          .
12/20/2011  03:11 PM    <DIR>          ..
12/20/2011  03:11 PM    <DIR>          actm_delegation1.sikuli
12/14/2011  12:57 PM    <DIR>          add_applications.sikuli
12/14/2011  12:57 PM    <DIR>          add_category.sikuli
12/15/2011  03:16 PM    <DIR>          add_challenge_policies.sikuli
12/14/2011  04:36 PM    <DIR>          add_claim_policy.sikuli
12/14/2011  12:58 PM    <DIR>          add_data_class_levels.sikuli
12/14/2011  12:57 PM    <DIR>          add_delegations.sikuli
12/15/2011  03:25 PM    <DIR>          add_password_policies.sikuli
12/09/2011  04:16 PM            35,283 add_workflow.skl
12/13/2011  01:19 PM    <DIR>          add_workflows.sikuli
12/20/2011  03:11 PM    <DIR>          images.sikuli
12/14/2011  12:26 PM    <DIR>          nav_menu.sikuli
12/13/2011  01:27 PM    <DIR>          reset_arms.sikuli
12/14/2011  12:54 PM    <DIR>          run_all.sikuli
12/08/2011  04:17 PM             1,234 run_all.skl
12/06/2011  09:46 AM    <DIR>          testarray.sikuli
12/20/2011  03:11 PM    <DIR>          uc1.sikuli
12/20/2011  03:11 PM    <DIR>          uc1_sc1.sikuli
12/20/2011  03:11 PM    <DIR>          uc1_sc1_tc1.sikuli
               2 File(s)         36,517 bytes
              19 Dir(s)  251,020,763,136 bytes free

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