install failure with cython-0.20.2

Issue #12 resolved
Jaroslav Hron created an issue

compiling petsc4py fails with cython-0.20.2 it works with older version (for example cython-0.17.4)

The error is:

Error compiling Cython file:
------------------------------------------------------------
...
    return s

cdef inline str S_(const_char p[]):
     if p == NULL: return None
     cdef bytes s = <char*>p
     return s if isinstance(s, str) else s.decode()
             ^
------------------------------------------------------------

PETSc/PETSc.pyx:27:14: Cannot convert 'bytes' object to str implicitly. This is not portable to Py3.
error: Cython failure: 'petsc4py.PETSc.pyx' -> 'petsc4py.PETSc.c'

Comments (1)

  1. Log in to comment