[Cython] Cython 0.11 beta fails to install with Python 3.0
Dag Sverre Seljebotn
dagss at student.matnat.uio.no
Mon Feb 2 10:20:27 CET 2009
Case Vanhorsen wrote:
> Hello,
>
> I just tried to install Cython 0.11 beta with Python 3.0. I get the
> following error:
>
> case:~/src/Cython-0.11.beta$ py30 setup.py install
> Traceback (most recent call last):
> File "setup.py", line 5, in <module>
> from Cython.Compiler.Version import version
> File "/home/case/src/Cython-0.11.beta/Cython/__init__.py", line 2, in <module>
> from Shadow import *
> ImportError: No module named Shadow
>
> It does install successfully using Python 2.5 and 2.6. Please let me
> know if there is any other information you need.
>
I had the impression that Cython doesn't support being run under Python
3 (though Stefan would have the definitive answer on that). I think you
must install on Python 2.6, and then compile your .pyx to .c under 2.6,
and THEN you can compile the c file with the Python 3 headers to get a
Python 3 module.
Dag Sverre
More information about the Cython-dev
mailing list