# Sage, small group library

Is there anyway to call the GAP small group library in the Sage?

4

Hi,

There are two packages:

- gap_packages
- database_gap

this is the second one which contains the database of small groups. After

```
sage -i database_gap
```

the following works

```
sage: G8 = gap.SmallGroup(8,1)
sage: G8
Group( [ f1, f2, f3 ] )
sage: gap.Size(G8)
8
```

Vincent

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "_sage_input_28.py", line 10, in <module> exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 -*-\\n" + _support_.preparse_worksheet_cell(base64.b64decode("c2FnZSAtaSBkYXRhYmFzZV9nYXA="),globals())+"\\n"); execfile(os.path.abspath("___code___.py")) File "", line 1, in <module> File "/private/var/folders/zp/z4nx0jkn1_s3lk7z0ythnx880000gn/T/tmpXoDlQm/___code___.py", line 2 sage -i database_gap ^ SyntaxError: invalid syntax Above is the output I get when I type in 'sage -i database_gap'. Is there any way to fix this?

0

I *believed* it is included in the Gap packages optional Sage package.

```
$ sage -i gap_packages
```

But then

```
sage: gap.eval('SmallGroups(8,1)')
```

gives me an error similar to one from 2009 (!). (Also, it downloads the "wrong" version, not the most up-to-date gap packages package.)

I don't know why that would be, this should be part of it. If no one responds with a better answer soon I'll open a Trac ticket.

you can check the file SAGE_ROOT/build/pkgs/gap_packages/package-version.txt to see the version you'd get installed. You can't just grab an .spkg file from the web and install it. If you want a newer spkg you'd need to update the contents of SAGE_ROOT/build/pkgs/gap_packages/, using git.

Asked: **
2014-07-02 12:45:34 -0500
**

Seen: **623 times**

Last updated: **Jul 03 '14**

Sage 7.4 : sage -i database_gap hangs

Is it better practice to show SAGE code on a web use of SAGE?

How to install guest addition in sage:VERR_PDM_MEDIA_LOCKED

sage 7 installation failed through ppa on ubuntu 14.04

why sagemath cannot see other people' file?

run Python file from command line in Sage

How to locate sage at Python shell

Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.