sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #40303
[Bug 1539132] Re: Sikuli-IDE gives Python error on script execution
Hi!
as it's late in the night and I'm not into jython - I just blindly
"dedented" all affected files:
-- as root in a bash I ran
for file in /usr/share/sikuli/Lib/sikuli/{Env.py,Helper.py,Region.py,Screen.py} /usr/share/jython/Lib/{codecs.py,copy_reg.py,dis.py,encodings/latin_1.py,encodings/utf_8.py,inspect.py,linecache.py,os.py,re.py,sre_compile.py,sre_constants.py,sre_parse.py,string.py,token.py,tokenize.py}; do echo "print(\"FORCE DEDENT IN ${file}\")" >> ${file}; done
--- note this is one line :)
This just appens a print("something") as the last line without spaces
upfront to all files which sikuli complained about on by ubuntu
installation.
This fixed the problem somehow...
----- now I just get this when I run sikuli
[info] Sikuli vision engine loaded.
FORCE DEDENT IN /usr/share/jython/Lib/codecs.py
FORCE DEDENT IN /usr/share/jython/Lib/encodings/latin_1.py
FORCE DEDENT IN /usr/share/jython/Lib/os.py
FORCE DEDENT IN /usr/share/jython/Lib/sre_constants.py
FORCE DEDENT IN /usr/share/jython/Lib/sre_compile.py
FORCE DEDENT IN /usr/share/jython/Lib/sre_parse.py
FORCE DEDENT IN /usr/share/jython/Lib/copy_reg.py
FORCE DEDENT IN /usr/share/jython/Lib/re.py
FORCE DEDENT IN /usr/share/jython/Lib/string.py
FORCE DEDENT IN /usr/share/jython/Lib/dis.py
FORCE DEDENT IN /usr/share/jython/Lib/token.py
FORCE DEDENT IN /usr/share/jython/Lib/tokenize.py
FORCE DEDENT IN /usr/share/jython/Lib/linecache.py
FORCE DEDENT IN /usr/share/jython/Lib/inspect.py
FORCE DEDENT IN /usr/share/sikuli/Lib/sikuli/Region.py
FORCE DEDENT IN /usr/share/sikuli/Lib/sikuli/Screen.py
[info] VDictProxy loaded.
FORCE DEDENT IN /usr/share/sikuli/Lib/sikuli/Helper.py
FORCE DEDENT IN /usr/share/sikuli/Lib/sikuli/Env.py
FORCE DEDENT IN /usr/share/jython/Lib/encodings/utf_8.py
-----
but it works when I just ignore this output ;)
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1539132
Title:
Sikuli-IDE gives Python error on script execution
Status in Sikuli:
New
Status in Ubuntu:
Confirmed
Bug description:
I am using sikuli-ide on Debian testing 64 bits. Both the default jre
from Debian and Oracle 8 java (with JNIs in LD_LIBRARY_PATH):
ii libsikuli-script-java 1.0~x~rc3.tesseract3-dfsg1-12 all Visual scripting API for jython
ii libsikuli-script-jni:amd64 1.0~x~rc3.tesseract3-dfsg1-12+b1 amd64 Native libs for libsikuli-java
ii sikuli-ide 1.0~x~rc3.tesseract3-dfsg1-12 all IDE to develop sikuli scripts and use them as junit test cases
When I try to execute any script created with it, I get this error:
[info] Sikuli vision engine loaded.
[error] Abgebrochen
[error] Ein Fehler in Zeile 1
[error] Fehlermeldung: Traceback (most recent call last):
File " ", line 1, in
File "/usr/share/sikuli/Lib/sikuli/__init__.py", line 3, in
from Sikuli import *
File "/usr/share/sikuli/Lib/sikuli/Sikuli.py", line 34, in
from Region import *
SyntaxError: ("mismatched input ' ' expecting DEDENT", ('/usr/share/sikuli/Lib/sikuli/Region.py', 287, 43, ' return JRegion.observe(self, time)\n'))
Checking the file, I cannot identify any syntax error, and CPython
cannot. I also tried "jython /usr/share/sikuli/Lib/sikuli/Region.py"
and that too works fine.
Any ideas, what to check next?
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1539132/+subscriptions
References