วันจันทร์ที่ 10 กรกฎาคม พ.ศ. 2560

[computer] [computer] [computer] [computer] [computer] [computer] Re: [sage-devel] UnicodeDecodeError while compiling cython with %runfile

On 10 July 2017 at 14:14, Vincent Delecroix <20100.delecroix@gmail.com> wrote:
> Dear all,
>
> I am stuck with compiling a single cython file that contains the one line
>
> from sage.libs.ntl.ntl_ZZX cimport ntl_ZZX
>
> If such line is saved into toto.pyx then from the console I got
>
> sage: %runfile toto.pyx
> Compiling ./toto.pyx...
> Traceback (most recent call last)
> ...
> UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 816:
> ordinal not in range(128)
>
> The traceback is only about IPython related stuff.
>
> Can somebody check whether this is reproducible? Is there a way to get a
> less obscure error and traceback?

I tried this and got

RuntimeError: Error compiling ./toto.pyx:
running build
running build_ext
building '_home_jec_toto_pyx_0' extension
creating build
creating build/temp.linux-x86_64-2.7
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall
-Wno-unused -fPIC -I/usr/local/sage/sage-2/local/include
-I/usr/local/sage/sage-2/local/include/python2.7
-I/usr/local/sage/sage-2/local/lib/python2.7/site-packages/numpy/core/include
-I/usr/local/sage/sage-2/local/lib/python2.7/site-packages
-I/usr/local/sage/sage-2/local/lib/python2.7/site-packages/sage/ext
-I/usr/local/sage/sage-2/local/lib/python2.7/site-packages/cysignals
-I. -I/usr/local/sage/sage-2/local/include/python2.7 -c
_home_jec_toto_pyx_0.c -o
build/temp.linux-x86_64-2.7/_home_jec_toto_pyx_0.o -w -O2

_home_jec_toto_pyx_0.c:816:15: fatal error: new: No such file or directory
compilation terminated.
error: command 'gcc' failed with exit status 1

This is with gcc version 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4)

John

>
> Thanks
> Vincent
>
> --
> 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+unsubscribe@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.

--
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+unsubscribe@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.

--
เขียนโดย computer ถึง computer เวลา 7/10/2560 06:21:00 ก่อนเที่ยง

--
เขียนโดย computer ถึง computer เวลา 7/10/2560 06:22:00 ก่อนเที่ยง

--
เขียนโดย computer ถึง computer เวลา 7/10/2560 06:22:00 ก่อนเที่ยง

--
เขียนโดย computer ถึง computer เวลา 7/10/2560 06:22:00 ก่อนเที่ยง

--
เขียนโดย computer ถึง computer เวลา 7/10/2560 06:22:00 ก่อนเที่ยง

--
เขียนโดย computer ถึง computer เวลา 7/10/2560 06:22:00 ก่อนเที่ยง

ไม่มีความคิดเห็น:

แสดงความคิดเห็น