#9644: Add error messages and update documentation for spaces in $SAGE_ROOT
----------------------------------------------------------------------------------------------+
Reporter: mpatel
| Owner: jason
Type: defect
| Status: needs_review
Priority: major
| Milestone:
Component: misc
| Keywords:
Author:
| Upstream: N/A
Reviewer:
| Merged:
Work_issues: Update README.txt, Wiki page, Installation Guide; put info on
download page(s) |
----------------------------------------------------------------------------------------------+
Changes (by leif):
* work_issues: Update README.txt, put info on download page(s) => Update
README.txt, Wiki page, Installation
Guide; put info on download page(s)
Old description:
> Reported by Dan on [http://groups.google.com/group/sage-
> support/browse_thread/thread/3694601bc3de1a80 sage-support]:
> {{{
> This is an observation about the pre-compiled binaries for Mac OS.
>
> If the (unpacked) sage disk image directory is saved in a folder that has
> a
> space character in its name, for example:
>
> $HOME/Applications/my folder
>
> Then sage will not load properly when the "sage" executable is clicked.
> The
> terminal session begins, but the application doesn't load successfully.
>
> Changing the parent directory name to "my_folder" resolved this issue.
>
> While using space characters in directory names probably isn't all that
> common
> in UNIX or Linux installations, it is more common in Mac OS
> installations.
> Perhaps the installation instructions could be updated to mention this
> issue?
> }}}
>
> This actually appears to be a more general problem:
> {{{
> #!sh
> $ hostname
> sage.math.washington.edu
> $ pwd
> /mnt/usb1/scratch/mpatel/tmp/my sage
> $ ./sage
> Error setting environment variables by running
> /mnt/usb1/scratch/mpatel/tmp/my sage/local/bin/sage-env; possibly contact
> sage-devel (see http://groups.google.com/group/sage-devel).
> cat: /bin/sage-banner: No such file or directory
> mkdir: cannot create directory `': No such file or directory
> cp: cannot create directory `/ipython': Permission denied
> Traceback (most recent call last):
> File "./sage-cleaner", line 25, in <module>
> DOT_SAGE = os.environ['DOT_SAGE']
> File "/mnt/usb1/scratch/mpatel/tmp/my
> sage/local/lib/python2.6/UserDict.py", line 22, in __getitem__
> raise KeyError(key)
> KeyError: 'DOT_SAGE'
> **********************************************************************
> Welcome to IPython. I will try to create a personal configuration
> directory
> where you can customize many aspects of IPython's functionality in:
>
> /ipython
> Initializing from configuration /mnt/usb1/scratch/mpatel/tmp/my
> sage/local/lib/python2.6/site-packages/IPython/UserConfig
> WARNING:
>
> There was a problem with the installation:
> [Errno 13] Permission denied: '/ipython'
> Try to correct it or contact the developers if you think it's a bug.
> IPython will proceed with builtin defaults.
> Please press <RETURN> to start IPython.
> }}}
>
> Similar tickets: #5261 (OS X app bundles), #8303 (command-line
> arguments).
New description:
Reported by Dan on [http://groups.google.com/group/sage-
support/browse_thread/thread/3694601bc3de1a80 sage-support]:
{{{
This is an observation about the pre-compiled binaries for Mac OS.
If the (unpacked) sage disk image directory is saved in a folder that has
a
space character in its name, for example:
$HOME/Applications/my folder
Then sage will not load properly when the "sage" executable is clicked.
The
terminal session begins, but the application doesn't load successfully.
Changing the parent directory name to "my_folder" resolved this issue.
While using space characters in directory names probably isn't all that
common
in UNIX or Linux installations, it is more common in Mac OS installations.
Perhaps the installation instructions could be updated to mention this
issue?
}}}
This actually appears to be a more general problem:
{{{
#!sh
$ hostname
sage.math.washington.edu
$ pwd
/mnt/usb1/scratch/mpatel/tmp/my sage
$ ./sage
Error setting environment variables by running
/mnt/usb1/scratch/mpatel/tmp/my sage/local/bin/sage-env; possibly contact
sage-devel (see http://groups.google.com/group/sage-devel).
cat: /bin/sage-banner: No such file or directory
mkdir: cannot create directory `': No such file or directory
cp: cannot create directory `/ipython': Permission denied
Traceback (most recent call last):
File "./sage-cleaner", line 25, in <module>
DOT_SAGE = os.environ['DOT_SAGE']
File "/mnt/usb1/scratch/mpatel/tmp/my
sage/local/lib/python2.6/UserDict.py", line 22, in __getitem__
raise KeyError(key)
KeyError: 'DOT_SAGE'
**********************************************************************
Welcome to IPython. I will try to create a personal configuration
directory
where you can customize many aspects of IPython's functionality in:
/ipython
Initializing from configuration /mnt/usb1/scratch/mpatel/tmp/my
sage/local/lib/python2.6/site-packages/IPython/UserConfig
WARNING:
There was a problem with the installation:
[Errno 13] Permission denied: '/ipython'
Try to correct it or contact the developers if you think it's a bug.
IPython will proceed with builtin defaults.
Please press <RETURN> to start IPython.
}}}
Similar tickets: #5261 (OS X app bundles), #8303 (command-line arguments).
----
== Documentation to correct / clarify: ==
* {{{$SAGE_ROOT/README.txt}}} (this file gets into the download
directories, too)
* Sage Installation Guide:
* http://www.sagemath.org/doc/installation/quick-guide.html
* http://www.sagemath.org/doc/installation/binary.html
* http://www.sagemath.org/doc/installation/source.html#steps-to-
install-from-source
* Wiki page: http://wiki.sagemath.org/DownloadAndInstallationGuide
Perhaps also put a note onto the download pages for binaries, e.g.
http://boxen.math.washington.edu/sage/linux/64bit/index.html
--
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/9644#comment:18>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica,
and MATLAB
--
You received this message because you are subscribed to the Google Groups
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sage-trac?hl=en.