← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #206597]: Problem with importing "external" modules

 

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

    Status: Answered => Open

CryoGenID is still having a problem:
Hello Raimund!

Thanks again for your help...
Wouldn't know how far we had come with the testings without you ;-)

But this topic here is really a problem...

If I use your code directly, I get:
---
error] Stopped
[error] An error occurs at line 29
[error] Error message: SyntaxError: ("no viable alternative at input 'for'", ('c:\\temp\\windows\\sikuli-tmp1337676288801423763.py', 29, 22, ' saved_sys_path = [for e in sys.path] # save sys.path content\n'))
---

If I simply leave the problematic statement out, I get the "old" error message again:
--- 
[error] Stopped
[error] An error occurs at line 35
[error] Error message: Traceback (most recent call last):
 File "c:\temp\windows\sikuli-tmp6340195059774416002.py", line 35, in 
 exec("import " + currentModule)
 File "", line 1, in 
ImportError: No module named Test1
---

I don't understand it... The whole thing already worked before and now
THIS :-(

I will have a look into the Unit Test, but I think that my approach is
not sooooo bad and complex, is it? ;-)

I have a "Main"-Module which makes the basic settings and then calls 1..n external Modules in which the tests
are conducted... Only that exactly that call is now making problems :-(

I really hope that we can solve this soon.... I really need it ;-)

Thanks and best regards from Munich!

Chris

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