← Back to team overview

sikuli-driver team mailing list archive

[Question #210629]: How to run your Sikuli script in an advanced debugging IDE such as pyCharm

 

New question #210629 on Sikuli:
https://answers.launchpad.net/sikuli/+question/210629

64bit Windows7, Sikuli r930:

Hello,

I am wanting to be able to debug sikuli code in an ide that allows me to do advanced debugging (examine variables at runtime, etc.)  Unfortunately this cannot be done automatically in the Sikuli IDE. 

My script is running successfully in the pyCharm development IDE; however, when I try to debug it in same ide, I receive this error:

C:\jython2.5.3\jython.bat "-Dpython.path=T:\Program Files\Sikuli-r930-win32\Sikuli-IDE\libs;T:\Documents\Dropbox\projects_dev\sikuli\epic.userweb.sikuli;T:\Documents\Dropbox\projects_dev\sikuli\epic.userweb.sikuli\org;C:\jython2.5.3\Lib; T:\Program Files\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib" "T:\Program Files (x86)\JetBrains\PyCharm 2.6.2\helpers\pydev\pydevd.py" --multiproc --client 127.0.0.1 --port 50258 --file T:/Documents/Dropbox/projects_dev/sikuli/epic.userweb.sikuli/epic.userweb.py
pydev debugger: process 14776 is connecting
Connected to pydev debugger (build 121.224)
Traceback (most recent call last):
  File "T:\Program Files (x86)\JetBrains\PyCharm 2.6.2\helpers\pydev\pydevd.py", line 1457, in <module>
    debugger.run(setup['file'], None, None)
  File "T:\Program Files (x86)\JetBrains\PyCharm 2.6.2\helpers\pydev\pydevd.py", line 1103, in run
    pydev_imports.execfile(file, globals, locals) #execute the script
  File "T:/Documents/Dropbox/projects_dev/sikuli/epic.userweb.sikuli/epic.userweb.py", line 7, in <module>
    from sikuli.Sikuli import *
  File "T:\Program Files\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\__init__.py", line 3, in <module>
  File "T:\Program Files\Sikuli-r930-win32\Sikuli-IDE\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 16, in <module>
ImportError: No module named __main__

Process finished with exit code -1

Any help is appreciated.

--------------------------
Another question is Sikuli X r930 the latest? The website mentions --  "Latest version: X 1.0 rc3 (r930)", 
although no X 1.0rc3 is shown save for r905.

Thanks

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.