ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 22 Jul 2014 18:39:24 -0500Sage, small group libraryhttp://ask.sagemath.org/question/23168/sage-small-group-library/Is there anyway to call the GAP small group library in the Sage? Wed, 02 Jul 2014 12:45:34 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/Answer by vdelecroix for <p>Is there anyway to call the GAP small group library in the Sage? </p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?answer=23178#post-id-23178Hi,
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
VincentThu, 03 Jul 2014 03:08:44 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?answer=23178#post-id-23178Comment by vdelecroix for <p>Hi,</p>
<p>There are two packages:</p>
<ul>
<li>gap_packages</li>
<li>database_gap</li>
</ul>
<p>this is the second one which contains the database of small groups. After</p>
<pre><code>sage -i database_gap
</code></pre>
<p>the following works</p>
<pre><code>sage: G8 = gap.SmallGroup(8,1)
sage: G8
Group( [ f1, f2, f3 ] )
sage: gap.Size(G8)
8
</code></pre>
<p>Vincent</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23353#post-id-23353do "sage -i database_gap"Thu, 10 Jul 2014 13:28:00 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23353#post-id-23353Comment by ahannahan for <p>Hi,</p>
<p>There are two packages:</p>
<ul>
<li>gap_packages</li>
<li>database_gap</li>
</ul>
<p>this is the second one which contains the database of small groups. After</p>
<pre><code>sage -i database_gap
</code></pre>
<p>the following works</p>
<pre><code>sage: G8 = gap.SmallGroup(8,1)
sage: G8
Group( [ f1, f2, f3 ] )
sage: gap.Size(G8)
8
</code></pre>
<p>Vincent</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23352#post-id-23352It still won't allow me to download the 'database_gap-4.6.4' package which is available in the optional_package list. the output error reads "ValueError: There is no package name starting with 'database_gap-4.6.4'." I'm sorry I'm bad with programs and don't know what to do about this errorThu, 10 Jul 2014 12:38:19 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23352#post-id-23352Comment by kcrisman for <p>Hi,</p>
<p>There are two packages:</p>
<ul>
<li>gap_packages</li>
<li>database_gap</li>
</ul>
<p>this is the second one which contains the database of small groups. After</p>
<pre><code>sage -i database_gap
</code></pre>
<p>the following works</p>
<pre><code>sage: G8 = gap.SmallGroup(8,1)
sage: G8
Group( [ f1, f2, f3 ] )
sage: gap.Size(G8)
8
</code></pre>
<p>Vincent</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23290#post-id-23290http://www.sagemath.org/doc/reference/misc/sage/misc/package.html#sage.misc.package.install_packageTue, 08 Jul 2014 19:35:25 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23290#post-id-23290Comment by ahannahan for <p>Hi,</p>
<p>There are two packages:</p>
<ul>
<li>gap_packages</li>
<li>database_gap</li>
</ul>
<p>this is the second one which contains the database of small groups. After</p>
<pre><code>sage -i database_gap
</code></pre>
<p>the following works</p>
<pre><code>sage: G8 = gap.SmallGroup(8,1)
sage: G8
Group( [ f1, f2, f3 ] )
sage: gap.Size(G8)
8
</code></pre>
<p>Vincent</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23279#post-id-23279How do you do that? What is the syntax for the command?Tue, 08 Jul 2014 13:03:58 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23279#post-id-23279Comment by kcrisman for <p>Hi,</p>
<p>There are two packages:</p>
<ul>
<li>gap_packages</li>
<li>database_gap</li>
</ul>
<p>this is the second one which contains the database of small groups. After</p>
<pre><code>sage -i database_gap
</code></pre>
<p>the following works</p>
<pre><code>sage: G8 = gap.SmallGroup(8,1)
sage: G8
Group( [ f1, f2, f3 ] )
sage: gap.Size(G8)
8
</code></pre>
<p>Vincent</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23276#post-id-23276Ah! You have to do it from outside Sage, or perhaps from inside using the `install_package` command.Tue, 08 Jul 2014 12:21:13 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23276#post-id-23276Comment by ahannahan for <p>Hi,</p>
<p>There are two packages:</p>
<ul>
<li>gap_packages</li>
<li>database_gap</li>
</ul>
<p>this is the second one which contains the database of small groups. After</p>
<pre><code>sage -i database_gap
</code></pre>
<p>the following works</p>
<pre><code>sage: G8 = gap.SmallGroup(8,1)
sage: G8
Group( [ f1, f2, f3 ] )
sage: gap.Size(G8)
8
</code></pre>
<p>Vincent</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23275#post-id-23275Traceback (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?Tue, 08 Jul 2014 12:12:26 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23275#post-id-23275Comment by kcrisman for <p>Hi,</p>
<p>There are two packages:</p>
<ul>
<li>gap_packages</li>
<li>database_gap</li>
</ul>
<p>this is the second one which contains the database of small groups. After</p>
<pre><code>sage -i database_gap
</code></pre>
<p>the following works</p>
<pre><code>sage: G8 = gap.SmallGroup(8,1)
sage: G8
Group( [ f1, f2, f3 ] )
sage: gap.Size(G8)
8
</code></pre>
<p>Vincent</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23186#post-id-23186Hmm, this should *really* be better documented! One of the "sample questions" at the Sage SX proposal is even about this. Can you think of where a good place for that would be?Thu, 03 Jul 2014 08:09:17 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23186#post-id-23186Answer by kcrisman for <p>Is there anyway to call the GAP small group library in the Sage? </p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?answer=23169#post-id-23169I *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.Wed, 02 Jul 2014 13:46:08 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?answer=23169#post-id-23169Comment by Dima for <p>I <em>believed</em> it is included in the Gap packages optional Sage package.</p>
<pre><code>$ sage -i gap_packages
</code></pre>
<p>But then </p>
<pre><code>sage: gap.eval('SmallGroups(8,1)')
</code></pre>
<p>gives me an error similar to one from 2009 (!). (Also, it downloads the "wrong" version, not the most up-to-date gap packages package.) </p>
<p>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.</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23240#post-id-23240Well, the new style packages are safer to use, as you won't be able to install an incompatible spkg. What is really annoying is that not all packages are already converted to the new style.Sun, 06 Jul 2014 03:28:32 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23240#post-id-23240Comment by alexander konovalov for <p>I <em>believed</em> it is included in the Gap packages optional Sage package.</p>
<pre><code>$ sage -i gap_packages
</code></pre>
<p>But then </p>
<pre><code>sage: gap.eval('SmallGroups(8,1)')
</code></pre>
<p>gives me an error similar to one from 2009 (!). (Also, it downloads the "wrong" version, not the most up-to-date gap packages package.) </p>
<p>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.</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23540#post-id-23540There is probably a typo in the question, not in what you've really tried - in `gap.eval('SmallGroups(8,1)')` one should use "SmallGroup" without trailing 's'Tue, 22 Jul 2014 18:39:24 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23540#post-id-23540Comment by kcrisman for <p>I <em>believed</em> it is included in the Gap packages optional Sage package.</p>
<pre><code>$ sage -i gap_packages
</code></pre>
<p>But then </p>
<pre><code>sage: gap.eval('SmallGroups(8,1)')
</code></pre>
<p>gives me an error similar to one from 2009 (!). (Also, it downloads the "wrong" version, not the most up-to-date gap packages package.) </p>
<p>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.</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23250#post-id-23250Also true, but there should still be an EASY way to install them that doesn't involve manual download and move. Also, then `sage -i` should have some sort of deprecation warning, which I don't believe it does. (Does it?) http://www.sagemath.org/packages/upstream/ doesn't have any instructions. Even [the developer guide](http://www.sagemath.org/doc/developer/packaging.html#manual-package-build-and-installation) says you have to do this manually. Yuck.Mon, 07 Jul 2014 07:39:07 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23250#post-id-23250Comment by kcrisman for <p>I <em>believed</em> it is included in the Gap packages optional Sage package.</p>
<pre><code>$ sage -i gap_packages
</code></pre>
<p>But then </p>
<pre><code>sage: gap.eval('SmallGroups(8,1)')
</code></pre>
<p>gives me an error similar to one from 2009 (!). (Also, it downloads the "wrong" version, not the most up-to-date gap packages package.) </p>
<p>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.</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23233#post-id-23233That is really annoying. One should just be able to do something analogous to the old `./sage -f spkg-name` to get an upgrade.Sat, 05 Jul 2014 16:30:26 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23233#post-id-23233Comment by Dima for <p>I <em>believed</em> it is included in the Gap packages optional Sage package.</p>
<pre><code>$ sage -i gap_packages
</code></pre>
<p>But then </p>
<pre><code>sage: gap.eval('SmallGroups(8,1)')
</code></pre>
<p>gives me an error similar to one from 2009 (!). (Also, it downloads the "wrong" version, not the most up-to-date gap packages package.) </p>
<p>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.</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23217#post-id-23217you 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.Fri, 04 Jul 2014 16:01:57 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23217#post-id-23217Comment by kcrisman for <p>I <em>believed</em> it is included in the Gap packages optional Sage package.</p>
<pre><code>$ sage -i gap_packages
</code></pre>
<p>But then </p>
<pre><code>sage: gap.eval('SmallGroups(8,1)')
</code></pre>
<p>gives me an error similar to one from 2009 (!). (Also, it downloads the "wrong" version, not the most up-to-date gap packages package.) </p>
<p>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.</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23216#post-id-23216So, how does one install the "new style" packages? This should really be doable in a one-liner that is does not involve manually downloading things...Fri, 04 Jul 2014 09:52:58 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23216#post-id-23216Comment by Dima for <p>I <em>believed</em> it is included in the Gap packages optional Sage package.</p>
<pre><code>$ sage -i gap_packages
</code></pre>
<p>But then </p>
<pre><code>sage: gap.eval('SmallGroups(8,1)')
</code></pre>
<p>gives me an error similar to one from 2009 (!). (Also, it downloads the "wrong" version, not the most up-to-date gap packages package.) </p>
<p>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.</p>
http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23211#post-id-23211they are "new style" packages, that is, they are two thing - a tar ball and an entry in SAGE_ROOT/build/, and you need to place the right tarball into SAGE_ROOT/upstream/ for this to work. It's a problem not specific to GAP-related optional packages.Fri, 04 Jul 2014 08:09:39 -0500http://ask.sagemath.org/question/23168/sage-small-group-library/?comment=23211#post-id-23211