Not importing sikuli scripts in debug mode in Netbeans

Asked by Carlos

Hi,

I wanted to better debug sikuli scripts in our application and installed NetBeans (8.2) to do so. Installed the NetBeans python plugin (for 8.1 but valid for 8.2).
I created a project in which I loaded all my sikuli/python scripts, select Jython 2.7.0 (the one provided with NetBeans) and configure Python Path pointing to sikulixapi.jar\Lib (I am in Windows 8.1 platform) and Java Path to sikulix.jar

My main script starts with a from sikuli import * and manage to run it with simple python code. The code import another sikuli script (called settings) which is regular sikuli directory structure format (settings.sikuli/settings.py).

When calling the same script in debugging mode it comes with an import error:
  File "G:/Development/trunk/radiance/Testing/SystemTest/radianceForms/mainTest.sikuli/mainTest.py", line 24, in <module>
    from settings import *
ImportError: No module named settings

What's done different in NetBeans when running in debug mode instead of regular run which is not able to import such file?

Thanks,
Carlos

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

Using SikuliX 1.1.1 ?
If not, give it a try.

--- and Java Path to sikulix.jar
do not do this in your environment, since the bundled Jython in sikulix.jar might collide with your Jython defined in NetBeans.
instead put sikulixapi.jar on the Java path.

BTW:
until about 1 year ago I used NetBeans for my developement (I generally dislike Eclipse ;-).
Then I switched to the IntelliJ product line (free Community Editions) and I am more than satisfied with my decision.
PyCharm CE is up to date and a compound product (not a community driven plugin like in NetBeans).

Can you help with this problem?

Provide an answer of your own, or ask Carlos for more information if necessary.

To post a message you must log in.