ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 09 Feb 2021 22:15:52 +0100no mountable file systemshttps://ask.sagemath.org/question/55646/no-mountable-file-systems/Hi, I am trying to download Sage on my Mac running OS X EL Capitan (10.11.6), and every time I try to open the disk image I get the error "no mountable file systems." This has persisted when I download the app.dmg as well as the .dmg, restarting my computer, creating a new account on my computer, etc., as well as trying to open it in Terminal. Has anyone experienced this? ajTue, 09 Feb 2021 22:15:52 +0100https://ask.sagemath.org/question/55646/Building Sage 9.2 on legacy Mac system (10.11)https://ask.sagemath.org/question/54050/building-sage-92-on-legacy-mac-system-1011/When I tried to build Sage 9.2 on MacOS 10.11 using the (old, old) Xcode tools, numpy built, but building sagelib failed with errors pointing to problems with numpy.
I've succeeded in building 9.2 from the source tarball on OS X 10.11 using a 'minimal' Homebrew installation including gcc, mpfr, mpfi, gsl, libmpc, boost, gmp, and openblas. Homebrew no longer supports Apple systems running OS older than 10.12, but this worked well enough for me to build Sage.
Am I correct in concluding that the only way to duplicate this on a second (bootable) disk or on another computer running the same system is to duplicate this Homebrew setup and then build Sage from source again? The build time using an 8-core MacPro ca. 2008 only took about 90 minutes, but my other system only has a dual-core CPU.
I've read around a little and it seems that including scripts to relocate Sage are no longer viable with Python3. I also realize that I can just wait a few more days and pre-built binaries will be available. Here, I am just trying to understand the build process a little better. I've read about SAGE_ROOT and SAGE_LOCAL environment variables, but have not been able to figure out how to use them to relocate; I'm guessing this strategy is not possible.
The central question, then, is whether I need to install Homebrew everywhere I want to build Sage 9.2. I think so, because that is how the Sage build system finds those tools.
Note on packages in Homebrew: no need to add gsl, or openblas; Sage builds these anyway.dyne2meterWed, 28 Oct 2020 08:25:11 +0100https://ask.sagemath.org/question/54050/Jupiter and notebook start problemhttps://ask.sagemath.org/question/38844/jupiter-and-notebook-start-problem/I am running MacOSX 10.11.6.
After update to Sage 8.0 there is a problem to start Jupiter or the notebook server. Here some terminal output:
Benutzers-Air:~ Benutzer$ '/Applications/SageMath-8.0.app/Contents/Resources/sage/sage' --notebook=sagenb
/Applications/SageMath-8.0.app/Contents/Resources/sage/src/bin/sage-env: line 428: 17594 Trace/BPT trap: 5 "$SAGE_LOCAL/bin/python" -c 'import pkg_resources; pkg_resources.get_distribution("matplotlib").version' 2> /dev/null
┌────────────────────────────────────────────────────────────────────┐
│ SageMath version 8.0, Release Date: 2017-07-21 │
│ Type "notebook()" for the browser-based notebook interface. │
│ Type "help()" for help. │
└────────────────────────────────────────────────────────────────────┘
Please wait while the old SageNB Notebook server starts...
dyld: lazy symbol binding failed: Symbol not found: _getentropy
Referenced from: /Applications/SageMath-8.0.app/Contents/Resources/sage/local/lib/libpython2.7.dylib
Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _getentropy
Referenced from: /Applications/SageMath-8.0.app/Contents/Resources/sage/local/lib/libpython2.7.dylib
Expected in: /usr/lib/libSystem.B.dylibwbelauMon, 18 Sep 2017 15:16:35 +0200https://ask.sagemath.org/question/38844/I just built a Sage system. What files may I delete with impunity?https://ask.sagemath.org/question/47352/i-just-built-a-sage-system-what-files-may-i-delete-with-impunity/I have just built Sage 7.6 on an Apple iMac 8,1 running OS X version 10.11.6. I started with a download of a compressed source distribution from the Sage github repository (without cloning the repository itself, since I don't plan to contribute any development ideas or comments for awhile). Doctesting went very well, with only two failed tests out of the entire suite:
sage -t src/sage/doctest/test.py # 1 doctest failed
sage -t src/sage/modules/vector_rational_dense.pyx # 1 doctest failed
I also downloaded the equivalent binary distribution and doctested that, obtaining these results:
sage -t src/sage/calculus/calculus.py # 1 doctest failed
sage -t src/sage/doctest/test.py # 1 doctest failed
sage -t src/sage/graphs/digraph_generators.py # 3 doctests failed
sage -t src/sage/graphs/graph_generators.py # 5 doctests failed
sage -t src/sage/graphs/hypergraph_generators.py # 7 doctests failed
sage -t src/sage/modules/vector_rational_dense.pyx # 1 doctest failed
sage -t src/sage/tests/cmdline.py # Timed out after testing finished
I did expect my own build to do better, but the installation I ended up with is fully 2 GB larger than what came in the binary distribution. Much (more than 1/3) of the overage is in a directory
../sage-7.6/local/share/doc/sage/doctrees
which is not present in the binary distribution, and I assume it is only of interest to developers. Is that correct? I will trim my build by also removing two large files
../sage-7.6/src/build/temp.macosx.10.9...
../sage-7.6/src/build/lib.macosx.10.9...
but keep my log and upstream files in case I want to review the build or look at the sources. All this is pending any further advice I get in the next few days about files that are generally only of interest to developers.dyne2meterFri, 02 Aug 2019 21:03:57 +0200https://ask.sagemath.org/question/47352/Process Sage illegal instruction: 4https://ask.sagemath.org/question/44135/process-sage-illegal-instruction-4/If this is a known bug, I've not been able to find a solution. Please advice.
I get this error:
Process Sage illegal instruction: 4
when I run this code:
from matplotlib import rc
g=Graph({1:[2,3], 2:[1,3], 3:[1,2]});
latex(g.plot(figsize=[2,2],vertex_size=450,layout='spring',color_by_label=True));
It used to run. This is not new code. The versions I'm running are:
Mac OS X El Capitan 10.11.6 (15G22010)
XCode Version 8.0 (8A218a)
SageMath version 8.3, Release Date: 2018-08-03
GNU Emacs 27.0.50 (build 1, x86_64-apple-darwin15.6.0, NS appkit-1404.47 Version 10.11.6 (Build 15G22010))
ob-sagemath 0.4
sage-shell-mode 0.3ufoppThu, 01 Nov 2018 07:50:54 +0100https://ask.sagemath.org/question/44135/Cna't run sage on my mac mini.https://ask.sagemath.org/question/39109/cnat-run-sage-on-my-mac-mini/ I have a 2010 Mac mini running El Capitan (OSX 10.11.6). I downloaded and installed sage-8.0-OSX_10.11.6-x86_64.app.dmg. The MD5 checksum was correct. When I first tried to run the app, it failed to run because it was "from an unknown developer." I followed the procedure to override this, and now, when I click on the icon in launchpad, nothing happens. Have I downloaded the wrong file? Is there a way to run the app from the command line so that I might at least get an error message? saulWed, 11 Oct 2017 01:57:35 +0200https://ask.sagemath.org/question/39109/Cannot get Maxima to run in terminal in OS10.11.6https://ask.sagemath.org/question/36239/cannot-get-maxima-to-run-in-terminal-in-os10116/I downloaded Sage-math-7.4.app for MacOSX (running El Capitan on 2016 Mac Book). Double clicked SageMath-7.4.app. I selected Terminal Session>Math>maxima . A terminal window appears with the following text:
Last login: Mon Jan 9 19:09:51 on ttys001 /Users/unlmath/Desktop/SAGE/SageMath-7.4.app/Contents/Resources/sage/sage --maxima; exit MacBook-Pro:~ unlmath$ /Users/unlmath/Desktop/SAGE/SageMath-7.4.app/Contents/Resources/sage/sage --maxima; exit ;;; Loading #P"/Users/unlmath/Desktop/SAGE/SageMath-7.4.app/Contents/Resources/sage/local/lib/ecl/sb-bsd-sockets.fas" ;;; Loading #P"/Users/unlmath/Desktop/SAGE/SageMath-7.4.app/Contents/Resources/sage/local/lib/ecl/sockets.fas"
Condition of type: END-OF-FILE Unexpected end of file on #<sequence-input stream="" 000000010b9691e0="">. No restarts available.
Top level.
>
As far as I can tell Maxima is not running. I'm not sure what is running at the ">" prompt. I haven't found anything on-line describing this problem. If I select Terminal Session>Math>gap it runs gap in the terminal, and if I select Terminal Session>sage it runs sage. Maxima behaves differently. I'd like to get it working.PastaTue, 10 Jan 2017 01:59:03 +0100https://ask.sagemath.org/question/36239/Sage fails to install on OSX El Capitanhttps://ask.sagemath.org/question/36044/sage-fails-to-install-on-osx-el-capitan/I am trying to install from sage-7.4-OSX_10.11.6-x86_64.app . I get a long terminal message about python errors. After that, whenever I try to open a terminal or notebook in Sage, I again get long terminal messages about moved directories. I did not move anything.
peterbacsiSat, 17 Dec 2016 19:00:49 +0100https://ask.sagemath.org/question/36044/how can I speed up latexmk (sagetex) on a Mac?https://ask.sagemath.org/question/34362/how-can-i-speed-up-latexmk-sagetex-on-a-mac/I'm running latexmk on a Mac with sage 7.2 installed.
I'm confused about why the compilation process with tex files that use sagetex seem to take either 15-20 seconds or less than a second. I understand that there may be previously-generated files (plots, etc), but I have controlled for that by removing those files before each compilation.
Is there any way I can get consistent (and hopefully fast) compile times for my sagetex documents?crucalculusSun, 07 Aug 2016 05:18:23 +0200https://ask.sagemath.org/question/34362/Is it possible to install sage 7.1 on OSX 10.11?https://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 21:38:18 +0200https://ask.sagemath.org/question/32916/What is the status of Sage on OS X 10.11 (El Capitan)?https://ask.sagemath.org/question/31422/what-is-the-status-of-sage-on-os-x-1011-el-capitan/ The binary page for OS X says that Sagemath doesn't work on OS X 10.11, then lists a workaround that involves temporarily disabling System Integrity Protection. The trac page for the problem, #19370, lists the problem as "fixed". What's the correct status? Is the "fix" just to disable SIP? And is this necessary to run Sagemath itself or just the installer?jsdWed, 09 Dec 2015 01:44:14 +0100https://ask.sagemath.org/question/31422/