Import Error: Expecting Newline
I have created a "utility" class that can be called from multiple scripts. It is call "cUtil.sikuli"
from sikuli import *
from ConfigParser import *
class cUtil:
def readConfig(self):
.
.
.
return;
and so on.
-------
I have a main script called "AutoTest" where I am calling certain functions from the class. It starts:
from sikuli import *
myScriptPath = "C:\\Sikuli\
from cUtil import *
-------
Both scripts are found in the C:\Sikuli directory, but when I run AutoTest, I receive:
[error] Stopped
[error] An error occurs at line 5
[error] Error message: Traceback (most recent call last):
File "C:\Windows\
from cUtil import *
File "C:\Program Files\Sikuli X\sikuli-
File "C:\Program Files\Sikuli X\sikuli-
ImportError: Errors in loading sikuli module: cUtil
mismatched input '=' expecting NEWLINE (cUtil.py, line 5)
- HOW TO FIX? Try adding "from sikuli import *" in the module.
-------
Any help you could give me would be greatly appreciated.
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- SikuliX Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask Carol-Sue M for more information if necessary.