#19622: Automatic error message when packages are not installed
-------------------------------------+-------------------------------------
Reporter: jdemeyer | Owner:
Type: defect | Status: new
Priority: minor | Milestone: sage-6.10
Component: user interface | Resolution:
Keywords: | Merged in:
Authors: Jeroen Demeyer | Reviewers:
Report Upstream: N/A | Work issues:
Branch: | Commit:
u/jdemeyer/better_error_message_when__bliss__is_not_installed|
7d0ab29c3124acf96e066959ef80fe7cdcf0c8b9
Dependencies: | Stopgaps:
-------------------------------------+-------------------------------------
Comment (by jmantysalo):
Replying to [comment:13 jdemeyer]:
> What would you propose as user interface for customizing the message?
SageNB already has Settings-tab when logged in as admin. For command line
it could be a `$SAGE_ROOT/messages.conf`, by default a symlink to
`/etc/sage/messages.conf`.
When this error happens the system should try to open `$SAGE_ROOT` for
writing. If it can, then the message would be "...install with sage
-i...". If not, it would open `$SAGE_ROOT/messages.conf` and print out the
content. If that would not exists, then the default message would be
something like "...ask your system administrator to...".
Rationale: Let's say we have users `root`, `teacher` and `user`. If `user`
installs it, it would be used only for him/her. If `root` install, it will
be on `/usr/local/...` and when installing new version the symlink would
still point to same help text file. If `teacher` installs, and ask
students to run `~teacher/sage/sage`, he/she must manually make the
configuration file after every reinstall.
--
Ticket URL: <http://trac.sagemath.org/ticket/19622#comment:14>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sage-trac.
For more options, visit https://groups.google.com/d/optout.