Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

cython memoryview - compilation error

I'm trying to use typed memoryviews in a cython cell in a sage notebook. But even

%cython
cdef double [:] x

fails with a compiler error. See the full output below. I installed sage from the Ubuntu binary packages on OpenSuse 13.1 and 13.2. Everything seems to work fine including everything I tried with cython except memoryviews. System gcc versions are 4.8.1 and 4.8.3. I'd be very happy to know the reason for this and a workaround.

Here is the full output:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "_sage_input_47.py", line 10, in <module>
    exec compile(u'_support_.cython_import_all("/home/fred-2012-05-23/.sage/sage_notebook.sagenb/home/dlc/25/code/sage67.spyx", globals())' + '\n', '', 'single')
  File "", line 1, in <module>

  File "/home/fred-2012-05-23/SAGE/sage-6.3-base/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/misc/support.py", line 541, in cython_import_all
    create_local_c_file=create_local_c_file)
  File "/home/fred-2012-05-23/SAGE/sage-6.3-base/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/misc/support.py", line 518, in cython_import
    create_local_c_file=create_local_c_file)
  File "/home/fred-2012-05-23/SAGE/sage-6.3-base/local/lib/python2.7/site-packages/sage/misc/cython.py", line 536, in cython
    raise RuntimeError("Error compiling {}:\n{}\n{}".format(filename, log, err))
RuntimeError: Error compiling /home/fred-2012-05-23/.sage/sage_notebook.sagenb/home/dlc/25/code/sage67.spyx:
running build
running build_ext
building '_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -I/home/fred-2012-05-23/SAGE/sage-6.3-base/local/include/csage -I/home/fred-2012-05-23/SAGE/sage-6.3-base/local/include -I/home/fred-2012-05-23/SAGE/sage-6.3-base/local/include/python2.7 -I/home/fred-2012-05-23/SAGE/sage-6.3-base/local/lib/python/site-packages/numpy/core/include -I/home/fred-2012-05-23/SAGE/sage-6.3-base/src/sage/ext -I/home/fred-2012-05-23/SAGE/sage-6.3-base/src -I/home/fred-2012-05-23/SAGE/sage-6.3-base/src/sage/gsl -I/home/fred-2012-05-23/.sage/sage_notebook.sagenb/home/dlc/25/code -I/home/fred-2012-05-23/SAGE/sage-6.3-base/local/include/python2.7 -c _home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c -o build/temp.linux-x86_64-2.7/_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.o -w -O2

_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2111:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_5array_2__getbuffer__[] = "File:  (starting at line 183)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2113:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_5array_2__getbuffer__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2601:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_5array_6__getattr__[] = "File:  (starting at line 229)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2603:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_5array_6__getattr__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2673:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_5array_8__getitem__[] = "File:  (starting at line 232)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2675:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_5array_8__getitem__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2745:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_5array_10__setitem__[] = "File:  (starting at line 235)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2747:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_5array_10__setitem__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2978:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_4Enum___init__[] = "File:  (starting at line 277)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:2980:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_4Enum___init__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:3074:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_4Enum_2__repr__[] = "File:  (starting at line 279)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:3076:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_4Enum_2__repr__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:3702:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_4__getitem__[] = "File:  (starting at line 362)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:3704:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_10memoryview_4__getitem__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:3883:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_6__setitem__[] = "File:  (starting at line 375)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:3885:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_10memoryview_6__setitem__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:5114:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_8__getbuffer__[] = "File:  (starting at line 476)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:5116:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_10memoryview_8__getbuffer__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6173:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_10__len__[] = "File:  (starting at line 569)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6175:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_10memoryview_10__len__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6249:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_12__repr__[] = "File:  (starting at line 575)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6251:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_10memoryview_12__repr__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6361:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_14__str__[] = "File:  (starting at line 579)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6363:44: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 struct wrapperbase __pyx_wrapperbase_15View.MemoryView_10memoryview_14__str__;
                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6444:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_16is_c_contig[] = "File:  (starting at line 583)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6519:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_18is_f_contig[] = "File:  (starting at line 589)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6594:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_20copy[] = "File:  (starting at line 595)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:6689:29: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘.’ token
 static char __pyx_doc_15View.MemoryView_10memoryview_22copy_fortran[] = "File:  (starting at line 607)";
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12106:106: error: ‘__pyx_doc_15View’ undeclared here (not in a function)
   {__Pyx_NAMESTR("__getattr__"), (PyCFunction)__pyx_array___getattr__, METH_O|METH_COEXIST, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_5array_6__getattr__)},
                                                                                                          ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:283:29: note: in definition of macro ‘__Pyx_DOCSTR’
   #define __Pyx_DOCSTR(n)  (n)
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12454:119: error: request for member ‘MemoryView_10memoryview_16is_c_contig’ in something not a structure or union
   {__Pyx_NAMESTR("is_c_contig"), (PyCFunction)__pyx_memoryview_is_c_contig, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_10memoryview_16is_c_contig)},
                                                                                                                       ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:283:29: note: in definition of macro ‘__Pyx_DOCSTR’
   #define __Pyx_DOCSTR(n)  (n)
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12454:3: error: initializer element is not constant
   {__Pyx_NAMESTR("is_c_contig"), (PyCFunction)__pyx_memoryview_is_c_contig, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_10memoryview_16is_c_contig)},
   ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12454:3: error: (near initialization for ‘__pyx_methods_memoryview[0].ml_doc’)
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12455:119: error: request for member ‘MemoryView_10memoryview_18is_f_contig’ in something not a structure or union
   {__Pyx_NAMESTR("is_f_contig"), (PyCFunction)__pyx_memoryview_is_f_contig, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_10memoryview_18is_f_contig)},
                                                                                                                       ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:283:29: note: in definition of macro ‘__Pyx_DOCSTR’
   #define __Pyx_DOCSTR(n)  (n)
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12455:3: error: initializer element is not constant
   {__Pyx_NAMESTR("is_f_contig"), (PyCFunction)__pyx_memoryview_is_f_contig, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_10memoryview_18is_f_contig)},
   ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12455:3: error: (near initialization for ‘__pyx_methods_memoryview[1].ml_doc’)
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12456:105: error: request for member ‘MemoryView_10memoryview_20copy’ in something not a structure or union
   {__Pyx_NAMESTR("copy"), (PyCFunction)__pyx_memoryview_copy, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_10memoryview_20copy)},
                                                                                                         ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:283:29: note: in definition of macro ‘__Pyx_DOCSTR’
   #define __Pyx_DOCSTR(n)  (n)
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12456:3: error: initializer element is not constant
   {__Pyx_NAMESTR("copy"), (PyCFunction)__pyx_memoryview_copy, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_10memoryview_20copy)},
   ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12456:3: error: (near initialization for ‘__pyx_methods_memoryview[2].ml_doc’)
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12457:121: error: request for member ‘MemoryView_10memoryview_22copy_fortran’ in something not a structure or union
   {__Pyx_NAMESTR("copy_fortran"), (PyCFunction)__pyx_memoryview_copy_fortran, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_10memoryview_22copy_fortran)},
                                                                                                                         ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:283:29: note: in definition of macro ‘__Pyx_DOCSTR’
   #define __Pyx_DOCSTR(n)  (n)
                             ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12457:3: error: initializer element is not constant
   {__Pyx_NAMESTR("copy_fortran"), (PyCFunction)__pyx_memoryview_copy_fortran, METH_NOARGS, __Pyx_DOCSTR(__pyx_doc_15View.MemoryView_10memoryview_22copy_fortran)},
   ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:12457:3: error: (near initialization for ‘__pyx_methods_memoryview[3].ml_doc’)
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c: In function ‘init_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0’:
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13127:7: error: ‘__pyx_wrapperbase_15View’ undeclared (first use in this function)
       __pyx_wrapperbase_15View.MemoryView_5array_6__getattr__ = *((PyWrapperDescrObject *)wrapper)->d_base;
       ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13127:7: note: each undeclared identifier is reported only once for each function it appears in
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13127:31: error: request for member ‘MemoryView_5array_6__getattr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_6__getattr__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13128:31: error: request for member ‘MemoryView_5array_6__getattr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_6__getattr__.doc = __pyx_doc_15View.MemoryView_5array_6__getattr__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13128:62: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_6__getattr__.doc = __pyx_doc_15View.MemoryView_5array_6__getattr__;
                                                              ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13128:85: error: request for member ‘MemoryView_5array_6__getattr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_6__getattr__.doc = __pyx_doc_15View.MemoryView_5array_6__getattr__;
                                                                                     ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13129:76: error: request for member ‘MemoryView_5array_6__getattr__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_5array_6__getattr__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13137:31: error: request for member ‘MemoryView_5array_8__getitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_8__getitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13138:31: error: request for member ‘MemoryView_5array_8__getitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_8__getitem__.doc = __pyx_doc_15View.MemoryView_5array_8__getitem__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13138:62: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_8__getitem__.doc = __pyx_doc_15View.MemoryView_5array_8__getitem__;
                                                              ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13138:85: error: request for member ‘MemoryView_5array_8__getitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_8__getitem__.doc = __pyx_doc_15View.MemoryView_5array_8__getitem__;
                                                                                     ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13139:76: error: request for member ‘MemoryView_5array_8__getitem__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_5array_8__getitem__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13147:31: error: request for member ‘MemoryView_5array_10__setitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_10__setitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13148:31: error: request for member ‘MemoryView_5array_10__setitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_10__setitem__.doc = __pyx_doc_15View.MemoryView_5array_10__setitem__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13148:63: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_10__setitem__.doc = __pyx_doc_15View.MemoryView_5array_10__setitem__;
                                                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13148:86: error: request for member ‘MemoryView_5array_10__setitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_5array_10__setitem__.doc = __pyx_doc_15View.MemoryView_5array_10__setitem__;
                                                                                      ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13149:76: error: request for member ‘MemoryView_5array_10__setitem__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_5array_10__setitem__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13160:31: error: request for member ‘MemoryView_4Enum___init__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_4Enum___init__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13161:31: error: request for member ‘MemoryView_4Enum___init__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_4Enum___init__.doc = __pyx_doc_15View.MemoryView_4Enum___init__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13161:57: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_4Enum___init__.doc = __pyx_doc_15View.MemoryView_4Enum___init__;
                                                         ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13161:80: error: request for member ‘MemoryView_4Enum___init__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_4Enum___init__.doc = __pyx_doc_15View.MemoryView_4Enum___init__;
                                                                                ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13162:76: error: request for member ‘MemoryView_4Enum___init__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_4Enum___init__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13170:31: error: request for member ‘MemoryView_4Enum_2__repr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_4Enum_2__repr__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13171:31: error: request for member ‘MemoryView_4Enum_2__repr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_4Enum_2__repr__.doc = __pyx_doc_15View.MemoryView_4Enum_2__repr__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13171:58: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_4Enum_2__repr__.doc = __pyx_doc_15View.MemoryView_4Enum_2__repr__;
                                                          ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13171:81: error: request for member ‘MemoryView_4Enum_2__repr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_4Enum_2__repr__.doc = __pyx_doc_15View.MemoryView_4Enum_2__repr__;
                                                                                 ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13172:76: error: request for member ‘MemoryView_4Enum_2__repr__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_4Enum_2__repr__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13191:31: error: request for member ‘MemoryView_10memoryview_4__getitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_4__getitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13192:31: error: request for member ‘MemoryView_10memoryview_4__getitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_4__getitem__.doc = __pyx_doc_15View.MemoryView_10memoryview_4__getitem__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13192:68: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_4__getitem__.doc = __pyx_doc_15View.MemoryView_10memoryview_4__getitem__;
                                                                    ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13192:91: error: request for member ‘MemoryView_10memoryview_4__getitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_4__getitem__.doc = __pyx_doc_15View.MemoryView_10memoryview_4__getitem__;
                                                                                           ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13193:76: error: request for member ‘MemoryView_10memoryview_4__getitem__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_10memoryview_4__getitem__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13201:31: error: request for member ‘MemoryView_10memoryview_6__setitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_6__setitem__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13202:31: error: request for member ‘MemoryView_10memoryview_6__setitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_6__setitem__.doc = __pyx_doc_15View.MemoryView_10memoryview_6__setitem__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13202:68: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_6__setitem__.doc = __pyx_doc_15View.MemoryView_10memoryview_6__setitem__;
                                                                    ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13202:91: error: request for member ‘MemoryView_10memoryview_6__setitem__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_6__setitem__.doc = __pyx_doc_15View.MemoryView_10memoryview_6__setitem__;
                                                                                           ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13203:76: error: request for member ‘MemoryView_10memoryview_6__setitem__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_10memoryview_6__setitem__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13211:31: error: request for member ‘MemoryView_10memoryview_10__len__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_10__len__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13212:31: error: request for member ‘MemoryView_10memoryview_10__len__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_10__len__.doc = __pyx_doc_15View.MemoryView_10memoryview_10__len__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13212:65: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_10__len__.doc = __pyx_doc_15View.MemoryView_10memoryview_10__len__;
                                                                 ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13212:88: error: request for member ‘MemoryView_10memoryview_10__len__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_10__len__.doc = __pyx_doc_15View.MemoryView_10memoryview_10__len__;
                                                                                        ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13213:76: error: request for member ‘MemoryView_10memoryview_10__len__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_10memoryview_10__len__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13221:31: error: request for member ‘MemoryView_10memoryview_12__repr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_12__repr__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13222:31: error: request for member ‘MemoryView_10memoryview_12__repr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_12__repr__.doc = __pyx_doc_15View.MemoryView_10memoryview_12__repr__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13222:66: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_12__repr__.doc = __pyx_doc_15View.MemoryView_10memoryview_12__repr__;
                                                                  ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13222:89: error: request for member ‘MemoryView_10memoryview_12__repr__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_12__repr__.doc = __pyx_doc_15View.MemoryView_10memoryview_12__repr__;
                                                                                         ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13223:76: error: request for member ‘MemoryView_10memoryview_12__repr__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_10memoryview_12__repr__;
                                                                            ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13231:31: error: request for member ‘MemoryView_10memoryview_14__str__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_14__str__ = *((PyWrapperDescrObject *)wrapper)->d_base;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13232:31: error: request for member ‘MemoryView_10memoryview_14__str__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_14__str__.doc = __pyx_doc_15View.MemoryView_10memoryview_14__str__;
                               ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13232:65: error: request for member ‘doc’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_14__str__.doc = __pyx_doc_15View.MemoryView_10memoryview_14__str__;
                                                                 ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13232:88: error: request for member ‘MemoryView_10memoryview_14__str__’ in something not a structure or union
       __pyx_wrapperbase_15View.MemoryView_10memoryview_14__str__.doc = __pyx_doc_15View.MemoryView_10memoryview_14__str__;
                                                                                        ^
_home_fred_2012_05_23__sage_sage_notebook_sagenb_home_dlc_25_code_sage67_spyx_0.c:13233:76: error: request for member ‘MemoryView_10memoryview_14__str__’ in something not a structure or union
       ((PyWrapperDescrObject *)wrapper)->d_base = &__pyx_wrapperbase_15View.MemoryView_10memoryview_14__str__;
                                                                            ^
error: command 'gcc' failed with exit status 1