Bug#675160: sikuli-ide: unable to process one single instruction, "NoSuchMethodError: org.jruby.ext.posix.POSIX.isNative()Z"
Gilles Filippini
pini at debian.org
Sat Jun 2 12:12:02 UTC 2012
severity 675160 normal
tags 675160 + moreinfo unreproducible
quit
Hi,
hennr a écrit , Le 30/05/2012 11:36:
> Package: sikuli-ide
> Version: 1.0~x~rc3.tesseract3-dfsg1-3
> Severity: grave
> Justification: renders package unusable
>
> sikuli can't process an application like this one:
>
> openApp("icedove")
>
>
> Full error message is:
>
>
> [error] Stopped
> [error] An error occurs at line 1
> [error] Error message:
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/share/sikuli/Lib/sikuli/__init__.py", line 3, in
> from Sikuli import *
> File "/usr/share/sikuli/Lib/sikuli/Sikuli.py", line 34, in
> from Region import *
> File "/usr/share/sikuli/Lib/sikuli/Region.py", line 9, in
> import inspect
> File "/usr/share/jython/Lib/inspect.py", line 31, in
> import sys, os, types, string, re, dis, imp, tokenize, linecache
> File "/usr/share/jython/Lib/os.py", line 45, in
> from posix import *
> java.lang.NoSuchMethodError: org.jruby.ext.posix.POSIX.isNative()Z
> at org.python.modules.posix.PosixModule.classDictInit(PosixModule.java:106)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> a
>
> t java.lang.reflect.Method.invoke(Method.java:601)
> at org.python.core.PyJavaType.init(PyJavaType.java:534)
> at org.python.core.PyType.createType(PyType.java:1264)
> at org.python.core.PyType.addFromClass(PyType.java:1201)
> at org.python.core.PyType.fromClass(PyType.java:1291)
> at org.python.core.imp.createFromClass(imp.java:405)
> at org.python.core.imp.loadBuiltin(imp.java:501)
> at org.python.core.imp.find_module(imp.java:452)
> 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 os$py.f$0(/usr/share/jython/Lib/os.py:691)
> at os$py.call_function(/usr/share/jython/Lib/os.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.imp.createFromSource(imp.java:349)
> at org.python.core.imp.loadFromSource(imp.java:573)
> at org.python.core.imp.find_module(imp.java:473)
> 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.importOne(imp.java:903)
> at inspect$py.f$0(/usr/share/jython/Lib/inspect.py:903)
> at inspect$py.call_function(/usr/share/jython/Lib/inspect.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.imp.createFromSource(imp.java:349)
> at org.python.core.imp.loadFromSource(imp.java:573)
> at org.python.core.imp.find_module(i
>
> mp.java:473)
> at org.python.core.imp.import_next(imp.java:713)
> at org.python.core.imp.import_first(imp.java:743)
> at org.python.core.imp.import_name(imp.java:834)
> 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.importOne(imp.java:903)
> at sikuli.Region$py.f$0(/usr/share/sikuli/Lib/sikuli/Region.py:16)
> at sikuli.Region$py.call_function(/usr/share/sikuli/Lib/sikuli/Region.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.imp.createFromSource(imp.java:349)
> at org.python.core.imp.loadFromSource(imp.java:576)
> at org.python.core.imp.find_module(imp.java:473)
> at org.python.core.PyModule.impAttr(PyModule.java:100)
> at org.python.core.imp.import_next(imp.java:715)
> at or
>
> g.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.Sikuli$py.f$0(/usr/share/sikuli/Lib/sikuli/Sikuli.py:211)
> at sikuli.Sikuli$py.call_function(/usr/share/sikuli/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.imp.createFromSource(imp.java:349)
> at org.python.core.imp.loadFromSource(imp.java:576)
> at org.python.core.imp.find_module(imp.java:473)
> 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.Import
>
> Function.__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(/usr/share/sikuli/Lib/sikuli/__init__.py:3)
> at sikuli$py.call_function(/usr/share/sikuli/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.imp.createFromSource(imp.java:349)
> at org.python.core.imp.loadFromSource(imp.java:576)
> at org.python.core.imp.find_module(imp.java:473)
> 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._pyx5.f$0(:1)
> at org.python.pycode._pyx5.call_function()
> 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:206)
> at org.sikuli.script.ScriptRunner.runPython(ScriptRunner.java:64)
> at org.sikuli.ide.SikuliIDE$ButtonRun.runPython(SikuliIDE.java:1574)
> at org.sikuli.ide.SikuliIDE$ButtonRun$1.run(SikuliIDE.java:1679)
>
> java.lang.NoSuchMethodError: java.lang.NoSuchMethodError:
> org.jruby.ext.posix.POSIX.isNative()Z
>
>
> I am using java and javac version 7
>
> Using java 6 leads to a similar error message:
>
> [error] Stopped
> [error] An error occurs at line 1
> [error] Error message:
> Traceback (most recent call last):
> File "", line 1, in
> File "/usr/share/sikuli/Lib/sikuli/__init__.py", line 3, in
> from Sikuli import *
> File "/usr/share/sikuli/Lib/sikuli/Sikuli.py", line 34, in
> from Region import *
> File "/usr/share/sikuli/Lib/sikuli/Region.py", line 9, in
> import inspect
> File "/usr/share/jython/Lib/inspect.py", line 31, in
> import sys, os, types, string, re, dis, imp, tokenize, linecache
> File "/usr/share/jython/Lib/os.py", line 50, in
> import posixpath as path
> File "/usr/share/jython/Lib/posixpath.py", line 216, in
> if not os._native_posix:
> AttributeError: 'module' object has no attribute '_native_posix'
>
>
>
> -- System Information:
> Debian Release: wheezy/sid
> APT prefers testing
> APT policy: (650, 'testing'), (600, 'unstable'), (500, 'stable-updates'), (500, 'stable'), (1, 'experimental')
> Architecture: amd64 (x86_64)
>
> Kernel: Linux 3.3.0-trunk-amd64 (SMP w/2 CPU cores)
> Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
> Shell: /bin/sh linked to /bin/dash
>
> Versions of packages sikuli-ide depends on:
> ii default-jre 1:1.6-47 Standard Java or Java compatible R
> ii junit 3.8.2-8 Automated testing framework for Ja
> ii libcommons- 1.2-3 API for working with the command l
> ii libjson-sim 1.1-dfsg1-1 Simple, lightweight and efficient
> ii libjxgrabke 0.3.2-6 X11 hotkey API for java
> ii libmac-widg 0.9.5+svn369-dfsg1-1 collection of Mac style widgets wr
> ii libsikuli-s 1.0~x~rc3.tesseract3-dfsg1-3 Visual scripting API for jython
> ii libswing-la 1.0.4-2 Extensions to Swing layout
> ii libswingx-j 1:1.6.2-1 extensions to the Swing GUI toolki
> ii openjdk-6-j 6b24-1.11.1-6 OpenJDK Java runtime, using Hotspo
> ii openjdk-7-j 7~u3-2.1.1~pre1-2 OpenJDK Java runtime, using Hotspo
>
> sikuli-ide recommends no packages.
>
> sikuli-ide suggests no packages.
>
> -- no debconf information
I can't reproduce this problem with up-to-date testing (amd64 as well as
i386).
Looking at the stack traces you provided, it might be related with your
jpython install. Ho does this command line perform?
$ jython -c 'import inspect'
Thanks,
_g.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 490 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-java-maintainers/attachments/20120602/e840a5d2/attachment-0001.pgp>
More information about the pkg-java-maintainers
mailing list