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 Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1539132

Title:
  Sikuli-IDE gives Python error on script execution

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1539132/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to