Windows 10: imports no longer working after moving to newest version (run from comand line, sys.path not containing location of common modules)
I am having the same issue as in https:/
I have followed the suggestions in that question but it has not resolved my issue.
I get the following error
-------
[error] script [ design_loading1 ] stopped with error in line 3
[error] ImportError ( No module named commonFunctions )
[error] --- Traceback --- error source first
line: module ( function ) statement
3: main ( <module> ) from commonFunctions import *
[error] --- Traceback --- end --------------
-------
I was previously using sikuli(x) 1.0.0 and wanted to upgrade to the latest version to take advantage of some of the newest features (including the OCR).
Previously the scripts were run from a .bat/.cmd file that issued a command line to run the sikilu-script.jar, but I see that this is no longer used and that I should be using the new sikuli-ide.jar for running a script from the command line.
The previous command issued was :
"C:/Program Files (x86)/\
where Dpython.path is the location of the common scripts.
Trying to run the exact same script using the new version (2.0.5) and the command I use is the following:
"C:\Program Files\Java\
I have tried setting up the PYTHONPATH, JYTHONPATH and CLASSPATH but this had no affect.
... log deleted - not relevant
as can be seen my required path is not being added to sys.path.
Any help would be appreciated.
Thaknks
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 Richard Chubb for more information if necessary.