sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #58458
Re: [Question #702998]: script that runs from IDE but not from Commandline
Question #702998 on SikuliX changed:
https://answers.launchpad.net/sikuli/+question/702998
Matteo Acquarone gave more information on the question:
HI,
another bit of hopefully useful information: I noticed that when trying to export the executable jar file there is this message in the IDE:
"SyntaxError: ("Non-ASCII character in file 'C:\\Users\\MyUser\\AppData\\Roaming\\Sikulix\\SikulixStore\\SikulixTemp\\scriptCompiled\\DaimlerTool.py', but no encoding declared; see http://www.python.org/peps/pep-0263.html for details",)"
As can be seen from the example script above there is the coding accordingly to the pep-0263
I made a test with the other possible format with the same (bad) result both on the message panel and of the missing .class file into the jar.
These are the formats I've tested:
# This Python file uses the following encoding: utf-8
and
#!/usr/local/bin/python
# coding: utf-8
Both on the very first line of the script.
It seems "as if" for some reason the compiler is not able to find the conding message.
Hope this helps to find a solution..
Thanks
--
You received this question notification because your team Sikuli Drivers
is an answer contact for SikuliX.