Matthew Bromberg, 24.12.2009 21:04:
> 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

That would be very helpful indeed.


> but I can now no longer repeat this error.

Because it works now or because it doesn't work at all?


> 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'

There's something wrong with your installation, the two versions seem to be 
mixed. Try removing Cython and installing it again.


> 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.

It likely is.

Stefan

_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev

Reply via email to