Here goes the new minimal non working example. (I would use setup.py, if I knew how and if I knew that it would cure this problem)
Thanks for any help! Martin ######## minimal.py ############ import sage.all import pyximport; pyximport.install(); from minimal_pyx import minimal_fun print(minimal_fun()) ######## end minimal.py ############ ######## minimal_pyx.pyx ############ from sage.all import * def minimal_fun(): A = AlternatingSignMatrix([ [0,1,0], [1,-1,1],[0,1,0]]) return str(map(list, A.to_matrix())) ######## end minimal_pyx.pyx ############ martin@convex63:~/tmp$ sage minimal.py /home/martin/.pyxbld/temp.linux-x86_64-2.7/pyrex/sage/modules/vector_real_double_dense.c:567:10: fatal error: cython_metaclass.h: No such file or directory #include "cython_metaclass.h" ^~~~~~~~~~~~~~~~~~~~ compilation terminated. Traceback (most recent call last): File "minimal.py", line 7, in <module> print(minimal_fun()) File "minimal_pyx.pyx", line 6, in minimal_pyx.minimal_fun return str(map(list, A.to_matrix())) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/matrix/matrix_misc.py", line 30, in row_iterator yield A.row(i) File "sage/matrix/matrix1.pyx", line 1180, in sage.matrix.matrix1.Matrix.row (build/cythonized/sage/matrix/matrix1.c:12016) File "sage/structure/factory.pyx", line 368, in sage.structure.factory.UniqueFactory.__call__ (build/cythonized/sage/structure/factory.c:2014) File "sage/structure/factory.pyx", line 411, in sage.structure.factory.UniqueFactory.get_object (build/cythonized/sage/structure/factory.c:2390) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py", line 379, in create_object return FreeModule_ambient_pid(base_ring, rank, sparse=sparse) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py", line 5416, in __init__ rank=rank, sparse=sparse, coordinate_ring=coordinate_ring) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py", line 5225, in __init__ rank, sparse, coordinate_ring) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py", line 4593, in __init__ degree=rank, sparse=sparse, coordinate_ring=coordinate_ring) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py", line 738, in __init__ self.Element = element_class(coordinate_ring, sparse) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/sage/modules/free_module.py", line 7243, in element_class import sage.modules.vector_real_double_dense File "/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyximport.py", line 458, in load_module language_level=self.language_level) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyximport.py", line 233, in load_module exec("raise exc, None, tb", {'exc': exc, 'tb': tb}) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyximport.py", line 215, in load_module inplace=build_inplace, language_level=language_level) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyximport.py", line 191, in build_module reload_support=pyxargs.reload_support) File "/home/martin/sage-develop/local/lib/python2.7/site-packages/pyximport/pyxbuild.py", line 102, in pyx_to_dll dist.run_commands() File "/home/martin/sage-develop/local/lib/python2.7/distutils/dist.py", line 953, in run_commands self.run_command(cmd) File "/home/martin/sage-develop/local/lib/python2.7/distutils/dist.py", line 972, in run_command cmd_obj.run() File "/home/martin/sage-develop/local/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 186, in run _build_ext.build_ext.run(self) File "/home/martin/sage-develop/local/lib/python2.7/distutils/command/build_ext.py", line 340, in run self.build_extensions() File "/home/martin/sage-develop/local/lib/python2.7/site-packages/Cython/Distutils/old_build_ext.py", line 194, in build_extensions self.build_extension(ext) File "/home/martin/sage-develop/local/lib/python2.7/distutils/command/build_ext.py", line 499, in build_extension depends=ext.depends) File "/home/martin/sage-develop/local/lib/python2.7/distutils/ccompiler.py", line 574, in compile self._compile(obj, src, ext, cc_args, extra_postargs, pp_opts) File "/home/martin/sage-develop/local/lib/python2.7/distutils/unixccompiler.py", line 126, in _compile raise CompileError, msg ImportError: Building module sage.modules.vector_real_double_dense failed: ["CompileError: command 'gcc' failed with exit status 1\n"] -- You received this message because you are subscribed to the Google Groups "sage-devel" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-devel+unsubscr...@googlegroups.com. To post to this group, send email to sage-devel@googlegroups.com. Visit this group at https://groups.google.com/group/sage-devel. For more options, visit https://groups.google.com/d/optout.