[sage-support] Re: Sage cannot find gcc on OS X
You need xcode for various system headers. On Tuesday, January 10, 2017 at 6:12:18 AM UTC+1, Michael Frey wrote: > > I am running the Sage app on OS X. My code makes a call to cython. When > I execute the code I get an error: > > gcc -fno-strict-aliasing > -I/Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma/local/var/tmp/sage/build/python2-2.7.10.p3/include > -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused > -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/include > -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/include/python2.7 > > -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/numpy/core/include > > -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages > > -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/ext > > -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/cysignals > -I/Users/michael/.sage/temp/Michaels-MBP.freystuff.com/34036 > -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/include/python2.7 > -c > _Users_michael__sage_temp_Michaels_MBP_freystuff_com_34036_tmp_81FKRa_spyx_0.c > -o > build/temp.macosx-10.9-x86_64-2.7/_Users_michael__sage_temp_Michaels_MBP_freystuff_com_34036_tmp_81FKRa_spyx_0.o > -w -O2 > > In file included from > /Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/syslimits.h:7:0, > from > /Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/limits.h:34, > from > /Applications/SageMath-7.4.app/Contents/Resources/sage/local/include/python2.7/Python.h:19, > from > _Users_michael__sage_temp_Michaels_MBP_freystuff_com_34036_tmp_81FKRa_spyx_0.c:4: > /Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/limits.h:168:61: > fatal error: limits.h: No such file or directory > #include_next /* recurse down to the real one */ > ^ > compilation terminated. > error: command 'gcc' failed with exit status 1 > > > The limits.h file exists: > > pwd > > /Applications/SageMath-7.4.app > > Michaels-MBP:SageMath-7.4.app michael$ find . -type f -iname 'limits.h' -ls > > 13735298 -rw-r--r--1 michael admin > 1214 Oct 19 16:11 > ./Contents/Resources/sage/local/include/c++/4.9.3/tr1/limits.h > > 1376268 16 -rw-r--r--1 michael admin > 5382 Oct 19 16:07 > ./Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/limits.h > > 1376277 16 -rw-r--r--1 michael admin > 5382 Oct 19 16:11 > ./Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/install-tools/include/limits.h > > > Hopefully there is an easy fix for this. > > Mike > > Code: > > -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: question about sage installed from PPA
Hi Gabriel On 10 January 2017 at 02:07, gabriel minian wrote: > Dear Jan, > > I am using Kubuntu 16.10 (64 bits) and I have recently installed the Sage > package from PPA. > It works fine but when I try to install the GAP SmallGroups Library (using > "sage -i database_gap") I get an error message (make: *** No rule to make > target `all-toolchain'. Stop.) > > Do you know how I can circumvent this error? (In my previous computer I > had Ubuntu 16.04 with Sage installed from source. But the last version of > sage has some issues with Kubuntu 16.10 and so I decided to install it from > PPA...). > > Best regards, > Gabriel. > Installing optional packages is not recommended via a sagemath from the PPA as 1) you compile packages as root (security risk!) 2) you change files owned by deb packages manually 3) sagemath upgrades might break However, it is technically possible if you know what you are doing, and track changes across upgrades, I know a few university computer labs who are doing this: install sagemath-upstream-binary-full (which contains the source tree and makefiles). You could manually create a sagemath user, change the ownership of /usr/lib/sagemath, and compile as that user. Doesn't make much sense to use the PPA then though, the only thing you get is notified about updates, it is about as much work as a from-source install. I would suggest compiling the latest sagemath 7.5rc3 from source is the best option, or waiting a few weeks for 7.5 final release. Regards, Jan -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Sage on Mac OS X Latex Error
I am trying to generate a plot in sage with matplotlib. When I execute a safefig I get an error: RuntimeError: LaTeX was not able to process the following string: 'lp' Here is the full report generated by LaTeX: Hopefully there is an easy fix for this. The code works on Centos. Mike Code: def shape_plot(rf_shape_pl, amp_shape_pl, phase_shape_pl, Pname_sh): """ Plot Pulse Shape """ x_line= srange(0, 1, 1/len(rf_shape_pl)) sh_r=ceil(max(rf_shape_pl)) if sh_r < abs(floor(min(rf_shape_pl))): sh_r = abs(floor(min(rf_shape_pl))) fig = Figure(figsize=(8,3)) fig.subplots_adjust(bottom=0.18, top=0.88, left=0.06, right= 0.97, wspace=0.3, hspace=0.35) canvas = FigureCanvas(fig) ax = fig.add_subplot(131) ax.axvline(x=0, color='0' ) ax.axhline(y=0, color='0' ) ax.set_xlabel('shape', fontsize=('small')) ax.plot(x_line, rf_shape_pl, color='r') ax.set_ylim(-sh_r,sh_r) bx = fig.add_subplot(132) bx.axvline(x=0, color='0' ) bx.axhline(y=0, color='0' ) bx.set_xlabel('amplitude only', fontsize=('small')) bx.plot(x_line, amp_shape_pl, color='b') bx.set_title(Pname_sh) cx = fig.add_subplot(133) cx.axvline(x=0, color='0' ) cx.axhline(y=0, color='0' ) cx.set_xlabel('phase only', fontsize=('small')) cx.plot(x_line, phase_shape_pl*180/np.pi, color='g') cx.set_ylim(-10,190) fig.savefig(DATA+'shape_plot.png') -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Sage cannot find gcc on OS X
I am running the Sage app on OS X. My code makes a call to cython. When I execute the code I get an error: gcc -fno-strict-aliasing -I/Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma/local/var/tmp/sage/build/python2-2.7.10.p3/include -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/include -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/include/python2.7 -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/numpy/core/include -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sage/ext -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/python2.7/site-packages/cysignals -I/Users/michael/.sage/temp/Michaels-MBP.freystuff.com/34036 -I/Applications/SageMath-7.4.app/Contents/Resources/sage/local/include/python2.7 -c _Users_michael__sage_temp_Michaels_MBP_freystuff_com_34036_tmp_81FKRa_spyx_0.c -o build/temp.macosx-10.9-x86_64-2.7/_Users_michael__sage_temp_Michaels_MBP_freystuff_com_34036_tmp_81FKRa_spyx_0.o -w -O2 In file included from /Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/syslimits.h:7:0, from /Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/limits.h:34, from /Applications/SageMath-7.4.app/Contents/Resources/sage/local/include/python2.7/Python.h:19, from _Users_michael__sage_temp_Michaels_MBP_freystuff_com_34036_tmp_81FKRa_spyx_0.c:4: /Applications/SageMath-7.4.app/Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/limits.h:168:61: fatal error: limits.h: No such file or directory #include_next /* recurse down to the real one */ ^ compilation terminated. error: command 'gcc' failed with exit status 1 The limits.h file exists: pwd /Applications/SageMath-7.4.app Michaels-MBP:SageMath-7.4.app michael$ find . -type f -iname 'limits.h' -ls 13735298 -rw-r--r--1 michael admin1214 Oct 19 16:11 ./Contents/Resources/sage/local/include/c++/4.9.3/tr1/limits.h 1376268 16 -rw-r--r--1 michael admin5382 Oct 19 16:07 ./Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/include-fixed/limits.h 1376277 16 -rw-r--r--1 michael admin5382 Oct 19 16:11 ./Contents/Resources/sage/local/lib/gcc/x86_64-apple-darwin15.6.0/4.9.3/install-tools/include/limits.h Hopefully there is an easy fix for this. Mike Code: -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Error when attaching file, NameError: name 'cython' is not defined
I am trying to attach a code file to a sage notebook. The call is : attach ("~/.sage/MHF_Bloch_n_Plot.sage"). The error I get is "NameError: name 'cython' is not defined". The code in the attach file is: ... cython(""" #Parallel Cython, Numpy calls -- 3 part3 #Part 1 #Cython version for parallel import numpy as np import scipy as sp from scipy import linalg cimport numpy as np cdef extern from "math.h": float cosf(float theta) float sinf(float theta) ... """) ... Am I missing something or is this a bug? I am using sage 7.4 in a Fusion Centos 7.2 VM on a MacBook Pro. I have other problems with the native OS X Sage app and will submit those later. Thank you for your help. Mike -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
Re: [sage-support] sage math 7.4 binary error
Hi This is fixed but not in a stable release, use 7.3 or compile from source. Regards, Jan On 9 January 2017 at 15:18, malresser wrote: > /home/muhammet/D/program_files/SageMath/local/lib/ > libpython2.7.so.1.0(PyRun_FileExFlags+0x92)[0x7f9c7df7d732] > /home/muhammet/D/program_files/SageMath/local/lib/ > libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0xd9)[0x7f9c7df7ec79] > /home/muhammet/D/program_files/SageMath/local/lib/ > libpython2.7.so.1.0(Py_Main+0xc7f)[0x7f9c7df94caf] > /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f9c7d888f45] > python[0x40076e] > > Attaching gdb to process id 6478. > > Saved trace to /home/muhammet/.sage/crash_logs/crash_s6QCrs.log > > Unhandled SIGILL: An illegal instruction occurred. > This probably occurred because a *compiled* module has a bug > in it and is not properly wrapped with sig_on(), sig_off(). > Python will now terminate. > > ubuntu 14.04 x64 ,sage math 7.4 binary installation error and crash log > is empty > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at https://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/d/optout. > -- .~. /V\ Jan Groenewald /( )\www.aims.ac.za ^^-^^ -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] sage math 7.4 binary error
/home/muhammet/D/program_files/SageMath/local/lib/libpython2.7.so.1.0(PyRun_FileExFlags+0x92)[0x7f9c7df7d732] /home/muhammet/D/program_files/SageMath/local/lib/libpython2.7.so.1.0(PyRun_SimpleFileExFlags+0xd9)[0x7f9c7df7ec79] /home/muhammet/D/program_files/SageMath/local/lib/libpython2.7.so.1.0(Py_Main+0xc7f)[0x7f9c7df94caf] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x7f9c7d888f45] python[0x40076e] Attaching gdb to process id 6478. Saved trace to /home/muhammet/.sage/crash_logs/crash_s6QCrs.log Unhandled SIGILL: An illegal instruction occurred. This probably occurred because a *compiled* module has a bug in it and is not properly wrapped with sig_on(), sig_off(). Python will now terminate. ubuntu 14.04 x64 ,sage math 7.4 binary installation error and crash log is empty -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.
[sage-support] Re: embedding of number field element encapseled in symbolic ring
Nils Bruin wrote: > If a field embeds into QQbar, then there should be an implied coercion > into CC, though: QQbar as implemented in sage is a subfield of the > field of complex numbers (as you can see from how the elements print). Let me add that there are long-standing tickets (#5355, #12715) for making number field embeddings go into AA/QQbar instead of RR/CC. Quite a bit of progress has been made towards that goal, but we're not quite there yet. -- Marc -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at https://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.