ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 15 Nov 2017 13:50:49 +0100CoxeterGroup / coxeter3 troublehttps://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/I'm having some trouble using the optional coxeter3 package - can somebody see what I'm doing wrong?
I just built a clean version of sage 8.0, freshly cloned from github, on my ubuntu machine. Then I ran
sage -i coxeter3
as one does; it installed with no errors. It seems to have worked: installed_packages(), for instance, has the line
'coxeter3': '1.1',
and there's a sage.libs.coxeter3 module in the namespace. But, for instance, when I try to use coxeter3 as per the instructions on the Coxeter Groups page in the sage documentation (can't provide a link as karma is too low), I get a RuntimeError:
sage: W = CoxeterGroup(["A",2], implementation='coxeter3')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-12-4f0efd988562> in <module>()
----> 1 W = CoxeterGroup(["A",Integer(2)], implementation='coxeter3')
/home/bjy/build/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/coxeter_group.pyc in CoxeterGroup(data, implementation, base_ring, index_set)
142 from sage.libs.coxeter3.coxeter_group import CoxeterGroup
143 except ImportError:
--> 144 raise RuntimeError("coxeter3 must be installed")
145 else:
146 return CoxeterGroup(cartan_type)
RuntimeError: coxeter3 must be installed
Any help is appreciated! I don't know enough even to start troubleshooting, though I tried the usual kinds of google searches and such.
===============
**Updates:** 'coxeter3' ISN'T in dir(sage.libs) for me, so it looks like the package didn't "fully install", or something. It's entirely possible that I didn't install the package correctly; I still haven't managed to find a clear set of intallation instructions. I did try doing "make build" after 'sage -i coxeter3" as per FrédéricC's comment; my computer churned away for a while, but ultimately it didn't change anything.
Maybe I can more precisely target my question. Where can I find a clear set of instructions for how to install the optional Coxeter3 spkg in a current sage build?
================
***Update 2:*** So, apparently the ting to do is to say
sage -f Coxeter3
sage -b
whereupon everything works - except that dir(sage.libs) still has no mention of Coxeter3, so I'm not sure what's up with that.
For those following along at home: as far as I can see, the first command causes Coxeter3 to be forcefully reinstalled, regardless of what I did beforehand to mess things up; presumably the "-b" in the second command is "build" in some capacity.
Thanks folks!Fri, 03 Nov 2017 23:58:49 +0100https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/Comment by dan_fulea for <p>I'm having some trouble using the optional coxeter3 package - can somebody see what I'm doing wrong?</p>
<p>I just built a clean version of sage 8.0, freshly cloned from github, on my ubuntu machine. Then I ran </p>
<pre><code>sage -i coxeter3
</code></pre>
<p>as one does; it installed with no errors. It seems to have worked: installed_packages(), for instance, has the line</p>
<pre><code> 'coxeter3': '1.1',
</code></pre>
<p>and there's a sage.libs.coxeter3 module in the namespace. But, for instance, when I try to use coxeter3 as per the instructions on the Coxeter Groups page in the sage documentation (can't provide a link as karma is too low), I get a RuntimeError:</p>
<pre><code> sage: W = CoxeterGroup(["A",2], implementation='coxeter3')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-12-4f0efd988562> in <module>()
----> 1 W = CoxeterGroup(["A",Integer(2)], implementation='coxeter3')
/home/bjy/build/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/coxeter_group.pyc in CoxeterGroup(data, implementation, base_ring, index_set)
142 from sage.libs.coxeter3.coxeter_group import CoxeterGroup
143 except ImportError:
--> 144 raise RuntimeError("coxeter3 must be installed")
145 else:
146 return CoxeterGroup(cartan_type)
RuntimeError: coxeter3 must be installed
</code></pre>
<p>Any help is appreciated! I don't know enough even to start troubleshooting, though I tried the usual kinds of google searches and such.</p>
<p>===============</p>
<p><strong>Updates:</strong> 'coxeter3' ISN'T in dir(sage.libs) for me, so it looks like the package didn't "fully install", or something. It's entirely possible that I didn't install the package correctly; I still haven't managed to find a clear set of intallation instructions. I did try doing "make build" after 'sage -i coxeter3" as per FrédéricC's comment; my computer churned away for a while, but ultimately it didn't change anything.</p>
<p>Maybe I can more precisely target my question. Where can I find a clear set of instructions for how to install the optional Coxeter3 spkg in a current sage build?</p>
<p>================</p>
<p><strong><em>Update 2:</em></strong> So, apparently the ting to do is to say </p>
<pre><code>sage -f Coxeter3
sage -b
</code></pre>
<p>whereupon everything works - except that dir(sage.libs) still has no mention of Coxeter3, so I'm not sure what's up with that.</p>
<p>For those following along at home: as far as I can see, the first command causes Coxeter3 to be forcefully reinstalled, regardless of what I did beforehand to mess things up; presumably the "-b" in the second command is "build" in some capacity.</p>
<p>Thanks folks!</p>
https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39390#post-id-39390Is the relevant package shown using `dir( sage.libs )` ?
I do not have coxeter3 installed... However, pari should be always in the list, let me use it instead. In my case, to test if pari is there i would try:
sage: # dir( sage.libs )
sage: 'pari' in dir( sage.libs )
True
sage: print sage.libs.pari
<module 'sage.libs.pari' from '/usr/lib/python2.7/site-packages/sage/libs/pari/__init__.pyc'>
First of all, is `coxeter3` (instead of pari) in there?
(Next we can check which would be an other reason for an `ImportError` ...)Sat, 04 Nov 2017 17:09:27 +0100https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39390#post-id-39390Comment by FrédéricC for <p>I'm having some trouble using the optional coxeter3 package - can somebody see what I'm doing wrong?</p>
<p>I just built a clean version of sage 8.0, freshly cloned from github, on my ubuntu machine. Then I ran </p>
<pre><code>sage -i coxeter3
</code></pre>
<p>as one does; it installed with no errors. It seems to have worked: installed_packages(), for instance, has the line</p>
<pre><code> 'coxeter3': '1.1',
</code></pre>
<p>and there's a sage.libs.coxeter3 module in the namespace. But, for instance, when I try to use coxeter3 as per the instructions on the Coxeter Groups page in the sage documentation (can't provide a link as karma is too low), I get a RuntimeError:</p>
<pre><code> sage: W = CoxeterGroup(["A",2], implementation='coxeter3')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-12-4f0efd988562> in <module>()
----> 1 W = CoxeterGroup(["A",Integer(2)], implementation='coxeter3')
/home/bjy/build/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/coxeter_group.pyc in CoxeterGroup(data, implementation, base_ring, index_set)
142 from sage.libs.coxeter3.coxeter_group import CoxeterGroup
143 except ImportError:
--> 144 raise RuntimeError("coxeter3 must be installed")
145 else:
146 return CoxeterGroup(cartan_type)
RuntimeError: coxeter3 must be installed
</code></pre>
<p>Any help is appreciated! I don't know enough even to start troubleshooting, though I tried the usual kinds of google searches and such.</p>
<p>===============</p>
<p><strong>Updates:</strong> 'coxeter3' ISN'T in dir(sage.libs) for me, so it looks like the package didn't "fully install", or something. It's entirely possible that I didn't install the package correctly; I still haven't managed to find a clear set of intallation instructions. I did try doing "make build" after 'sage -i coxeter3" as per FrédéricC's comment; my computer churned away for a while, but ultimately it didn't change anything.</p>
<p>Maybe I can more precisely target my question. Where can I find a clear set of instructions for how to install the optional Coxeter3 spkg in a current sage build?</p>
<p>================</p>
<p><strong><em>Update 2:</em></strong> So, apparently the ting to do is to say </p>
<pre><code>sage -f Coxeter3
sage -b
</code></pre>
<p>whereupon everything works - except that dir(sage.libs) still has no mention of Coxeter3, so I'm not sure what's up with that.</p>
<p>For those following along at home: as far as I can see, the first command causes Coxeter3 to be forcefully reinstalled, regardless of what I did beforehand to mess things up; presumably the "-b" in the second command is "build" in some capacity.</p>
<p>Thanks folks!</p>
https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39411#post-id-39411Did you do "make build" after 'sage -i coxeter3" ?Tue, 07 Nov 2017 08:06:10 +0100https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39411#post-id-39411Comment by bjy for <p>I'm having some trouble using the optional coxeter3 package - can somebody see what I'm doing wrong?</p>
<p>I just built a clean version of sage 8.0, freshly cloned from github, on my ubuntu machine. Then I ran </p>
<pre><code>sage -i coxeter3
</code></pre>
<p>as one does; it installed with no errors. It seems to have worked: installed_packages(), for instance, has the line</p>
<pre><code> 'coxeter3': '1.1',
</code></pre>
<p>and there's a sage.libs.coxeter3 module in the namespace. But, for instance, when I try to use coxeter3 as per the instructions on the Coxeter Groups page in the sage documentation (can't provide a link as karma is too low), I get a RuntimeError:</p>
<pre><code> sage: W = CoxeterGroup(["A",2], implementation='coxeter3')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-12-4f0efd988562> in <module>()
----> 1 W = CoxeterGroup(["A",Integer(2)], implementation='coxeter3')
/home/bjy/build/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/coxeter_group.pyc in CoxeterGroup(data, implementation, base_ring, index_set)
142 from sage.libs.coxeter3.coxeter_group import CoxeterGroup
143 except ImportError:
--> 144 raise RuntimeError("coxeter3 must be installed")
145 else:
146 return CoxeterGroup(cartan_type)
RuntimeError: coxeter3 must be installed
</code></pre>
<p>Any help is appreciated! I don't know enough even to start troubleshooting, though I tried the usual kinds of google searches and such.</p>
<p>===============</p>
<p><strong>Updates:</strong> 'coxeter3' ISN'T in dir(sage.libs) for me, so it looks like the package didn't "fully install", or something. It's entirely possible that I didn't install the package correctly; I still haven't managed to find a clear set of intallation instructions. I did try doing "make build" after 'sage -i coxeter3" as per FrédéricC's comment; my computer churned away for a while, but ultimately it didn't change anything.</p>
<p>Maybe I can more precisely target my question. Where can I find a clear set of instructions for how to install the optional Coxeter3 spkg in a current sage build?</p>
<p>================</p>
<p><strong><em>Update 2:</em></strong> So, apparently the ting to do is to say </p>
<pre><code>sage -f Coxeter3
sage -b
</code></pre>
<p>whereupon everything works - except that dir(sage.libs) still has no mention of Coxeter3, so I'm not sure what's up with that.</p>
<p>For those following along at home: as far as I can see, the first command causes Coxeter3 to be forcefully reinstalled, regardless of what I did beforehand to mess things up; presumably the "-b" in the second command is "build" in some capacity.</p>
<p>Thanks folks!</p>
https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39407#post-id-39407aha! you are right, coxeter3 is NOT in dir(sage.libs)! I've done something wrong in the installation process, then. Thank you! Do you know whether there is a clear set of instructions, somewhere, for how to install an optional spkg? I had a lot of difficulty looking this up in the manual.Mon, 06 Nov 2017 22:34:09 +0100https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39407#post-id-39407Comment by vdelecroix for <p>I'm having some trouble using the optional coxeter3 package - can somebody see what I'm doing wrong?</p>
<p>I just built a clean version of sage 8.0, freshly cloned from github, on my ubuntu machine. Then I ran </p>
<pre><code>sage -i coxeter3
</code></pre>
<p>as one does; it installed with no errors. It seems to have worked: installed_packages(), for instance, has the line</p>
<pre><code> 'coxeter3': '1.1',
</code></pre>
<p>and there's a sage.libs.coxeter3 module in the namespace. But, for instance, when I try to use coxeter3 as per the instructions on the Coxeter Groups page in the sage documentation (can't provide a link as karma is too low), I get a RuntimeError:</p>
<pre><code> sage: W = CoxeterGroup(["A",2], implementation='coxeter3')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-12-4f0efd988562> in <module>()
----> 1 W = CoxeterGroup(["A",Integer(2)], implementation='coxeter3')
/home/bjy/build/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/coxeter_group.pyc in CoxeterGroup(data, implementation, base_ring, index_set)
142 from sage.libs.coxeter3.coxeter_group import CoxeterGroup
143 except ImportError:
--> 144 raise RuntimeError("coxeter3 must be installed")
145 else:
146 return CoxeterGroup(cartan_type)
RuntimeError: coxeter3 must be installed
</code></pre>
<p>Any help is appreciated! I don't know enough even to start troubleshooting, though I tried the usual kinds of google searches and such.</p>
<p>===============</p>
<p><strong>Updates:</strong> 'coxeter3' ISN'T in dir(sage.libs) for me, so it looks like the package didn't "fully install", or something. It's entirely possible that I didn't install the package correctly; I still haven't managed to find a clear set of intallation instructions. I did try doing "make build" after 'sage -i coxeter3" as per FrédéricC's comment; my computer churned away for a while, but ultimately it didn't change anything.</p>
<p>Maybe I can more precisely target my question. Where can I find a clear set of instructions for how to install the optional Coxeter3 spkg in a current sage build?</p>
<p>================</p>
<p><strong><em>Update 2:</em></strong> So, apparently the ting to do is to say </p>
<pre><code>sage -f Coxeter3
sage -b
</code></pre>
<p>whereupon everything works - except that dir(sage.libs) still has no mention of Coxeter3, so I'm not sure what's up with that.</p>
<p>For those following along at home: as far as I can see, the first command causes Coxeter3 to be forcefully reinstalled, regardless of what I did beforehand to mess things up; presumably the "-b" in the second command is "build" in some capacity.</p>
<p>Thanks folks!</p>
https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39503#post-id-39503Installation works for me. Try
$ sage -f coxeter3
$ sage -bSat, 11 Nov 2017 20:23:14 +0100https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39503#post-id-39503Comment by vdelecroix for <p>I'm having some trouble using the optional coxeter3 package - can somebody see what I'm doing wrong?</p>
<p>I just built a clean version of sage 8.0, freshly cloned from github, on my ubuntu machine. Then I ran </p>
<pre><code>sage -i coxeter3
</code></pre>
<p>as one does; it installed with no errors. It seems to have worked: installed_packages(), for instance, has the line</p>
<pre><code> 'coxeter3': '1.1',
</code></pre>
<p>and there's a sage.libs.coxeter3 module in the namespace. But, for instance, when I try to use coxeter3 as per the instructions on the Coxeter Groups page in the sage documentation (can't provide a link as karma is too low), I get a RuntimeError:</p>
<pre><code> sage: W = CoxeterGroup(["A",2], implementation='coxeter3')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-12-4f0efd988562> in <module>()
----> 1 W = CoxeterGroup(["A",Integer(2)], implementation='coxeter3')
/home/bjy/build/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/coxeter_group.pyc in CoxeterGroup(data, implementation, base_ring, index_set)
142 from sage.libs.coxeter3.coxeter_group import CoxeterGroup
143 except ImportError:
--> 144 raise RuntimeError("coxeter3 must be installed")
145 else:
146 return CoxeterGroup(cartan_type)
RuntimeError: coxeter3 must be installed
</code></pre>
<p>Any help is appreciated! I don't know enough even to start troubleshooting, though I tried the usual kinds of google searches and such.</p>
<p>===============</p>
<p><strong>Updates:</strong> 'coxeter3' ISN'T in dir(sage.libs) for me, so it looks like the package didn't "fully install", or something. It's entirely possible that I didn't install the package correctly; I still haven't managed to find a clear set of intallation instructions. I did try doing "make build" after 'sage -i coxeter3" as per FrédéricC's comment; my computer churned away for a while, but ultimately it didn't change anything.</p>
<p>Maybe I can more precisely target my question. Where can I find a clear set of instructions for how to install the optional Coxeter3 spkg in a current sage build?</p>
<p>================</p>
<p><strong><em>Update 2:</em></strong> So, apparently the ting to do is to say </p>
<pre><code>sage -f Coxeter3
sage -b
</code></pre>
<p>whereupon everything works - except that dir(sage.libs) still has no mention of Coxeter3, so I'm not sure what's up with that.</p>
<p>For those following along at home: as far as I can see, the first command causes Coxeter3 to be forcefully reinstalled, regardless of what I did beforehand to mess things up; presumably the "-b" in the second command is "build" in some capacity.</p>
<p>Thanks folks!</p>
https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39564#post-id-39564Could you confirm that the following works
sage: from sage.libs import coxeter3
sage: dir(sage.libs) # now coxeter3 should appearWed, 15 Nov 2017 13:50:49 +0100https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39564#post-id-39564Comment by bjy for <p>I'm having some trouble using the optional coxeter3 package - can somebody see what I'm doing wrong?</p>
<p>I just built a clean version of sage 8.0, freshly cloned from github, on my ubuntu machine. Then I ran </p>
<pre><code>sage -i coxeter3
</code></pre>
<p>as one does; it installed with no errors. It seems to have worked: installed_packages(), for instance, has the line</p>
<pre><code> 'coxeter3': '1.1',
</code></pre>
<p>and there's a sage.libs.coxeter3 module in the namespace. But, for instance, when I try to use coxeter3 as per the instructions on the Coxeter Groups page in the sage documentation (can't provide a link as karma is too low), I get a RuntimeError:</p>
<pre><code> sage: W = CoxeterGroup(["A",2], implementation='coxeter3')
---------------------------------------------------------------------------
RuntimeError Traceback (most recent call last)
<ipython-input-12-4f0efd988562> in <module>()
----> 1 W = CoxeterGroup(["A",Integer(2)], implementation='coxeter3')
/home/bjy/build/sage/local/lib/python2.7/site-packages/sage/combinat/root_system/coxeter_group.pyc in CoxeterGroup(data, implementation, base_ring, index_set)
142 from sage.libs.coxeter3.coxeter_group import CoxeterGroup
143 except ImportError:
--> 144 raise RuntimeError("coxeter3 must be installed")
145 else:
146 return CoxeterGroup(cartan_type)
RuntimeError: coxeter3 must be installed
</code></pre>
<p>Any help is appreciated! I don't know enough even to start troubleshooting, though I tried the usual kinds of google searches and such.</p>
<p>===============</p>
<p><strong>Updates:</strong> 'coxeter3' ISN'T in dir(sage.libs) for me, so it looks like the package didn't "fully install", or something. It's entirely possible that I didn't install the package correctly; I still haven't managed to find a clear set of intallation instructions. I did try doing "make build" after 'sage -i coxeter3" as per FrédéricC's comment; my computer churned away for a while, but ultimately it didn't change anything.</p>
<p>Maybe I can more precisely target my question. Where can I find a clear set of instructions for how to install the optional Coxeter3 spkg in a current sage build?</p>
<p>================</p>
<p><strong><em>Update 2:</em></strong> So, apparently the ting to do is to say </p>
<pre><code>sage -f Coxeter3
sage -b
</code></pre>
<p>whereupon everything works - except that dir(sage.libs) still has no mention of Coxeter3, so I'm not sure what's up with that.</p>
<p>For those following along at home: as far as I can see, the first command causes Coxeter3 to be forcefully reinstalled, regardless of what I did beforehand to mess things up; presumably the "-b" in the second command is "build" in some capacity.</p>
<p>Thanks folks!</p>
https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39548#post-id-39548actually, yeah, that did work! That said, there's STILL no mention of Coxeter3 in dir(sage.libs), but suddenly everything works. I did not know the incantation "sage -b". Thanks so much!Tue, 14 Nov 2017 18:55:42 +0100https://ask.sagemath.org/question/39389/coxetergroup-coxeter3-trouble/?comment=39548#post-id-39548