Hi Nathann,
you need to load the package explicitly:

sage: gap.load_package("design")
sage: WittDesign(23)
Incidence structure with 23 points and 253 blocks
sage:

and GAP package "design" is in an optional spkg gap_packages-...

sage: optional_packages()
(['database_gap-4.4.12.p0', 'gap_packages-4.4.12.p0'....

If you need anything on design-related stuff reviewed quickly, I might
be able to
do it (e.g. I can still recall the definition of a Witt design if one
wakes
me up in the middle of the night :-))
so put me in CC:

Cheers from Rennes,
Dima



On Jun 4, 12:00 pm, Nathann Cohen <[email protected]> wrote:
> Hello everybody !!!
>
> I just gave this a try a second ago :
>
> sage: WittDesign(23)
> ERROR: An unexpected error occurred while tokenizing input
> The following traceback may be corrupted or invalid
> The error message is: ('EOF in multi-line statement', (47, 0))
>
> ---------------------------------------------------------------------------
> RuntimeError                              Traceback (most recent call last)
>
> /auto/sop-nas2a/u/sop-nas2a/vol/home_mascotte/ncohen/<ipython console>
> in <module>()
>
> /usr/local/sage/local/lib/python2.6/site-packages/sage/combinat/designs/blo 
> ck_design.pyc
> in WittDesign(n)
>     198     from sage.interfaces.gap import gap, GapElement
>     199     gap.eval('LoadPackage("design")')
> --> 200     gap.eval("B:=WittDesign(%s)"%n)
>     201     v = eval(gap.eval("B.v"))
>     202     gblcks = eval(gap.eval("B.blocks"))
>
> /usr/local/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc
> in eval(self, x, newlines, strip, **kwds)
>     478             input_line += ';'
>     479
> --> 480         result = Expect.eval(self, input_line, **kwds)
>     481
>     482         if not newlines:
>
> /usr/local/sage/local/lib/python2.6/site-packages/sage/interfaces/expect.py c
> in eval(self, code, strip, synchronize, locals, **kwds)
>     981         try:
>     982             with gc_disabled():
> --> 983                 return '\n'.join([self._eval_line(L, **kwds)
> for L in code.split('\n') if L != ''])
>     984         except KeyboardInterrupt:
>     985             # DO NOT CATCH KeyboardInterrupt, as it is being caught
>
> /usr/local/sage/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc
> in _eval_line(self, line, allow_use_file, wait_for_prompt)
>     720                         return ''
>     721                 else:
> --> 722                     raise RuntimeError, message
>     723
>     724         except KeyboardInterrupt:
>
> RuntimeError: Gap produced error output
> Variable: 'WittDesign' must have a value
>
>    executing B:=WittDesign(23);
> sage:
>
> Though this is exactly where my knowledge of Gap, its interfacing, and
> Witt designs ends... I just read the definition and wanted to know
> what Sage knew of it :-)
>
> Nathann

-- 
To post to this group, send an email to [email protected]
To unsubscribe from this group, send an email to 
[email protected]
For more options, visit this group at http://groups.google.com/group/sage-devel
URL: http://www.sagemath.org

Reply via email to