Message6646

Author asmeurer
Recipients amak, asmeurer, fwierzbicki
Date 2011-09-11.20:25:03
SpamBayes Score 3.2493002e-08
Marked as misclassified No
Message-id <1315772703.56.0.981662406382.issue1777@psf.upfronthosting.co.za>
In-reply-to
Content
Sorry, that traceback actually came from a print statement that I had put in there.  That at least shows that both trying to set self._assumptions and trying to read it cause the problem.  Here is the actual traceback:

>>> import sympy.physics.quantum.spin
sympy/external/importtools.py:104: UserWarning: Python version is too old to use numpy (2.6 or newer required)
  warnings.warn("Python version is too old to use %s "
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "sympy/physics/quantum/__init__.py", line 46, in <module>
    import represent as repmod
  File "sympy/physics/quantum/represent.py", line 21, in <module>
    from sympy.physics.quantum.operatorset import operators_to_state, state_to_operators
  File "sympy/physics/quantum/operatorset.py", line 27, in <module>
    from sympy.physics.quantum.spin import (
  File "sympy/physics/quantum/spin.py", line 871, in <module>
    Jx = JxOp('J')
  File "sympy/physics/quantum/qexpr.py", line 120, in __new__
    inst = Expr.__new__(cls, *args, **{'commutative':False})
  File "sympy/core/basic.py", line 85, in __new__
    obj._init_assumptions(assumptions)
  File "sympy/core/assumptions.py", line 237, in _init_assumptions
    self._assumptions  = self.default_assumptions
java.lang.ArrayIndexOutOfBoundsException: 2
	at org.python.core.PyObjectDerived.setSlot(PyObjectDerived.java:13)
	at org.python.core.PySlot.member_descriptor___set__(PySlot.java:50)
	at org.python.core.PySlot.__set__(PySlot.java:44)
	at org.python.core.PyObject.object___setattr__(PyObject.java:3742)
	at org.python.core.PyObject.object___setattr__(PyObject.java:3732)
	at org.python.core.PyObject$object___setattr___exposer.__call__(Unknown Source)
	at org.python.core.PyObjectDerived.__setattr__(PyObjectDerived.java:990)
	at sympy.core.assumptions$py._init_assumptions$10(sympy/core/assumptions.py:257)
	at sympy.core.assumptions$py.call_function(sympy/core/assumptions.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 sympy.core.basic$py.__new__$3(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/basic.py:89)
	at sympy.core.basic$py.call_function(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/core/basic.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.physics.quantum.qexpr$py.__new__$5(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/qexpr.py:123)
	at sympy.physics.quantum.qexpr$py.call_function(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/qexpr.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:387)
	at org.python.core.PyObject.__call__(PyObject.java:391)
	at sympy.physics.quantum.spin$py.f$0(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/spin.py:1456)
	at sympy.physics.quantum.spin$py.call_function(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/spin.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.createFromPyClass(imp.java:204)
	at org.python.core.imp.loadFromSource(imp.java:567)
	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.physics.quantum.operatorset$py.f$0(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/operatorset.py:275)
	at sympy.physics.quantum.operatorset$py.call_function(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/operatorset.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.createFromPyClass(imp.java:204)
	at org.python.core.imp.loadFromSource(imp.java:567)
	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.physics.quantum.represent$py.f$0(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/represent.py:486)
	at sympy.physics.quantum.represent$py.call_function(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/represent.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.createFromPyClass(imp.java:204)
	at org.python.core.imp.loadFromSource(imp.java:567)
	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.importOneAs(imp.java:921)
	at sympy.physics.quantum$py.f$0(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/__init__.py:60)
	at sympy.physics.quantum$py.call_function(/Users/aaronmeurer/Documents/Python/sympy/sympy/sympy/physics/quantum/__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.createFromPyClass(imp.java:204)
	at org.python.core.imp.loadFromSource(imp.java:567)
	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.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.ArrayIndexOutOfBoundsException: java.lang.ArrayIndexOutOfBoundsException: 2
History
Date User Action Args
2011-09-11 20:25:03asmeurersetmessageid: <1315772703.56.0.981662406382.issue1777@psf.upfronthosting.co.za>
2011-09-11 20:25:03asmeurersetrecipients: + asmeurer, fwierzbicki, amak
2011-09-11 20:25:03asmeurerlinkissue1777 messages
2011-09-11 20:25:03asmeurercreate