Changes between Initial Version and Version 1 of Ticket #18514, comment 505


Ignore:
Timestamp:
06/09/18 12:00:55 (2 years ago)
Author:
SimonKing
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18514, comment 505

    initial v1  
    77
    88It is the same import statement as in sage.matrix.matrix_gfpn_dense - so, it SHOULD work, shouldn't it?
     9
     10'''EDIT:''' This is the error I get when compiling it:
     11{{{
     12[1/1] Cythonizing pGroupCohomology/resolution.pyx
     13
     14Error compiling Cython file:
     15------------------------------------------------------------
     16...
     17    # Missing from cpython.unicode in Cython 0.27.3
     18    char* PyUnicode_AsUTF8(object s)
     19
     20
     21cdef inline str char_to_str(const char* c, encoding=None, errors=None):
     22    IF PY_MAJOR_VERSION <= 2:
     23      ^
     24------------------------------------------------------------
     25
     26/home/king/Sage/git/sage/local/lib/python2.7/site-packages/sage/cpython/string.pxd:25:7: Compile-time name 'PY_MAJOR_VERSION' not defined
     27
     28Error compiling Cython file:
     29------------------------------------------------------------
     30...
     31        TypeError: expected bytes, list found
     32    """
     33    if not isinstance(b, bytes):
     34        raise TypeError(f"expected bytes, {type(b).__name__} found")
     35
     36    IF PY_MAJOR_VERSION <= 2:
     37      ^
     38------------------------------------------------------------
     39
     40/home/king/Sage/git/sage/local/lib/python2.7/site-packages/sage/cpython/string.pxd:70:7: Compile-time name 'PY_MAJOR_VERSION' not defined
     41
     42Error compiling Cython file:
     43------------------------------------------------------------
     44...
     45        TypeError: expected str ... list found
     46    """
     47    cdef const char* err
     48    cdef const char* enc
     49
     50    IF PY_MAJOR_VERSION <= 2:
     51      ^
     52------------------------------------------------------------
     53
     54/home/king/Sage/git/sage/local/lib/python2.7/site-packages/sage/cpython/string.pxd:106:7: Compile-time name 'PY_MAJOR_VERSION' not defined
     55
     56
     57Error compiling Cython file:
     58------------------------------------------------------------
     59...
     60from pGroupCohomology.cochain cimport COCH
     61
     62from libc.string cimport memcpy
     63from cysignals.memory cimport sig_free
     64from cysignals.signals cimport sig_check, sig_on, sig_off
     65from sage.cpython.string cimport str_to_bytes
     66^
     67------------------------------------------------------------
     68
     69pGroupCohomology/resolution.pyx:58:0: 'sage/cpython/string/str_to_bytes.pxd' not found
     70}}}