Given a sage group object $G$, I want to obtain its structure description using GAP, as follows:
sage: gap.StructureDescription(G)
The command works fine in sagenb.org, but on my local installation I get an error message like this:
RuntimeError Traceback (most recent call last)
/opt/sage-5.3-linux-64bit-ubuntu_12.04.1_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/interface.pyc in __call__(self, *args, **kwds)
...
RuntimeError: Gap produced error output
Error, the Small Groups identification is required but not installed
executing StructureDescription($sage1);
I was thinking that perhaps I need to install the small groups library. I'm using ubuntu, and in the /usr/local/bin directory I typed:
> sudo sage -i database_gap-4.4.9
But I still get the error for the gap.StructureDescription(G) command. How do I get this command to work?
This is an example of installing additional GAP components in just installed Sage 5.13 (version numbers may differ in your particular installation, if you have an older version of Sage):
1) Call
optional_packagesand find names or relevant things (which will hopefully have version numbers matching the core GAP system):2) Call
install_packagefor those components in which you are interested:3) Check how the GAP welcome screen looks like:
In particular, you may be interested in lines
where
small* 1.0, id* 1.0stands for the Small Groups Library, andwhich list some packages that are loaded by default.
4) Now
gap.StructureDescriptionworks:In addition, it may be useful to check "Can non-isomorphic groups have equal structure descriptions?" from the GAP F.A.Q.
Disclaimers
The latest version of GAP available for standalone installation may be newer than the one available with Sage
Not all packages that are redistributed with GAP are available in
gap-packages-...component installed as above (there are 114 packages redistributed with GAP 4.7.2), but there is a way to install additional packages manually. On the other hand, Sage includes the braid package, which has been superseded by MapClass which is now an accepted package redistributed with GAP.