[Scipy-tickets] [SciPy] #1524: io.matlab .pyx files don't work with Cython 0.15

SciPy Trac scipy-tickets@scipy....
Sun Sep 25 15:35:34 CDT 2011


#1524: io.matlab .pyx files don't work with Cython 0.15
----------------------+-----------------------------------------------------
 Reporter:  rgommers  |       Owner:  mbrett     
     Type:  defect    |      Status:  new        
 Priority:  normal    |   Milestone:  Unscheduled
Component:  scipy.io  |     Version:  devel      
 Keywords:  cython    |  
----------------------+-----------------------------------------------------
 {{{
 $ cython mio5_utils.pyx
 warning: scipy/io/matlab/mio5_utils.pyx:302:16: Unreachable code
 warning: scipy/io/matlab/mio5_utils.pyx:481:12: Unreachable code

 Error compiling Cython file:
 ------------------------------------------------------------
 ...
     * struct_as_record (bool)
     * chars_as_strings (bool)
     * mat_dtype (bool)
     * squeeze_me (bool)
     """
     def __new__(self, preader):
    ^
 ------------------------------------------------------------

 scipy/io/matlab/mio5_utils.pyx:172:4: __new__ method of extension type
 will change semantics in a future version of Pyrex and Cython. Use
 __cinit__ instead.
 warning: scipy/io/matlab/mio5_utils.pyx:242:40: local variable 'mdtype'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:242:53: local variable
 'byte_count' referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:425:19: local variable 'mdtype'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:425:32: local variable
 'byte_count' referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:425:52: local variable 'data_ptr'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:456:40: local variable 'mdtype'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:456:53: local variable
 'byte_count' referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:456:59: local variable 'ptr'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:478:38: local variable 'mdtype'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:478:51: local variable
 'byte_count' referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:505:35: local variable 'mdtype'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:505:48: local variable
 'byte_count' referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:613:35: local variable 'mdtype'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:613:48: local variable
 'byte_count' referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:772:19: local variable 'mdtype'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:772:32: local variable
 'byte_count' referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:772:52: local variable 'data_ptr'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:831:45: local variable 'n_names'
 referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:839:56: local variable
 'namelength' referenced before assignment
 warning: scipy/io/matlab/mio5_utils.pyx:886:64: local variable 'n_names'
 referenced before assignment
 }}}

 {{{
 $ cython streams.pyx
 warning: scipy/io/matlab/streams.pyx:69:12: Unreachable code
 warning: scipy/io/matlab/streams.pyx:158:12: Unreachable code
 warning: scipy/io/matlab/streams.pyx:173:12: Unreachable code
 warning: scipy/io/matlab/streams.pyx:92:42: local variable 'ptr'
 referenced before assignment
 warning: scipy/io/matlab/streams.pyx:103:48: local variable 'd_ptr'
 referenced before assignment
 warning: scipy/io/matlab/streams.pyx:117:60: local variable 'd_ptr'
 referenced before assignment
 warning: scipy/io/matlab/streams.pyx:196:55: local variable 'd_ptr'
 referenced before assignment
 }}}

-- 
Ticket URL: <http://projects.scipy.org/scipy/ticket/1524>
SciPy <http://www.scipy.org>
SciPy is open-source software for mathematics, science, and engineering.


More information about the Scipy-tickets mailing list