On Thu, Mar 6, 2014 at 5:27 PM, Barbara Sánta <santa.ba...@gmail.com> wrote: > Hi, HammingCode is working, but I tried: > > C = BinaryReedMullerCode(4,2) > > Traceback (most recent call last): > File "<stdin>", line 1, in <module> > File "_sage_input_2.py", line 10, in <module> > exec compile(u'open("___code___.py","w").write("# -*- coding: utf-8 > -*-\\n" + > _support_.preparse_worksheet_cell(base64.b64decode("QyA9IEJpbmFyeVJlZWRNdWxsZXJDb2RlKDQsMik="),globals())+"\\n"); > execfile(os.path.abspath("___code___.py")) > File "", line 1, in <module> > > File "/tmp/tmplaVR0H/___code___.py", line 3, in <module> > exec compile(u'C = BinaryReedMullerCode(_sage_const_4 ,_sage_const_2 ) > File "", line 1, in <module> > > File > "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/coding/guava.py", > line 73, in BinaryReedMullerCode
It is in guava.py, which means it needs the GAP package Guava to be installed. Hope this helps. > gap.eval("C:=ReedMullerCode("+str(r)+", "+str(k)+")") > File > "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/gap.py", > line 376, in eval > result = Expect.eval(self, input_line, **kwds) > File > "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/expect.py", > line 1242, in eval > for L in code.split('\n') if L != '']) > File > "/usr/local/sage/sage-5.3-linux-64bit-ubuntu_10.04.4_lts-x86_64-Linux/local/lib/python2.7/site-packages/sage/interfaces/gap.py", > line 577, in _eval_line > raise RuntimeError, message > RuntimeError: Gap produced error output > Variable: 'ReedMullerCode' must have a value > > > executing C:=ReedMullerCode(4, 2); > > > What could I do? > > Thanks, > Barbara > > -- > You received this message because you are subscribed to the Google Groups > "sage-support" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to sage-support+unsubscr...@googlegroups.com. > To post to this group, send email to sage-support@googlegroups.com. > Visit this group at http://groups.google.com/group/sage-support. > For more options, visit https://groups.google.com/groups/opt_out. -- You received this message because you are subscribed to the Google Groups "sage-support" group. To unsubscribe from this group and stop receiving emails from it, send an email to sage-support+unsubscr...@googlegroups.com. To post to this group, send email to sage-support@googlegroups.com. Visit this group at http://groups.google.com/group/sage-support. For more options, visit https://groups.google.com/d/optout.