[pypy-dev] works in python2.4, fails in pypy

Maciej Fijalkowski fijall at gmail.com
Mon Aug 25 10:23:55 CEST 2008


Works for me:

fijal at zygfryd:~$ pypy-c
Python 2.4.1 (pypy 1.0.0 build 57237) on linux2
Type "help", "copyright", "credits" or "license" for more information.
Welcome to rlcompleter2 0.96
for nice experiences hit <tab> multiple times
And now for something completely different: ``"peephope" optimizations are what
an optimistic Compiler uses''
>>>> import sympy
>>>>

If you have old pypy build try pypy-c --oldstyle, otherwise you can
retranslate pypy.

On Sun, Aug 24, 2008 at 4:08 PM, Ondrej Certik <ondrej at certik.cz> wrote:
> Hi,
>
> I am using pypy in Debian:
>
> ondra at fuji:~/sympy$ python2.4
> Python 2.4.5 (#2, Jul 20 2008, 20:55:34)
> [GCC 4.3.1] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>>>> import sympy
>>>>
> ondra at fuji:~/sympy$ pypy
> Python 2.4.1 (pypy 1.0.0 build 55235) on linux2
> Type "help", "copyright", "credits" or "license" for more information.
> ``the 'super' keyword is not that huggable''
>>>>> import sympy
> Traceback (most recent call last):
>  File "<console>", line 1, in <interactive>
>  File "/home/ondra/sympy/sympy/__init__.py", line 16, in <module>
>    from sympy.core import *
>  File "/home/ondra/sympy/sympy/core/__init__.py", line 13, in <module>
>    from function import Lambda, WildFunction, Derivative, diff,
> FunctionClass, \
>  File "/home/ondra/sympy/sympy/core/function.py", line 361, in <module>
>    class WildFunction(Function, Atom):
>  File "/home/ondra/sympy/sympy/core/function.py", line 68, in __new__
>    return type.__new__(cls, name, bases, attrdict)
> TypeError: instance layout conflicts in multiple inheritance
>>>>>
>
>
> Do you know what this error means and how should we fix sympy so that
> it works on top of pypy?
>
> Ondrej
> _______________________________________________
> pypy-dev at codespeak.net
> http://codespeak.net/mailman/listinfo/pypy-dev
>



More information about the Pypy-dev mailing list