I'm attempting to install cython from the git repository to benefit
from this fix: http://trac.cython.org/cython_trac/ticket/597 . When I
run "python3 setup.py install --user", I get an error:
cythoning /Users/darren/Projects/cython/Cython/Compiler/Code.py to
/Users/darren/Projects/cython/Cython/Compiler/Code.c
Error compiling Cython file:
------------------------------------------------------------
...
self.cname = cname
self.text = text
self.escaped_value = StringEncoding.escape_byte_string(byte_string)
self.py_strings = None
def get_py_string_const(self, encoding, identifier=None, is_str=False):
^
------------------------------------------------------------
Cython/Compiler/Code.py:320:4: Signature not compatible with previous
declaration
Error compiling Cython file:
------------------------------------------------------------
...
cdef public object text
cdef public object escaped_value
cdef public dict py_strings
@cython.locals(intern=bint, is_str=bint, is_unicode=bint)
cpdef get_py_string_const(self, encoding, identifier=*, is_str=*)
^
------------------------------------------------------------
Cython/Compiler/Code.pxd:64:30: Previous declaration is here
building 'Cython.Compiler.Code' extension
/usr/bin/gcc-4.2 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g
-fwrapv -O3 -Wall -Wstrict-prototypes -O2
-I/opt/local/Library/Frameworks/Python.framework/Versions/3.2/include/python3.2m
-c /Users/darren/Projects/cython/Cython/Compiler/Code.c -o
build/temp.macosx-10.6-x86_64-3.2/Users/darren/Projects/cython/Cython/Compiler/Code.o
/Users/darren/Projects/cython/Cython/Compiler/Code.c:1:2: error:
#error Do not use this file, it is the result of a failed Cython
compilation.
error: command '/usr/bin/gcc-4.2' failed with exit status 1
_______________________________________________
Cython-dev mailing list
[email protected]
http://codespeak.net/mailman/listinfo/cython-dev