Comment #31 on issue 1233 by [email protected]: fix the rest of jython bugs
http://code.google.com/p/sympy/issues/detail?id=1233
Ah, I was looking at the wrong screen. Jython 2.5.2 in SymPy master with
Basic.__slots__ removed gives the NullPointerException. It looks like the
traceback for that and the one from Jython 2.7a2 are very near each other:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "sympy/__init__.py", line 50, in <module>
from sympy.core import *
File "sympy/core/__init__.py", line 25, in <module>
from sets import (Set, Interval, Union, EmptySet, FiniteSet, ProductSet,
File "sympy/core/sets.py", line 10, in <module>
from sympy.assumptions import ask
File "sympy/assumptions/__init__.py", line 2, in <module>
from ask import Q, ask, register_handler, remove_handler
File "sympy/assumptions/ask.py", line 275, in <module>
known_facts = And(
File "sympy/logic/boolalg.py", line 18, in __and__
return And(self, other)
File "sympy/core/operations.py", line 421, in __new__
_args = frozenset(cls._new_args_filter(args))
File "sympy/core/operations.py", line 421, in __new__
_args = frozenset(cls._new_args_filter(args))
File "sympy/core/operations.py", line 442, in _new_args_filter
for x in arg.iter_basic_args():
File "sympy/core/basic.py", line 681, in iter_basic_args
return iter(self.args)
File "sympy/core/cache.py", line 92, in wrapper
func_cache_it_cache[k] = r = func(*args, **kw_args)
File "sympy/core/operations.py", line 471, in args
return tuple(ordered(self._argset))
File "sympy/core/compatibility.py", line 738, in ordered
for v in d[k]:
File "sympy/core/compatibility.py", line 738, in ordered
for v in d[k]:
File "sympy/core/compatibility.py", line 740, in ordered
d.pop(k)
java.lang.NullPointerException
at org.python.core.PyDictionary.dict_pop(PyDictionary.java:602)
at org.python.core.PyDictionary$dict_pop_exposer.__call__(Unknown
Source)
at org.python.core.PyObject.__call__(PyObject.java:391)
at
sympy.core.compatibility$py.ordered$34(sympy/core/compatibility.py:729)
at
sympy.core.compatibility$py.call_function(sympy/core/compatibility.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:149)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:131)
at
sympy.core.compatibility$py.ordered$34(sympy/core/compatibility.py:729)
at
sympy.core.compatibility$py.call_function(sympy/core/compatibility.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:149)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:131)
at
sympy.core.compatibility$py.ordered$34(sympy/core/compatibility.py:729)
at
sympy.core.compatibility$py.call_function(sympy/core/compatibility.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:149)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:131)
at
org.python.core.WrappedIterIterator.hasNext(WrappedIterIterator.java:23)
at org.python.core.Py.make_array(Py.java:1980)
at org.python.core.PyTuple.tuple_new(PyTuple.java:90)
at org.python.core.PyTuple$exposed___new__.new_impl(Unknown Source)
at org.python.core.PyType.invokeNew(PyType.java:466)
at org.python.core.PyType.type___call__(PyType.java:1558)
at org.python.core.PyType.__call__(PyType.java:1548)
at org.python.core.PyObject.__call__(PyObject.java:387)
at org.python.core.PyObject.__call__(PyObject.java:391)
at sympy.core.operations$py.args$20(sympy/core/operations.py:471)
at sympy.core.operations$py.call_function(sympy/core/operations.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyFunction.function___call__(PyFunction.java:376)
at org.python.core.PyFunction.__call__(PyFunction.java:371)
at org.python.core.PyFunction.__call__(PyFunction.java:366)
at org.python.core.PyObject._callextra(PyObject.java:527)
at sympy.core.cache$py.wrapper$5(sympy/core/cache.py:93)
at sympy.core.cache$py.call_function(sympy/core/cache.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyBaseCode.call(PyBaseCode.java:127)
at org.python.core.PyFunction.__call__(PyFunction.java:317)
at org.python.core.PyFunction.__call__(PyFunction.java:312)
at org.python.core.PyProperty.property___get__(PyProperty.java:69)
at org.python.core.PyProperty.__get__(PyProperty.java:58)
at org.python.core.PyObject.object___findattr__(PyObject.java:3706)
at org.python.core.Deriveds.__findattr_ex__(Deriveds.java:42)
at
org.python.core.PyObjectDerived.__findattr_ex__(PyObjectDerived.java:983)
at org.python.core.PyObject.__getattr__(PyObject.java:923)
at sympy.core.basic$py.iter_basic_args$32(sympy/core/basic.py:681)
at sympy.core.basic$py.call_function(sympy/core/basic.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:134)
at org.python.core.PyFunction.__call__(PyFunction.java:317)
at org.python.core.PyMethod.__call__(PyMethod.java:109)
at
sympy.core.operations$py._new_args_filter$18(sympy/core/operations.py:436)
at sympy.core.operations$py.call_function(sympy/core/operations.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:149)
at org.python.core.PyGenerator.__iternext__(PyGenerator.java:131)
at
org.python.core.WrappedIterIterator.hasNext(WrappedIterIterator.java:23)
at org.python.core.BaseSet._update(BaseSet.java:38)
at org.python.core.PyFrozenSet.<init>(PyFrozenSet.java:26)
at org.python.core.PyFrozenSet.<init>(PyFrozenSet.java:22)
at org.python.core.PyFrozenSet.frozenset___new__(PyFrozenSet.java:42)
at org.python.core.PyFrozenSet$exposed___new__.new_impl(Unknown Source)
at org.python.core.PyType.invokeNew(PyType.java:466)
at org.python.core.PyType.type___call__(PyType.java:1558)
at org.python.core.PyType.__call__(PyType.java:1548)
at org.python.core.PyObject.__call__(PyObject.java:387)
at org.python.core.PyObject.__call__(PyObject.java:391)
at sympy.core.operations$py.__new__$16(sympy/core/operations.py:431)
at sympy.core.operations$py.call_function(sympy/core/operations.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:301)
at org.python.core.PyFunction.function___call__(PyFunction.java:376)
at org.python.core.PyFunction.__call__(PyFunction.java:371)
at org.python.core.PyFunction.__call__(PyFunction.java:366)
at org.python.core.PyType.invokeNew(PyType.java:472)
at org.python.core.PyType.type___call__(PyType.java:1558)
at org.python.core.PyType$type___call___exposer.__call__(Unknown Source)
at org.python.core.PyTypeDerived.__call__(PyTypeDerived.java:951)
at org.python.core.PyObject.__call__(PyObject.java:404)
at org.python.core.PyObject.__call__(PyObject.java:408)
at sympy.logic.boolalg$py.__and__$2(sympy/logic/boolalg.py:18)
at sympy.logic.boolalg$py.call_function(sympy/logic/boolalg.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyBaseCode.call(PyBaseCode.java:149)
at org.python.core.PyFunction.__call__(PyFunction.java:327)
at org.python.core.PyMethod.__call__(PyMethod.java:124)
at org.python.core.PyMethod.__call__(PyMethod.java:115)
at org.python.core.PyObject._binop_rule(PyObject.java:1935)
at org.python.core.PyObject._and(PyObject.java:3211)
at sympy.assumptions.ask$py.f$0(sympy/assumptions/ask.py:304)
at sympy.assumptions.ask$py.call_function(sympy/assumptions/ask.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.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.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at sympy.assumptions$py.f$0(sympy/assumptions/__init__.py:3)
at sympy.assumptions$py.call_function(sympy/assumptions/__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:573)
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_logic(imp.java:777)
at org.python.core.imp.import_name(imp.java:839)
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 sympy.core.sets$py.f$0(sympy/core/sets.py:1136)
at sympy.core.sets$py.call_function(sympy/core/sets.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.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.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at sympy.core$py.f$0(sympy/core/__init__.py:34)
at sympy.core$py.call_function(sympy/core/__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:573)
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_logic(imp.java:777)
at org.python.core.imp.import_name(imp.java:839)
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 sympy$py.f$0(sympy/__init__.py:78)
at sympy$py.call_function(sympy/__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: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 org.python.pycode._pyx1.f$0(<stdin>:1)
at org.python.pycode._pyx1.call_function(<stdin>)
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 org.python.util.InteractiveConsole.push(InteractiveConsole.java:110)
at
org.python.util.InteractiveConsole.interact(InteractiveConsole.java:90)
at org.python.util.jython.run(jython.java:317)
at org.python.util.jython.main(jython.java:129)
java.lang.NullPointerException: java.lang.NullPointerException
--
You received this message because you are subscribed to the Google Groups
"sympy-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy-issues?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.