I haven't been able to fully diagnose the problems but I will give some
hints. I first attempted to install cython via
python setup.py install
The install appeared to be successful. However runtests.py fails in
several cases as has already been reported in the bug database. My
legacy cython code fails to run as well.
First I had to pay attention to the future division proposal and fix my
division operators. OK no problem there, and that got Cython to
complete the conversion to C. However the C code that I generated does
not compile. I'm using visual studio express 2008 which is the same
compiler as vis. studio 2008 on windows. A segment of the type of .pyx
file I'm trying to compile is something like
############################
cdef struct vsip_block_f
cdef class rmat :
def __cinit__(self, int r, int c):
""" Generate a real matrix of r rows and c cols unitialized. """
cdef vsip_block_f *myb
####################################
This would fail after the code generated for the *myb declaration. I
would show you the output but I can now no longer repeat this error. I
went and reinstalled cython 0.11.2 to regain cython functionality.
Afterwards I attempted to reinstall 0.12 to file a bug report. Now
cython fails immediately with the following error:
from Cython.Compiler.Main import compile
File "C:\Python26\lib\site-packages\Cython\Compiler\Main.py", line
19, in <module>
import Parsing
File "Parsing.py", line 17, in init Cython.Compiler.Parsing
(F:\Apps\Cython-0.12\Cython\Compiler\Parsing.c:50762)
AttributeError: 'module' object has no attribute '_unicode'
I'm using python 2.6.4. I just wanted to run this by someone prior to
filing a bug report, in case there is something wrong on my end.
-Matt
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev