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.Sat, 01 Dec 2018 09:33:48 -0600Issues during sagelib-8.4 building for Raspbian Stretch on armv7lhttp://ask.sagemath.org/question/44528/issues-during-sagelib-84-building-for-raspbian-stretch-on-armv7l/During sagelib-8.4 building for Raspbian Stretch on armv7l/RPI3B as part of sage-8.4 build, some messages appeared which might interest sage developers, https://pastebin.com/KJy0ffXe. In short, the issue is with failure to find cimported module `gmpy2` whereas the system has `gmpy2` installed,
sage-8.4 $ pip show gmpy2
Name: gmpy2
Version: 2.0.8
Summary: GMP/MPIR, MPFR, and MPC interface to Python 2.6+ and 3.x
Home-page: http://code.google.com/p/gmpy/
Author: Case Van Horsen
Author-email: casevh@gmail.com
License: UNKNOWN
Location: /usr/local/lib/python2.7/dist-packages
Requires:
Required-by:
But eventually sagelib-8.4 building completes.
So how much it limits the functioinality of sagelib-8.4 or it doesn't? And is that avoidable/fixable (workarounds!)?pavelsayekatSat, 01 Dec 2018 09:33:48 -0600http://ask.sagemath.org/question/44528/Error Building Sage 7.6 in ubuntuhttp://ask.sagemath.org/question/38041/error-building-sage-76-in-ubuntu/Hi all,
I am new to Sage. I am having trouble in installing sage 7.6 in Ubuntu 14.04. I've got this error.
Could someone help me?
Thank you all.
make build/make/Makefile
make[1]: Entering directory `/home/eric/Sage/SageMath'
make[1]: `build/make/Makefile' is up to date.
make[1]: Leaving directory `/home/eric/Sage/SageMath'
build/bin/sage-logger \
"cd build/make && ./install 'all'" logs/install.log
*** ALL ENVIRONMENT VARIABLES BEFORE BUILD: ***
CLUTTER_IM_MODULE=xim
COLORTERM=gnome-terminal
COMPIZ_CONFIG_PROFILE=ubuntu
DBUS_SESSION_BUS_ADDRESS=unix:abstract=/tmp/dbus-XWvPOj2kHc
DEFAULTS_PATH=/usr/share/gconf/ubuntu.default.path
DESKTOP_SESSION=ubuntu
DISPLAY=:0
GDM_LANG=en_US
GDMSESSION=ubuntu
GNOME_DESKTOP_SESSION_ID=this-is-deprecated
GNOME_KEYRING_CONTROL=/run/user/1000/keyring-Ku5pqL
GNOME_KEYRING_PID=1767
GPG_AGENT_INFO=/run/user/1000/keyring-Ku5pqL/gpg:0:1
GTK_IM_MODULE=ibus
GTK_MODULES=overlay-scrollbar:unity-gtk-module
HOME=/home/eric
IM_CONFIG_PHASE=1
INSTANCE=Unity
JOB=gnome-session
LANG=en_US.UTF-8
LANGUAGE=en_US
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s
LOGNAME=eric
LS_COLORS=rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30;43:ca=30;41:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.lzma=01;31:*.tlz=01;31:*.txz=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.dz=01;31:*.gz=01;31:*.lz=01;31:*.xz=01;31:*.bz2=01;31:*.bz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tz=01;31:*.deb=01;31:*.rpm=01;31:*.jar=01;31:*.war=01;31:*.ear=01;31:*.sar=01;31:*.rar=01;31:*.ace=01;31:*.zoo=01;31:*.cpio=01;31:*.7z=01;31:*.rz=01;31:*.jpg=01;35:*.jpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.axv=01;35:*.anx=01;35:*.ogv=01;35:*.ogx=01;35:*.aac=00;36:*.au=00;36:*.flac=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.axa=00;36:*.oga=00;36:*.spx=00;36:*.xspf=00;36:
MAKEFLAGS=
MAKELEVEL=1
MAKE=make
MANDATORY_PATH=/usr/share/gconf/ubuntu.mandatory.path
MFLAGS=
PATH=/home/eric/Sage/SageMath/build/bin:/home/eric/Sage/SageMath/src/bin:/home/eric/Sage/SageMath/local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
PWD=/home/eric/Sage/SageMath/build/make
PYTHONPATH=/home/eric/Sage/SageMath/local
QT4_IM_MODULE=xim
QT_IM_MODULE=ibus
QT_QPA_PLATFORMTHEME=appmenu-qt5
SAGE_EXTCODE=/home/eric/Sage/SageMath/local/share/sage/ext
SAGE_LOCAL=/home/eric/Sage/SageMath/local
SAGE_LOGS=/home/eric/Sage/SageMath/logs/pkgs
SAGE_ORIG_PATH_SET=True
SAGE_ORIG_PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
SAGE_ROOT=/home/eric/Sage/SageMath
SAGE_SHARE=/home/eric/Sage/SageMath/local/share
SAGE_SPKG_INST=/home/eric/Sage/SageMath/local/var/lib/sage/installed
SAGE_SRC=/home/eric/Sage/SageMath/src
SAGE_VERSION=7.6
SELINUX_INIT=YES
SESSIONTYPE=gnome-session
SHELL=/bin/bash
SHLVL=3
SSH_AUTH_SOCK=/run/user/1000/keyring-Ku5pqL/ssh
TERM=xterm
TEXTDOMAINDIR=/usr/share/locale/
TEXTDOMAIN=im-config
UPSTART_EVENTS=started starting
UPSTART_INSTANCE=
UPSTART_JOB=unity-settings-daemon
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/1771
USER=eric
_=/usr/bin/env
V=1
VTE_VERSION=3409
WINDOWID=58720268
XAUTHORITY=/home/eric/.Xauthority
XDG_CONFIG_DIRS=/etc/xdg/xdg-ubuntu:/usr/share/upstart/xdg:/etc/xdg
XDG_CURRENT_DESKTOP=Unity
XDG_DATA_DIRS=/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/
XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/eric
XDG_RUNTIME_DIR=/run/user/1000
XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
XDG_SEAT=seat0
XDG_SESSION_ID=c2
XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
XDG_VTNR=7
XMODIFIERS=@im=ibus
***********************************************
make[1]: Entering directory `/home/eric/Sage/SageMath/build/make'
make base
make[2]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[2]: Nothing to be done for `base'.
make[2]: Leaving directory `/home/eric/Sage/SageMath/build/make'
env SAGE_BUILD_TOOLCHAIN=yes make toolchain
make[2]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[2]: Nothing to be done for `toolchain'.
make[2]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make toolchain-deps
make[2]: Entering directory `/home/eric/Sage/SageMath/build/make'
make /home/eric/Sage/SageMath/local/var/lib/sage/installed/zlib-1.2.8.p0
make[3]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[3]: `/home/eric/Sage/SageMath/local/var/lib/sage/installed/zlib-1.2.8.p0' is up to date.
make[3]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make /home/eric/Sage/SageMath/local/var/lib/sage/installed/mpir-2.7.2.p0
make[3]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[3]: `/home/eric/Sage/SageMath/local/var/lib/sage/installed/mpir-2.7.2.p0' is up to date.
make[3]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make /home/eric/Sage/SageMath/local/var/lib/sage/installed/mpfr-3.1.5
make[3]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[3]: `/home/eric/Sage/SageMath/local/var/lib/sage/installed/mpfr-3.1.5' is up to date.
make[3]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make /home/eric/Sage/SageMath/local/var/lib/sage/installed/mpc-1.0.3.p0
make[3]: Entering directory `/home/eric/Sage/SageMath/build/make'
make[3]: `/home/eric/Sage/SageMath/local/var/lib/sage/installed/mpc-1.0.3.p0' is up to date.
make[3]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make[2]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make doc all-sage
make[2]: Entering directory `/home/eric/Sage/SageMath/build/make'
if [ -z "$SAGE_INSTALL_FETCH_ONLY" ]; then \
cd /home/eric/Sage/SageMath/src && source bin/sage-env && \
sage-logger -p 'time make sage' '/home/eric/Sage/SageMath/logs/pkgs/sagelib-7.6.log'; \
fi
[sagelib-7.6] make[3]: Entering directory `/home/eric/Sage/SageMath/src'
[sagelib-7.6] (cd . \
[sagelib-7.6] && export SAGE_ROOT=/doesnotexist \
[sagelib-7.6] SAGE_SRC=/doesnotexist \
[sagelib-7.6] SAGE_SRC_ROOT=/doesnotexist \
[sagelib-7.6] SAGE_DOC_SRC=/doesnotexist \
[sagelib-7.6] SAGE_SCRIPTS_DIR=/doesnotexist \
[sagelib-7.6] SAGE_BUILD_DIR=/doesnotexist \
[sagelib-7.6] SAGE_PKGS=/home/eric/Sage/SageMath/build/pkgs \
[sagelib-7.6] SAGE_CYTHONIZED=/home/eric/Sage/SageMath/src/build/cythonized \
[sagelib-7.6] && python -u setup.py --no-user-cfg build install)
[sagelib-7.6] /home/eric/Sage/SageMath/local/bin/python: 1: /home/eric/Sage/SageMath/local/bin/python: Syntax error: word unexpected (expecting ")")
[sagelib-7.6] make[3]: *** [sage] Error 2
[sagelib-7.6] make[3]: Leaving directory `/home/eric/Sage/SageMath/src'
[sagelib-7.6]
[sagelib-7.6] real 0m0.023s
[sagelib-7.6] user 0m0.000s
[sagelib-7.6] sys 0m0.000s
make[2]: *** [sagelib] Error 2
make[2]: Leaving directory `/home/eric/Sage/SageMath/build/make'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/eric/Sage/SageMath/build/make'
real 0m0.441s
user 0m0.084s
sys 0m0.060s
***************************************************************
Error building Sage.
The following package(s) may have failed to build (not necessarily
during this run of 'make all'):
The build directory may contain configuration files and other potentially
helpful information. WARNING: if you now run 'make' again, the build
directory will, by default, be deleted. Set the environment variable
SAGE_KEEP_BUILT_SPKGS to 'yes' to prevent this.
make: *** [all] Error 1
Eric_h22Wed, 21 Jun 2017 06:12:26 -0500http://ask.sagemath.org/question/38041/Unable to build documentation (ValueError: unknown locale: UTF-8)http://ask.sagemath.org/question/25089/unable-to-build-documentation-valueerror-unknown-locale-utf-8/ When I try to build the sage documentation I get an error. What am I doing wrong? The same error appears when I try
make doc-clean && make
Here is a transcript:
amri@as154:~/sage$ sage -docbuild
Traceback (most recent call last):
File "/home/amri/sage/src/doc/common/builder.py", line 16, in <module>
import sphinx.cmdline
File "/home/amri/sage/local/lib/python2.7/site-packages/Sphinx-1.2.2-py2.7.egg/sphinx/cmdline.py", line 18, in <module>
from docutils.utils import SystemMessage
File "/home/amri/sage/local/lib/python2.7/site-packages/docutils/utils/__init__.py", line 20, in <module>
import docutils.io
File "/home/amri/sage/local/lib/python2.7/site-packages/docutils/io.py", line 18, in <module>
from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput
File "/home/amri/sage/local/lib/python2.7/site-packages/docutils/utils/error_reporting.py", line 47, in <module>
locale_encoding = locale.getlocale()[1] or locale.getdefaultlocale()[1]
File "/home/amri/sage/local/lib/python/locale.py", line 543, in getdefaultlocale
return _parse_localename(localename)
File "/home/amri/sage/local/lib/python/locale.py", line 475, in _parse_localename
raise ValueError, 'unknown locale: %s' % localename
ValueError: unknown locale: UTF-8AmriWed, 03 Dec 2014 01:13:52 -0600http://ask.sagemath.org/question/25089/Adventures trying to build 6.3 on cygwinhttp://ask.sagemath.org/question/24115/adventures-trying-to-build-63-on-cygwin/Don't know where to send this type of thing, so I'll put it here and hope the right person sees it.
(Using cygwin32 on windows 8.1. Using 32 bit instead of 64 bit because I need Macaulay2, which only seems to be available for 32 bit.)
Building went fine up until numpy, which failed because the "cygwin-lapack_lite-setup.py.diff" patch seems to be made for an older version of numpy than the one included. Using a modified .diff based on the new version seemed to fix everything.
Then ipython failed with error
> 1 [main] python2.7 516 child_info_fork::abort: address space needed by 'array.dll' (0x2C0000) is already occupied error: [Errno 11]
>
> Resource temporarily unavailable
Sounded like the type of thing rebasing would fix, but retrying after running sage-rebaseall.sh didn't solve it after about 5 attempts. Anyone have any ideas? (I'm a linux noob, so please treat me as such)
The Cygwin64Port page seems to suggest I might have better luck with 5.13, so I'm trying that as I speak.
EDIT: 5.13 failed with a similar error, this time while installing mercurial. Again rebasing doesn't fix it.
I believe I'm doing rebasing right. I quit cygwin then run "dash -c '/usr/bin/rebaseall" from a command prompt with admin privileges.
Just found the precompiled cygwin binaries at http://boxen.math.washington.edu/home/jpflori/dist/ , I grabbed the one for 5.13 and ran it. During startup it sometimes gives a fork error
>1 [main] python2.7 4968 child_info_fork::abort: address space needed by 'utils.dll' (0x510000) is already occupied
but that doesn't seem to ruin things, and it still takes me to the prompt. I can calculate 3*3 (correctly) and I can open the notebook in Firefox, so that's good.
I'm running make test now to see how that goes. Will update.
EDIT 2: The test died with a fork error, the occasional fork error on sage startup somehow became constant, rebasing did nothing as usual, and the notebook stopped working (page loaded blank, fork and python errors in the terminal). Deleted everything and re-extracted, and the notebook works again, but still with intermittent fork errors.
Assuming it maintains its current level of not-completely-brokenness, I'll probably keep it but go back to the VM when I need something more stable.
It would be amazing if this could somehow be the/an officially supported way to use sage on windows, though. Virtual machines are so big and clunky.RobSun, 14 Sep 2014 09:18:51 -0500http://ask.sagemath.org/question/24115/list building - consecutivehttp://ask.sagemath.org/question/10271/list-building-consecutive/Hi experts!
How can i create N empty NUmpy arrays or lists (L1, L2, L3, ..., LN) in a 'for' cycle, i.e.:
for j in srange(N):
Lj=np.empty(A)
(A= numbers of element in the array).
Waiting for your answers.
Thanks a lot.
mresimulatorSun, 23 Jun 2013 13:09:10 -0500http://ask.sagemath.org/question/10271/Building ATLAShttp://ask.sagemath.org/question/7675/building-atlas/I have a little Acer Aspire One "netbook" with 1 Gig of RAM. I used to build sage from source on this machine, but I can't do so anymore. The problem appears to be ATLAS. There is so much output that happens during the ATLAS part of the build that I'm not sure what to post, but I'm open to suggestions on what part of the build output would be pertinent. Here are a couple of examples of the many errors I get:
/usr/local/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build/bin/xsubstr -o ATL_tMpFiLe -i /usr/local/sage-4.5.2/spkg/build/atlas-3.8.3.p12/ATLAS-build/../src//tune/blas/gemm/CASES/scases.flg \
-s '^gcc' 'gcc -fPIC -m32' -s ' gcc' ' gcc -fPIC -m32'
./xuserflag -i ATL_tMpFiLe -o scases.flg
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
FlagCheck.c:1: error: bad value (ultrasparc) for -mtune= switch
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
FlagCheck.c:1: error: bad value (ultrasparc) for -mtune= switch
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
FlagCheck.c:1: error: bad value (ultrasparc) for -mtune= switch
`-mcpu=' is deprecated. Use `-mtune=' or '-march=' instead.
FlagCheck.c:1: error: bad value (ultrasparc) for -mtune= switch
cc1: error: unrecognized command line option "-mips4"
-----------------------------------------------------------------------
ATLAS failed to build for the 1-th time, possibly because of a
loaded system, so we will automatically try again up to 4 more times.
Waiting 5 minutes...
ATLAS failed to build for the 2-th time, possibly because of a
loaded system, so we will automatically try again up to 3 more times.
Waiting 12 minutes...
ATLAS failed to build for the 3-th time, possibly because of a
loaded system, so we will automatically try again up to 2 more times.
Waiting 8 minutes...
ATLAS failed to build for the 4-th time, possibly because of a
loaded system, so we will automatically try again up to 1 more times.
Waiting 8 minutes...
Too many failures to build ATLAS. Giving up!
The last time I built on this particular machine was back at Sage 4.3.1. Since then I've also upgraded the OS from Fedora 10 to Fedora 13. I can no longer build 4.3.1 because of the libgcrypt issue with Fedora 13. So I don't know whether my atlas problem is the change to FC-13, the ATLAS build changing, or some other problem.
Here are the things I've tried so far, without success:
1. Fixing the speed of both CPUs so they won't be throttled back. This didn't help. I'm not running anything else on the machine while I do the build. For comparison, I did the same build on another fairly old 2 processor machine (FC-12). I didn't set the cpu speeds, and I did various other things on that machine at the same time. That build worked with no problem.
2. Doing the same build on another laptop with 1 Gig memory. This worked fine, so I guess memory isn't the problem. The other laptop was an old Think Pad running FC-12.
3. Booting using maxcpus=1 to build with only one CPU (in case there was some weird timing interaction between the 2 CPUs). This didn't help.
4. Using "yum" to install atlas and setting SAGE\_ATLAS\_LIB to try to get Sage to use the system-wide atlas libraries instead of building them. I've tried setting this up various different ways, but so far have been unable to get it to work. The build always complains that it can't find the files. I imagine I'm doing something wrong here but I can't figure out what.
It *appears* from the above that the problem must be with either Fedora 13, or with something about the Acer Aspire machine. Unfortunately I don't have another FC-13 system set up for comparison.
Any ideas or comments appreciated, particularly:
1. Anybody else using an Aspire One?
2. Anybody have to do anything special to build recently on Fedora 13?
-Mike
Mike WittWed, 08 Sep 2010 04:19:39 -0500http://ask.sagemath.org/question/7675/