ASKSAGE: Sage Q&A Forum - Latest question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Thu, 17 Oct 2019 05:42:39 -0500Sage GUI on Mac when building from sourcehttp://ask.sagemath.org/question/48385/sage-gui-on-mac-when-building-from-source/I normally use the official (pre-compiled) app version of Sage on macOS. When I start the app, it adds a new dropdown menu to the menu bar.
Now I switched to building Sage from source, as this gives access to features I could not otherwise have (e.g. install Coin MIP solver with `sage -i cbc`). How can I run the same GUI interface that is available in the app version? I can run the command line `sage` program or I can use `sage --notebook=jupyter`. But is there a way to run the same GUI available in the app version?SzabolcsThu, 17 Oct 2019 05:42:39 -0500http://ask.sagemath.org/question/48385/Building Sage on legacy macos system 10.5.8http://ask.sagemath.org/question/47324/building-sage-on-legacy-macos-system-1058/This isn't a question, yet, depending on replies. It's more of a good-news story (for me, anyway). I'm a hobbyist with legacy mac systems and pretty much a newbie with Sage commands per se, and wanted to use the experience to get a better handle on the structure and behavior of the build system. I just hope this adds to the mac build knowledge base for Sage.
I've just successfully built sage-6.10 (downloaded from the git repository) on a mac book 4,1 system with a Core2Duo processor that does not upgrade MacOS beyond Snow Leopard. The total build time was about 8 hours starting with Xcode 3.2. I had difficulties getting started because all my more modern tools are in my macports installation, and I haven't installed upgrades anywhere else --- or so I thought at first. I hit upon including the path to a previous Sage installation which I did some years ago with a binary download of sage-5.13, adding the path to Sage's local/bin. And it worked!
I had one glitch with the installation of flint-2.5.2, when its makefile died with a request to cp -a which happened after:
mkdir -p "./sage-6.10/local/lib"
mkdir -p "./sage-6.10/local/include/flint"
In my os x shell, there is no cp -a and I substituted cp -pPR by using the debug shell for the build system. Everything else went off without a hitch. What a marvelously robust build system this is, given a finicky set of standard mac build tools! Perhaps I should not find it remarkable that I can still do a build like this with a ten-or-more-year-old computer running a 12-year-old OS.
My question is this: I am having trouble locating solid information about which versions of Sage I should try to build for some particular version of the OS. It it just going to be a matter of dedicated experimentation? If so, my experience here tells me I am ready for that.dyne2meterWed, 31 Jul 2019 04:57:36 -0500http://ask.sagemath.org/question/47324/multiprocessing.Pool does not workhttp://ask.sagemath.org/question/46112/multiprocessingpool-does-not-work/Hi,
when trying to run SM_black_hole_rendering.ipynb with sagemanifols
> https://nbviewer.jupyter.org/github/sagemanifolds/SageManifolds/blob/master/Notebooks/SM_black_hole_rendering.ipynb
the cell 28 does not execute well
> Process PoolWorker-1:
Traceback (most recent call last):
File "/Applications/SageMath-8.7.app/Contents/Resources/sage/local/lib/python2.7/multiprocessing/process.py", line 267, in _bootstrap
self.run()
...
Can anyone help ?
Thank you
EpiepimetheusFri, 12 Apr 2019 12:50:35 -0500http://ask.sagemath.org/question/46112/Plotting > 10k random 3D pointshttp://ask.sagemath.org/question/44286/plotting-10k-random-3d-points/Hi,
First of all, I am new to SAGE, and only started using it today.
I want to plot 100 000 random 3D points in SAGE, and it takes a LOT of time just to plot 10 000 points.
This is the code I have:
def random_point(): return (random(), random(), random())
l = [random_point() for k in [1 .. 10000]]
s = point3d(l, size=5)
show(s, aspect_ratio=1)
I noticed that the last two lines take incredibly long each.
Then, after the `show`, when I try to interact with the graphic, it is blank. I can even show the boundbox and axes, but the plot is nowhere to be seen.
If I change to `[1 .. 100]`, everything works as intended, but this amount of points is not enough.
What should I do to accomplish effectively my goal?
I am using SAGE 8.1, installed on macOS via brew, after running `notebook()` on the command line and using the browser-based notebook.
Thank you!KayvlimWed, 14 Nov 2018 19:34:52 -0600http://ask.sagemath.org/question/44286/Cannot get threejs rendering to work on MacOShttp://ask.sagemath.org/question/44014/cannot-get-threejs-rendering-to-work-on-macos/Hey,
I've been trying to get threejs output working for a few days now. My current installation is from Conda-Forge (sage 8.3) and I'm on MacOS High Sierra (10.13.6).
In the sage repl if I run
P = parametric_plot3d([cos(x),sin(x),x/10], (x,0,4*pi))
P.show(viewer='threejs')
sage raises ```ImportError: cannot import name 'THREEJS_DIR'```. Full output: paste2.org/vP4nBZ9A
If I run
P = parametric_plot3d([cos(x),sin(x),x/10], (x,0,4*pi)
P.show(viewer='threejs', online=True)
sage returns ```Launched html viewer for Graphics3d Object```, but nothing actually happens on my machine. No browser opens, nothing noticeable. I have tried changing the default viewer browser, but it has not made a difference. I'm at a loss as to what is going on here.
Finally, if I run it in a jupyter notebook,
p1 = sphere(color='red', opacity='.5')
p2 = sphere((-1,-1,1), color='cyan', opacity='.3')
p3 = sphere((1,-1,-1), color='yellow', opacity='.7')
show(p1 + p2 + p3, viewer='threejs', online=True)
I get ```TypeError: a bytes-like object is required, not 'str'```.
Full traceback here: paste2.org/c1VLUmNm
I've tried pretty hard to diagnose exactly what's going on, but I can't seem to find any recent documentation relating to this issue. My best guess is that the paths are getting messed up because I'm running sage through an anaconda environment. Is there any way to fix this? That being said, I was having similar issues before and wanted to integrate with jupyter which lead to me moving to anaconda. I am going to try and reinstall sage outside of anaconda and see if I can get it to work there, but I figured I should post first because I'm pretty stuck, and having everything in anaconda would be much nicer if possible.TristanWLSun, 21 Oct 2018 12:10:46 -0500http://ask.sagemath.org/question/44014/Accessing Maple from Sage osx (.dmg version)http://ask.sagemath.org/question/43183/accessing-maple-from-sage-osx-dmg-version/What is the "right" way to set up Sage to access Maple from a Jupyter notebook on MacOSX from the .dmg version? For the command line version, I've set my path variables correctly and Maple easily runs from Sage. However, when I open the GUI version of sage, Maple isn't on the path and I'm not sure how to add it (even temporarily).
Following up to the answer below, my issue might not be that the PATH is in error. I've set the path correctly (or so I believe), but Maple still isn't accessible from the GUI version of Maple.Michael BurrFri, 27 Jul 2018 20:24:51 -0500http://ask.sagemath.org/question/43183/How To Accept Remote Network Connectionhttp://ask.sagemath.org/question/39456/how-to-accept-remote-network-connection/Hi, I use Mac OS's native Sage App. I can access Sage's Jupyter notebook from that Mac using localhost:8888. I researched a bit and find out if another computer needs to browse the same Jupyter notebook, one needs to start juypter by passing --ip '*' (otherwise it only accepts localhost traffic and will give a Connection Refused error).
But since I am clicking a Mac OS Sage icon to start the server... I am not sure how I can specify the command line option. Please give me some hints.
Thanks
bsoWed, 08 Nov 2017 19:45:37 -0600http://ask.sagemath.org/question/39456/Home and End Keyhttp://ask.sagemath.org/question/39489/home-and-end-key/ Hi all,
I am using Sage on my mac terminal. The mac keyboard does not have home or end key. I check out several combinations and they does not work in Sage terminal platform, but works on Rstudio. How do I recover the home and end key?
Thanks.Dianbin BaoFri, 10 Nov 2017 14:43:35 -0600http://ask.sagemath.org/question/39489/Building Matplotlib with OSX backendhttp://ask.sagemath.org/question/39469/building-matplotlib-with-osx-backend/ Hi, I have installed sagemath 8.0 on OSX without any issue and now I am trying to upgrade matplotlib so I can have interactive plots. Simply doing
sage -pip install -U matplotlib
results in the following error
building 'matplotlib.backends._macosx' extension
gcc -fno-strict-aliasing -I/Applications/SageMath/local/var/tmp/sage/build/python2-2.7.13.p1/include -DNDEBUG -g -fwrapv -O3 -Wall -Wno-unused -I/usr/local/include -I/usr/include -I/usr/X11/include -I/opt/X11/include -I. -I/Applications/SageMath/local/include/python2.7 -c src/_macosx.m -o build/temp.macosx-10.9-x86_64-2.7/src/_macosx.o
gcc: error: src/_macosx.m: Objective-C compiler not installed on this system
error: command 'gcc' failed with exit status 1
Setting the environment variable CC=clang doesn't help. Is there a way to use clang to compile matplotlib?
Thankssageuser81293041234Thu, 09 Nov 2017 17:04:24 -0600http://ask.sagemath.org/question/39469/unexpected behaviors with Sage 8.0 on Machttp://ask.sagemath.org/question/38639/unexpected-behaviors-with-sage-80-on-mac/I'm having some weirdnesses with my Sage 8.0 installation. I run Sage via the app, not the command line. Here's the story.
I upgraded to Sage 8.0. It made me create a folder to contain Jupyter notebooks. I found the menu item to upgrade notebooks individually. I picked my favorite and oldest notebook ("experiments") to upgrade. I ran a semi-arbitrary cell, which worked fine (mostly---it told me to install JDK, which I have installed so didn't install, and then Sage displayed the graphics properly). I created a couple of new cells. I saved the file.
This is where things get weird.
- The converted/saved notebook isn't showing up in the default notebook list, which is empty even on refresh.
- The converted/saved notebook isn't showing up in the Jupyter notebooks folder.
- The Jupyter interface that opens automatically when I start Sage 8.0 is at localhost:8888.
- The converted notebook was somewhere under localhost:8889.
- I restarted everything (app, Jupyter server, upgrade server) and, because the converted notebook was nowhere to be found, I re-converted it and re-ran something in it. That's showing up as under localhost:8890.
- Nothing showed up under the Running list for localhost:8888 until I created a new notebook there (which also appeared in all the other places I expected it to appear). The first converted notebook shows up under the Running list for localhost:8889. The second converted notebook shows up under the Running list for localhost:8890.
So... I can't tell whether I don't understand the new (Jupyter) paradigm, or whether something's gone wrong with my setup. How is saving/accessing/re-accessing converted notebooks supposed to work? What should I be doing differently?
Edited to add: The converted notebooks have been found (by accident): They ended up in my root directory instead of the default Jupyter directory. Still seems like things are not acting as they should.smbelcasThu, 24 Aug 2017 08:19:25 -0500http://ask.sagemath.org/question/38639/Installation error sage 8.0 on machttp://ask.sagemath.org/question/38474/installation-error-sage-80-on-mac/I try to install sage 8.0 on my mac osx, got the following error,.
RecursionError: maximum recursion depth exceeded during compilation
************************************************************************
It seems that you are attempting to run Sage from an unpacked source
tarball, but you have not compiled it yet (or maybe the build has not
finished). You should run `make` in the Sage root directory first.
If you did not intend to build Sage from source, you should download
a binary tarball instead. Read README.txt for more information.
************************************************************************
logout
Saving session...
...copying shared history...
...saving history...truncating history files...
...completed.
[Process completed] newbie_1Fri, 04 Aug 2017 11:04:12 -0500http://ask.sagemath.org/question/38474/Installation/update issue: Another Sage Notebook server is runninghttp://ask.sagemath.org/question/37818/installationupdate-issue-another-sage-notebook-server-is-running/I have a mystery in updating Sage on a MacBook Air. (To be precise, I'm updating it on three MacBook Airs; two of them have Sage working fine, but the third...) Both Sage 7.6 and 7.2 are installed. Sage 7.2 worked fine on this machine before today, as far as I know. I updated the operating system to Sierra and then installed Sage 7.6 (yes, the OS 12.3 version).
When I start up Sage, I get the "Starting, please wait..." page, and then the localhost:8080 page tries to load, but I get "The connection was refused when attempting to contact localhost:8080." The first thing I checked was the security settings; there are no firewalls or anything on the machine. The next thing I checked was looking at sage.log, and here there is the statement
Another Sage Notebook server is running, PID 365.
Now: I quit Sage 7.6 and tried running Sage 7.2 and got the same results (meaning the same error messages.) I looked to see whether there was a process with PID 365 under Activity Monitor, and there was---followupd. I restarted the machine, started Sage 7.6, got the same results, and... now PID 365 is a WiFiproxy (because I've restarted the machine) so that is definitely not a Sage notebook server.
I will completely believe that a past user of this machine (possibly me) has done something stupid that is causing the problem... but what? smbelcasTue, 06 Jun 2017 17:11:23 -0500http://ask.sagemath.org/question/37818/How do I clear this PDFLATEX error in Sage Notebook?http://ask.sagemath.org/question/36701/how-do-i-clear-this-pdflatex-error-in-sage-notebook/I'm running OS X Sierra with Sage 7.5.1 App version. TEXlive 2016 is installed. PDFLATEX runs from a terminal command. I've followed each step to get SAGETEX to see TEX and probably a few more. I still get: “Error: PDFLaTeX does not seem to be installed. Download it from ctan.org and try again.” I'm running out of things to try. Any assistance would be appreciated.
RWBUMPWed, 22 Feb 2017 17:25:08 -0600http://ask.sagemath.org/question/36701/Factorial(10000000) Performance between Ubuntu and Mac OS X on Sage 7.5.1http://ask.sagemath.org/question/36609/factorial10000000-performance-between-ubuntu-and-mac-os-x-on-sage-751/ On Ubuntu 6.10 and Core i7 Quad-Core platform running Sage 7.5.1:
I tried
time a=factorial(10000000)
It showed completing in around 3 seconds
Same command on a 2015 MacBook Pro 15in with 5th Generation Quadcore Core i7, the same factorial evaluation showed a completion time of about 5 seconds.
Same performance of 3 seconds was shown even when Ubuntu was run on a VM with same Core i7 processor.
nrsaxenaMon, 13 Feb 2017 19:46:56 -0600http://ask.sagemath.org/question/36609/How to install nbextensions for Jupyter notebook in Sagemathhttp://ask.sagemath.org/question/36341/how-to-install-nbextensions-for-jupyter-notebook-in-sagemath/ I like working with jupyter notebook for sagemath programming. But from Sagemath 7.4, I can not install nbextensions for Jupyter notebook.
In Sagemath 7.3, I install nbextensions in the following way:
In sage shell,
pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master.
It works well in Sagemath 7.3.
In Sagemath 7.4, 7.5, the following error reported:
pip is configured with locations that require TLS/SSL, however the ssl module in Python is not available
I want to know how to install nbextensions in Sagemath 7.5 correctly. Thanks!
dannyWed, 18 Jan 2017 23:05:40 -0600http://ask.sagemath.org/question/36341/Sage Os X app and MatPlotLib / LaTex connectionhttp://ask.sagemath.org/question/36332/sage-os-x-app-and-matplotlib-latex-connection/I have installed the Sage OS X app version 7.5.1 and I am having problems with MatPlotLib calls and LaTeX Calls from the Sage Os X. I have also built Sage from the sources and with MacTeX installed I can get the MatPlotLib and LaTeX calls to work properly when run from the sage I built.
How do I connect the Sage Os X app to the TeX files so I can get MatPlotLib graphs with text and properly formatted LaTeX calls to work?
Thank you for your help.
MikemhfreyTue, 17 Jan 2017 20:42:45 -0600http://ask.sagemath.org/question/36332/How do I solve this installation problem?http://ask.sagemath.org/question/35132/how-do-i-solve-this-installation-problem/ Hi, I'm trying to get Sage installed on my Mac, which is running the OS X El Capitan V10.11.6 , I've downloaded the .dmg file named sage-7.3-OSX_10.11.6-x86_64.dmg and extracted its contents to /Applications, opened this folder named SageMath and there I opened the sage file in the terminal as it was written on the README file.
I keep getting this error:
RecursionError: maximum recursion depth exceeded during compilation
(Some text about sage)
ERROR : The Sage installation tree has moved
from /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma
to /Applications/SageMath
(More text)
I've searched around a bit, and found out it might have something to do with having anaconda installed, which I have, but from there I really can't progress much, as I am fairly new to UNIX systems.
I really appreciate any help you guys can give me!JAlxPWed, 12 Oct 2016 09:38:30 -0500http://ask.sagemath.org/question/35132/Sage symlink not workinghttp://ask.sagemath.org/question/34658/sage-symlink-not-working/I've tried to create a symlink for sage to use in my OS X terminal, using the command
`sudo ln -s /Applications/SageMath-7.3.app/sage/sage /usr/local/bin/sage`
I got an alias file in my bin-folder, but when I try to open it all I get is this message
"The operation can’t be completed because the original item for “sage” can’t be found."
When I type in just the path `/Applications/SageMath-7.3.app/sage/sage` in the terminal, sage opens just fine.
Can somebody tell me what I'm doing wrong? I'm not very accustomed to working in the terminal.enanaeTue, 30 Aug 2016 07:53:03 -0500http://ask.sagemath.org/question/34658/How to export a 3D plot to a jpg/png file (OSX)http://ask.sagemath.org/question/34559/how-to-export-a-3d-plot-to-a-jpgpng-file-osx/ Hi everybody, I've got some problems with saving/exporting images. This is my code:
var ('x y z')
#Define a 3d curve as the intersection of 2 surfaces
#(but not explicit in z so we must use implicit plots)
# Let's plot
xmin=-3; xmax=3; ymin=-1; ymax=5; zmin=-3; zmax=3;
# Axes
Ax=line3d(([xmin,0,0],[xmax,0,0]), thickness=2, color='red')
Ay=line3d(([0,ymin,0],[0,ymax,0]), thickness=2, color='blue')
Az=line3d(([0,0,zmin],[0,0,zmax]), thickness=2, color='green')
# Surfaces
S1=implicit_plot3d(y==x^2+z^2,(x,xmin,xmax),(y,ymin,ymax),(z,zmin,zmax), opacity=0.4, color='yellow')
S2=implicit_plot3d(z==y/2,(x,xmin,xmax),(y,ymin,ymax),(z,zmin,zmax), opacity=0.4, color='purple')
show(S1+S2+Ax+Ay+Az, aspect_ratio=[1,1,1])
I just wanted to execute the code, rotate the plot right from the graphics and export the image as a png file. This should by done by right-clicking on the plot and chosing export to png from the menu... Unfortunately, the output is a blank screen with just the string "Invalid JSmol request: saveFile"
Any suggestion, please?
I'm working with the OS X version, and I'm a total newbie...
Thanks in advice,
MauromaurosiriguMon, 22 Aug 2016 06:29:09 -0500http://ask.sagemath.org/question/34559/problem installing sage on mac os x 10.11.5http://ask.sagemath.org/question/34201/problem-installing-sage-on-mac-os-x-10115/I am running a mac os x 10.11.5 and would like to use sage locally.
1) I first tried to install from source code. I checked that all the prerequisites were satisfied, then proceeded to download the sources, follow the steps and 'make'. it took some 10 hours; unfortunately when it finished it said it did not compile successfully.
2) so i removed the source folder from step 1, and tried the installation from binaries. I downloaded the sage-7.2-OSX_10.11.4-x86_64.dmg , then paste the folder SageMath into /Applications. When opening the sage executable, I get this error message:
ERROR: The Sage installation tree has moved from /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma to /Applications/SageMath This is not supported, and Sage will not work. To install Sage from a binary package: (....)
1. Open the .tar.bz2 archive (or .dmg on OSX)
2. Move the SageMath folder/app to where you want it to be. You can
also rename the directory now.
3. Start sage for the first time. This will then automatically patch
paths in binaries.
After starting Sage for the first time you cannot change the
installation any more. To install Sage elsewhere, start over from the
binary package. Or recompile Sage from scratch in the new location
("make distclean && make") here
Maybe [this thread](https://groups.google.com/forum/#!topic/sage-devel/OBv5x1v3_6M) is related, but I didn't understand what's going on. I tried the `csrutil disable` (after step 2), but nothing changed.
mforetsSun, 24 Jul 2016 04:17:15 -0500http://ask.sagemath.org/question/34201/Is it possible to install sage 7.1 on OSX 10.11?http://ask.sagemath.org/question/32916/is-it-possible-to-install-sage-71-on-osx-1011/I can't get the binary app (7.1) to install on OSX 10.11 -- the same error appears with 7.2 beta0.
The install fails at the setting up the paths stage when the app is clicked for the first time.
The error is shown below. Is this fixable? Switching SIP off has no effect.
Dess-MacBook:~ des$ '/Applications/SageMath-7.1.app/Contents/Resources/sage/sage' --notebook
File "/Applications/SageMath-7.1.app/Contents/Resources/sage/relocate-once.py", line 12
print "relocate-once.py -d <destination>"
^
SyntaxError: Missing parentheses in call to 'print'
Traceback (most recent call last):
File "/Applications/SageMath-7.1.app/Contents/Resources/sage/src/bin/sage-notebook", line 7, in <module>
import argparse
File "/Applications/SageMath-7.1.app/Contents/Resources/sage/local/lib/python/argparse.py", line 85, in <module>
import collections as _collections
File "/Applications/SageMath-7.1.app/Contents/Resources/sage/local/lib/python/collections.py", line 9, in <module>
from operator import itemgetter as _itemgetter, eq as _eq
ImportError: dlopen(/Applications/SageMath-7.1.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so, 2): Symbol not found: __PyUnicodeUCS4_AsDefaultEncodedString
Referenced from: /Applications/SageMath-7.1.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
Expected in: flat namespace
in /Applications/SageMath-7.1.app/Contents/Resources/sage/local/lib/python2.7/lib-dynload/operator.so
Dess-MacBook:~ des$
professordesWed, 30 Mar 2016 14:38:18 -0500http://ask.sagemath.org/question/32916/osx installationhttp://ask.sagemath.org/question/32822/osx-installation/ I've tried installing the 6.10 and 7.1 binary distributions using the dmg files at the MIT repository on my macbook pro OS X 10.11.3. In all cases, I get the following errors, after which the application quits:
(before the version info box)
"RuntimeError: maximum recursion depth exceeded during compilation"
(after the version info box)
"ERROR: The Sage installation tree has moved
from /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma
to /Applications/SageMath-7.1.beta3.app/Contents/Resources/sage
This is not supported, and Sage will not work."
I've tried both the app version and full binary and tried unsuccessfully working with the "relocate-once" program in the package. Any recommendations would be welcome.
Thank you.
kernThu, 17 Mar 2016 16:14:48 -0500http://ask.sagemath.org/question/32822/Sage 6.10 not working again on MacOShttp://ask.sagemath.org/question/32094/sage-610-not-working-again-on-macos/There was a problem with Sage and MacOS El Capitan which was solved here: http://trac.sagemath.org/ticket/19370
For quite a while I used beta 1 of 6.10 which worked fine. Today I decided to move to 6.10 and it's back to non-working. What's going on?
✗ sage
┌────────────────────────────────────────────────────────────────────┐
│ SageMath Version 6.10, Release Date: 2015-12-18 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Traceback (most recent call last):
File "/Users/tom/sage/src/bin/sage-ipython", line 8, in <module>
from sage.repl.readline_extra_commands import *
ImportError: dlopen(/Users/tom/sage/local/lib/python2.7/site-packages/sage/repl/readline_extra_commands.so, 2): Library not loaded: /Users/buildslave-sage/slave/binary_pkg/build/source/SageMath/jc4b6yulaujayb9sr94ia88eourzeqip0oidma/local/lib/libtinfo.5.dylib
Referenced from: /Users/tom/sage/local/lib/libreadline.6.dylib
Reason: image not found
ThomasWed, 06 Jan 2016 07:53:18 -0600http://ask.sagemath.org/question/32094/Unhandled SIGILL. Code will not evaluate.http://ask.sagemath.org/question/32065/unhandled-sigill-code-will-not-evaluate/Every time I try to run Sage on my machine (13in. 2010 Mac running OSX 10.9.5 with Intel Core 2 Duo Processor), I get the following error.
Unhandled SIGILL: An illegal instruction occurred in Sage.
This probably occurred because a *compiled* component of Sage has a bug
in it and is not properly wrapped with sig_on(), sig_off().
Sage will now terminate.
Even if I just tell it to print "Hello" it will either send me the SIGILL error or simply not evaluate.evanoliverMon, 04 Jan 2016 19:19:59 -0600http://ask.sagemath.org/question/32065/Unhandled SIGILL by using floats (such as 1.1)http://ask.sagemath.org/question/26640/unhandled-sigill-by-using-floats-such-as-11/ I made a fresh install of SAGE 6.6 and with a first test I run in the following problem:
> 1.1+1.0
>
> Unhandled SIGILL: An illegal
> instruction occurred in Sage. This
> probably occurred because a *compiled*
> component of Sage has a bug in it and
> is not properly wrapped with sig_on(),
> sig_off(). Sage will now terminate.
Whereas
> 1.0+1.0
>
> 2.00000000000000
works.
I use a Macbook Pro 13" (2009) with OS 10.9.5
and sage-6.6-x86_64-Darwin-OSX_10.7_x86_64-app
Any Ideas what is going wrong?
yeSat, 25 Apr 2015 04:03:27 -0500http://ask.sagemath.org/question/26640/Is there the way to close previous plotting window when I input the second plotting command.http://ask.sagemath.org/question/24990/is-there-the-way-to-close-previous-plotting-window-when-i-input-the-second-plotting-command/ Hello.
The title is my question.
I am using SAGE in terminal of Mac OSX.
When I input the latter plotting command NEW plotting window opens.
For example,
sage: G=graphs.CompleteGraph(2)
sage: G.plot() <--------- the first window open
sage: G.add_vertex(3)
sage: G.plot() <--------- the second window open
I want to view only one plotting window.
How can I do?SeminTue, 25 Nov 2014 04:26:42 -0600http://ask.sagemath.org/question/24990/%cython in notebook doesn’t work anymorehttp://ask.sagemath.org/question/24885/cython-in-notebook-doesnt-work-anymore/hello, <br>
running sage-6.3.app on macosx 10.9.5, i can’t use %cython in the notebook anymore (it used to work some time ago though, with older sage and system versions);
<br>
i get the following: *error: command 'gcc' failed with exit status 1*
<br>
more precisely, gcc doesn’t find a certain file limits.h (see details below) that, however, exists at the given address - i checked it; <br>
how can i make it work again?
PS: same gcc error when loading a .spyx file in the command line <br>
PS2: same errors with the 6.4 version (sage-6.4-x86_64-Darwin-OSX_10.9_x86_64.dmg)<br>
gcc -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/include/csage -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/include -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/include/python2.7 -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/lib/python/site-packages/numpy/core/include -I/Applications/Sage-6.3.app/Contents/Resources/sage/src/sage/ext -I/Applications/Sage-6.3.app/Contents/Resources/sage/src -I/Applications/Sage-6.3.app/Contents/Resources/sage/src/sage/gsl -I/Users/fabrice/.sage/sage_notebook.sagenb/home/admin/123/code -I/Applications/Sage-6.3.app/Contents/Resources/sage/local/include/python2.7 -c _Users_fabrice__sage_sage_notebook_sagenb_home_admin_123_code_sage2_spyx_0.c -o build/temp.macosx-10.9-x86_64-2.7/_Users_fabrice__sage_sage_notebook_sagenb_home_admin_123_code_sage2_spyx_0.o -w -O2
In file included from /Applications/Sage-6.3.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.3.0/4.7.3/include-fixed/syslimits.h:7:0,
from /Applications/Sage-6.3.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.3.0/4.7.3/include-fixed/limits.h:34,
from /Applications/Sage-6.3.app/Contents/Resources/sage/local/include/python2.7/Python.h:19,
from _Users_fabrice__sage_sage_notebook_sagenb_home_admin_123_code_sage2_spyx_0.c:16:
/Applications/Sage-6.3.app/Contents/Resources/sage/local/bin/../lib/gcc/x86_64-apple-darwin13.3.0/4.7.3/include-fixed/limits.h:169:61: fatal error: limits.h: No such file or directory
compilation terminated.FabriceSun, 16 Nov 2014 11:49:45 -0600http://ask.sagemath.org/question/24885/sage notebook will not start after switching to Mavericks / Yosemitehttp://ask.sagemath.org/question/24759/sage-notebook-will-not-start-after-switching-to-mavericks-yosemite/After purchasing a new Mac and transferring my data, the sage notebook fails to start on the new machine. I can run sage in the terminal however. The new Mac was originally running OS X Mavericks. I have now upgraded to OS X Yosemite. The notebook will still not start.
Does anyone know what's wrong? I would really appreciate a reasonable hint where to start looking for the cause of the problem.
The log output is copied below.
┌────────────────────────────────────────────────────────────────────┐
│ Sage Version 6.3, Release Date: 2014-08-10 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Please wait while the Sage Notebook server starts...
Traceback (most recent call last):
File "/Applications/Sage-6.3.app/Contents/Resources/sage/src/bin/sage-notebook", line 34, in <module>
notebook()
File "lazy_import.pyx", line 358, in sage.misc.lazy_import.LazyImport.__call__ (build/cythonized/sage/misc/lazy_import.c:3000)
File "/Applications/Sage-6.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/notebook_object.py", line 228, in __call__
return self.notebook(*args, **kwds)
File "/Applications/Sage-6.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/run_notebook.py", line 529, in notebook_run
nb = notebook.load_notebook(directory)
File "/Applications/Sage-6.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/notebook.py", line 1811, in load_notebook
nb = Notebook(dir)
File "/Applications/Sage-6.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/notebook/notebook.py", line 150, in __init__
S.load_users(self._user_manager)
File "/Applications/Sage-6.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/storage/filesystem_storage.py", line 267, in load_users
for user in self._basic_to_users(self._load('users.pickle')).itervalues():
File "/Applications/Sage-6.3.app/Contents/Resources/sage/local/lib/python2.7/site-packages/sagenb-0.10.8.2-py2.7.egg/sagenb/storage/filesystem_storage.py", line 167, in _load
result = cPickle.load(f)
EOFErroru0Mon, 03 Nov 2014 08:13:36 -0600http://ask.sagemath.org/question/24759/Cannot launch sage with options on OS Xhttp://ask.sagemath.org/question/24125/cannot-launch-sage-with-options-on-os-x/ I have `Sage 6.3` installed on `OS X 10.9`. I can launch Sage without any problem. However, when I tried to launch Sage with options in terminal, it always launchs Sage notebook in safari. For example, if I type `$ sage -v`, Sage notebook opens; if I type `$ sage -ipython notebook`, Sage notebook opens again. What should I do to solve this problem? I'm new to sage and python, so forgive me for my ignorance。HanSun, 14 Sep 2014 23:39:14 -0500http://ask.sagemath.org/question/24125/Problems running SageTex on OSXhttp://ask.sagemath.org/question/10769/problems-running-sagetex-on-osx/I am running Mac OSX and I recently tried using sagetex. I found the sagetex.sty file and put it where it could be found by Latex (option 3 in the installation guide). When I use TexMaker (my latex editor of choice) a document is created that has only latex's usual ?? for references it does not know or could not find. However a sage file is created. (example.tex creates example.sage and a host of other files). If I run the file, example.sage, I receive an error saying:
IOError: [Errno 2] No such file or directory: 'example.sage'
What causes such an error had how can it be addressed?WishItWorkedSat, 23 Nov 2013 04:46:50 -0600http://ask.sagemath.org/question/10769/