#16702: Raise exceptions when database_gap is not installed
-------------------------+-------------------------------------------------
Reporter: | Owner:
ncohen | Status: needs_review
Type: | Milestone: sage-6.3
enhancement | Resolution:
Priority: major | Merged in:
Component: group | Reviewers:
theory | Work issues:
Keywords: | Commit:
Authors: | 2dbb38d2d5d528971fde504390f903d42969f6ff
Nathann Cohen | Stopgaps:
Report Upstream: N/A |
Branch: |
u/ncohen/16702 |
Dependencies: |
-------------------------+-------------------------------------------------
Comment (by dimpase):
Replying to [comment:5 ncohen]:
> > I am not saying that inside the exception processing block you should
not test for installation of this package.
> > But without `try` your patch is too intrusive.
>
> I don't see why, and I don't see what you would write instead.
e.g.
{{{
def group_id(self):
try:
return [Integer(n) for n in self._gap_().IdGroup()]
except:
if not is_package_installed('database_gap'):
raise RuntimeError("You must install the optional
database_gap package first.")
print "oops..."
raise
}}}
>
> > There are ways to extend GAP and/or Sage in place not involving
installing Sage packages...
>
> I don't understand that.
often it's just copying some files into `$SAGE_LOCAL/gap` that does the
trick.
That is, installing GAP packages (see http://gap-
system.org/Packages/packages.html) often basically amounts to this.
--
Ticket URL: <http://trac.sagemath.org/ticket/16702#comment:6>
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.