← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #200162]: importing Sikuli in Jython - Jedit IDE

 

Question #200162 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/200162

    Status: Answered => Open

vidya rajagopal is still having a problem:

-----Original Message-----
From: bounces@xxxxxxxxxxxxx [mailto:bounces@xxxxxxxxxxxxx] On Behalf Of RaiMan
Sent: Tuesday, June 12, 2012 1:26 PM I did upadte the path of sikuli script jar file path
C:\Program Files\Sikuli X\sikuli-script.jar\Lib\ in Jedit
Now when I use " from sikuli.Sikuli import *" I get the below error . Can you let me know where I might be going wrong
------------------------------------
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "D:\Documents and Settings\vidya.rajagopal\.jedit\jars\JythonInterpreter.jar\jython\PyParser.py", line 28, in <module>
ImportError: No module named sidekick
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\__init__.py", line 3, in <module>
  File "C:\Program Files\Sikuli X\sikuli-script.jar\Lib\sikuli\Sikuli.py", line 22, in <module>
java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder

        at java.lang.Class.forName0(Native Method)

        at java.lang.Class.forName(Unknown Source)

        at org.python.core.Py.loadAndInitClass(Py.java:895)

        at org.python.core.Py.findClassInternal(Py.java:830)

        at org.python.core.Py.findClassEx(Py.java:881)

        at
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)

        at
org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)

        at
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)

        at
org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)

        at org.python.core.PyObject.__findattr__(PyObject.java:863)

        at org.python.core.imp.import_name(imp.java:849)

        at org.python.core.imp.importName(imp.java:884)

        at
org.python.core.ImportFunction.__call__(__builtin__.java:1220)

        at org.python.core.PyObject.__call__(PyObject.java:357)

        at org.python.core.__builtin__.__import__(__builtin__.java:1173)

        at org.python.core.imp.importFromAs(imp.java:978)

        at org.python.core.imp.importFrom(imp.java:954)

        at sikuli.Sikuli$py.f$0(C:\Program Files\Sikuli X\sikuli-
script.jar\Lib\sikuli\Sikuli.py:211)

        at sikuli.Sikuli$py.call_function(C:\Program Files\Sikuli X
\sikuli-script.jar\Lib\sikuli\Sikuli.py)

        at org.python.core.PyTableCode.call(PyTableCode.java:165)

        at org.python.core.PyCode.call(PyCode.java:18)

        at org.python.core.imp.createFromCode(imp.java:386)

        at
org.python.core.util.importer.importer_load_module(importer.java:109)

        at
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)

        at
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown
Source)

        at
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)

        at org.python.core.imp.loadFromLoader(imp.java:513)

        at org.python.core.imp.find_module(imp.java:467)

        at org.python.core.PyModule.impAttr(PyModule.java:100)

        at org.python.core.imp.import_next(imp.java:715)

        at org.python.core.imp.import_name(imp.java:824)

        at org.python.core.imp.importName(imp.java:884)

        at
org.python.core.ImportFunction.__call__(__builtin__.java:1220)

        at org.python.core.PyObject.__call__(PyObject.java:357)

        at org.python.core.__builtin__.__import__(__builtin__.java:1173)

        at org.python.core.imp.importAll(imp.java:998)

        at sikuli$py.f$0(C:\Program Files\Sikuli X\sikuli-
script.jar\Lib\sikuli\__init__.py:3)

        at sikuli$py.call_function(C:\Program Files\Sikuli X\sikuli-
script.jar\Lib\sikuli\__init__.py)

        at org.python.core.PyTableCode.call(PyTableCode.java:165)

        at org.python.core.PyCode.call(PyCode.java:18)

        at org.python.core.imp.createFromCode(imp.java:386)

        at
org.python.core.util.importer.importer_load_module(importer.java:109)

        at
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)

        at
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown
Source)

        at
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)

        at org.python.core.imp.loadFromLoader(imp.java:513)

        at org.python.core.imp.find_module(imp.java:467)

        at org.python.core.imp.import_next(imp.java:713)

        at org.python.core.imp.import_name(imp.java:824)

        at org.python.core.imp.importName(imp.java:884)

        at
org.python.core.ImportFunction.__call__(__builtin__.java:1220)

        at org.python.core.PyObject.__call__(PyObject.java:357)

        at org.python.core.__builtin__.__import__(__builtin__.java:1173)

        at org.python.core.imp.importAll(imp.java:998)

        at org.python.pycode._pyx83.f$0(<console>:1)

        at org.python.pycode._pyx83.call_function(<console>)

        at org.python.core.PyTableCode.call(PyTableCode.java:165)

        at org.python.core.PyCode.call(PyCode.java:18)

        at org.python.core.Py.runCode(Py.java:1261)

        at org.python.core.Py.exec(Py.java:1305)

        at
org.python.util.PythonInterpreter.exec(PythonInterpreter.java:215)

        at
org.python.util.InteractiveInterpreter.runcode(InteractiveInterpreter.java:89)

        at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:70)

        at
org.python.util.InteractiveInterpreter.runsource(InteractiveInterpreter.java:46)

        at jython.JeditConsole.pushLine(JeditConsole.java:62)

        at jython.LineCommand.doExecute(JeditConsole.java:195)

        at jython.AbstractCommand.execute(JeditConsole.java:145)

        at jython.JythonExecutor.run(JythonExecutor.java:335)

        at java.lang.Thread.run(Unknown Source)


java.lang.NoClassDefFoundError: java.lang.NoClassDefFoundError: Could not initialize class org.sikuli.script.Finder
------------------------------------------------------------------
To: Rajagopal, Vidya
Subject: Re: [Question #200162]: importing Sikuli in Jython - Jedit IDE

Your question #200162 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/200162

    Status: Open => Answered

RaiMan proposed the following answer:
look in the docs:
http://sikuli.org/docx/faq/040-other-ide.html#how-to-use-sikuli-together-with-other-ide-s

Though this is special for NetBeans and Eclipse, all your questions are
answered somehow and you might get a better insight.

--
If this answers your question, please go to the following page to let us
know that it is solved:
https://answers.launchpad.net/sikuli/+question/200162/+confirm?answer_id=5

If you still need help, you can reply to this email or go to the
following page to enter your feedback:
https://answers.launchpad.net/sikuli/+question/200162

You received this question notification because you asked the question.


________________________________
Subject to local law, communications with Accenture and its affiliates including telephone calls and emails (including content), may be monitored by our systems for the purposes of security and the assessment of internal compliance with Accenture policy.
______________________________________________________________________________________

www.accenture.com

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