ASKSAGE: Sage Q&A Forum - Individual question feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Mon, 21 Sep 2020 22:24:36 -0500How to install an spkg (the one for GRDB Fano polytopes)?https://ask.sagemath.org/question/53526/how-to-install-an-spkg-the-one-for-grdb-fano-polytopes/Hi,
I would like to install the grdb_polytopes-0.1 spkg which is from
[Trac #13282](https://trac.sagemath.org/ticket/13282)
(sorry I'm new to ask sage and does not have enough karma to publish links).
However, I tried different ways including:
sage -i /grdb_polytopes-0.1.spkg
and
sage -i [the link on that webpage (the "coates" one)]
(again, my apology but I cannot publish a link)
But the first one says:
> name 'grdb_polytopes' is not defined
and the second one says:
> invalid syntax
How should I install the spkg?
Many thanks!Mon, 21 Sep 2020 04:13:40 -0500https://ask.sagemath.org/question/53526/how-to-install-an-spkg-the-one-for-grdb-fano-polytopes/Answer by John Palmieri for <p>Hi,</p>
<p>I would like to install the grdb_polytopes-0.1 spkg which is from</p>
<p><a href="https://trac.sagemath.org/ticket/13282">Trac #13282</a></p>
<p>(sorry I'm new to ask sage and does not have enough karma to publish links).</p>
<p>However, I tried different ways including:</p>
<pre><code>sage -i /grdb_polytopes-0.1.spkg
</code></pre>
<p>and</p>
<pre><code>sage -i [the link on that webpage (the "coates" one)]
</code></pre>
<p>(again, my apology but I cannot publish a link)</p>
<p>But the first one says:</p>
<blockquote>
<p>name 'grdb_polytopes' is not defined</p>
</blockquote>
<p>and the second one says:</p>
<blockquote>
<p>invalid syntax</p>
</blockquote>
<p>How should I install the spkg?
Many thanks!</p>
https://ask.sagemath.org/question/53526/how-to-install-an-spkg-the-one-for-grdb-fano-polytopes/?answer=53529#post-id-53529This is an "old-style" Sage SPKG, and those are no longer supported.
The way to try to install, which would be unsuccessful, is to download the file from http://coates.ma.ic.ac.uk/grdb_polytopes-0.1.spkg, then run `sage -i /path/to/grdb_polytopes-0.1.spkg`. This will fail with the message
Error: package '/Users/palmieri/Downloads/grdb_polytopes-0.1.spkg' not found
Note: if it is an old-style package, installing these is no longer supported
I don't see any easy way to work around this. You can still look at the data: this `spkg` file is just a compressed tarball, so you can download it and then run `tar xf grdb_polytopes-0.1.spkg` and then look at the data files in `grdb_polytopes-0.1.spkg/src`.Mon, 21 Sep 2020 10:43:35 -0500https://ask.sagemath.org/question/53526/how-to-install-an-spkg-the-one-for-grdb-fano-polytopes/?answer=53529#post-id-53529Comment by psimiuniu for <p>This is an "old-style" Sage SPKG, and those are no longer supported. </p>
<p>The way to try to install, which would be unsuccessful, is to download the file from <a href="http://coates.ma.ic.ac.uk/grdb_polytopes-0.1.spkg">http://coates.ma.ic.ac.uk/grdb_polyto...</a>, then run <code>sage -i /path/to/grdb_polytopes-0.1.spkg</code>. This will fail with the message</p>
<pre><code>Error: package '/Users/palmieri/Downloads/grdb_polytopes-0.1.spkg' not found
Note: if it is an old-style package, installing these is no longer supported
</code></pre>
<p>I don't see any easy way to work around this. You can still look at the data: this <code>spkg</code> file is just a compressed tarball, so you can download it and then run <code>tar xf grdb_polytopes-0.1.spkg</code> and then look at the data files in <code>grdb_polytopes-0.1.spkg/src</code>.</p>
https://ask.sagemath.org/question/53526/how-to-install-an-spkg-the-one-for-grdb-fano-polytopes/?comment=53537#post-id-53537I see. Thank you so much!Mon, 21 Sep 2020 22:24:36 -0500https://ask.sagemath.org/question/53526/how-to-install-an-spkg-the-one-for-grdb-fano-polytopes/?comment=53537#post-id-53537