cimport cython.view array as cvarray - compilation error

asked 2013-09-25 23:46:41 -0600

Questors gravatar image

I get a compilation error if I try something even as simple as:

from cython.view cimport array as cvarray
cdef arraytest():
    pass

I get the same error using the notebook and on loading from the sage command line. I have installed a fresh copy of cython.spkg to no avail.

I must be missing something obvious, but what?

Sage version 5.11; gcc version 4.7.3; running on ubuntu 13.04

This is the error:

  File "/home/martin/sage-5.9/devel/sagenb/sagenb/misc/support.py", line 533, in cython_import_all
    create_local_c_file=create_local_c_file)
  File "/home/martin/sage-5.9/devel/sagenb/sagenb/misc/support.py", line 510, in cython_import
    create_local_c_file=create_local_c_file)
  File "/home/martin/sage-5.9/local/lib/python2.7/site-packages/sage/misc/cython.py", line 535, in cython
    raise RuntimeError, "Error compiling %s:\n%s\n%s"%(filename, log, err)
RuntimeError: Error compiling /home/martin/nbfiles.sagenb/home/admin/10/code/sage4.spyx:
running build
running build_ext
building '_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_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/martin/sage-5.9/local/include/csage -I/home/martin/sage-5.9/local/include -I/home/martin/sage-5.9/local/include/python2.7 -I/home/martin/sage-5.9/local/lib/python/site-packages/numpy/core/include -I/home/martin/sage-5.9/devel/sage/sage/ext -I/home/martin/sage-5.9/devel/sage -I/home/martin/sage-5.9/devel/sage/sage/gsl -I/home/martin/nbfiles.sagenb/home/admin/10/code -I/home/martin/sage-5.9/local/include/python2.7 -c _home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c -o build/temp.linux-x86_64-2.7/_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.o -w -O2

_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2068:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2070:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2529:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2531:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2592:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2594:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2655:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2657:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2865:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2867:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2950:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:2952:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:3533:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:3535:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:3733:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:3735:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:4915:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:4917:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:5886:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:5888:44: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
_home_martin_nbfiles_sagenb_home_admin_10_code_sage4_spyx_0.c:5954:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token ...
(more)
edit retag flag offensive close merge delete

Comments

There is no module named view in cython... perhaps a version problem. What do you want to do ?

vdelecroix gravatar imagevdelecroix ( 2013-09-27 00:01:45 -0600 )edit