On Fri, Oct 10, 2008 at 12:12 AM, Philip Jenvey <[EMAIL PROTECTED]> wrote:
>
> On Oct 8, 2008, at 7:29 PM, Philip Jenvey wrote:
>
>>
>> On Oct 8, 2008, at 5:58 PM, Ondrej Certik wrote:
>>
>>> Here is how to play with it (I tried jython latest alpha 3):
>>>
>>> $ git clone git://git.sympy.org/sympy.git
>>> $ cd sympy
>>> $ ~/ext/jython2.5a3/jython -c "import sympy"
>>> Traceback (most recent call last):
>>> File "<string>", line 1, in <module>
>>> File "sympy/__init__.py", line 16, in <module>
>>>  from sympy.core import *
>>> File "sympy/core/__init__.py", line 4, in <module>
>>>  from basic import Basic, S, C, sympify
>>> File "sympy/core/basic.py", line 236, in <module>
>>>  class Basic(AssumeMeths):
>>> TypeError: Error when calling the metaclass bases
>>>  mro() returned base with unsuitable layout ('Basic')
>>>
>>
>> Definitely log a ticket for this one.
>
> Actually, don't bother logging these. I've got this TypeError figured out.
>
> The NPE you posted is also still present in trunk, but I've about got a fix
> for that one. The compiler isn't handling lambda within a decorator's
> arglist correctly, the offending line was in numbers.py:
>
> @Memoizer((int, long), return_value_converter = lambda d: d.copy())
>
> With those two squashed I think I've unearthed some more odd TypeErrors.

Thanks for all the feedback. Let me know when it's fixed, I'll retry
it again and then I'll also try to figure out the metaclasses problem
-- as Alex suggested, it can be a problem in sympy, but sympy works on
all cpython 2.4, 2.5 and 2.6, so definitely jython should not just
throw some java exception.

Getting sympy to import is just the first thing. The real fun will
begin when running the actuall tests, so I am sure more problems will
popup. But generally, jython seems to be in a pretty good shape. Btw,
pypy had similar problems too in the past and ironpython also cannot
import sympy.

Ondrej

P.S. I am going to the google mentors summit and I'll be in the bay
area from 27-29. If some of you are be around, let me know.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sympy" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/sympy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to