[sage-support] Re: Small groups library is missing

2009-03-16 Thread davidp

That works.  Thanks a lot.

Dave


On Mar 16, 3:54 pm, David Joyner  wrote:
> Please try
>
> http://sage.math.washington.edu/home/wdj/patches/gap_packages-4.4.12_...http://sage.math.washington.edu/home/wdj/patches/database_gap-4.4.12
>
> instead. If you have problem, please email me.
>
> Thanks.
>
> On Mon, Mar 16, 2009 at 6:50 PM, davidp  wrote:
>
> > I have just installed Sage 3.4, database_gap-4.4.10, and
> > gap_packages-4.4.10_6.  It seems that I can't access 'SmallGroups':
>
> > sage: gap.eval('SmallGroups(8,1)')
> > ---
> > RuntimeError                              Traceback (most recent call
> > last)
>
> > /home/davidp/download/ in ()
>
> > /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> > site-packages/sage/interfaces/gap.pyc in eval(self, x, newlines,
> > strip, **kwds)
> >    477             input_line += ';'
> >    478
> > --> 479         result = Expect.eval(self, input_line, **kwds)
> >    480
> >    481         if not newlines:
>
> > /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> > site-packages/sage/interfaces/expect.pyc in eval(self, code, strip,
> > synchronize, locals, **kwds)
> >    972         try:
> >    973             with gc_disabled():
> > --> 974                 return '\n'.join([self._eval_line(L, **kwds)
> > for L in code.split('\n') if L != ''])
> >    975         except KeyboardInterrupt:
> >    976             # DO NOT CATCH KeyboardInterrupt, as it is being
> > caught
>
> > /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> > site-packages/sage/interfaces/gap.pyc in _eval_line(self, line,
> > allow_use_file, wait_for_prompt)
> >    721                         return ''
> >    722                 else:
> > --> 723                     raise RuntimeError, message
> >    724
> >    725         except KeyboardInterrupt:
>
> > RuntimeError: Gap produced error output
> > Variable: 'SmallGroups' must have a value
>
> >   executingSmallGroups(8,1);
> > sage: gap('SmallGroup(8,1)')
> > ---
> > TypeError                                 Traceback (most recent call
> > last)
>
> > /home/davidp/download/ in ()
>
> > /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> > site-packages/sage/interfaces/expect.pyc in __call__(self, x, name)
> >   1000             return x
> >   1001         if isinstance(x, basestring):
> > -> 1002             return cls(self, x, name=name)
> >   1003         try:
> >   1004             return self._coerce_from_special_method(x)
>
> > /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> > site-packages/sage/interfaces/expect.pyc in __init__(self, parent,
> > value, is_name, name)
> >   1375             except (TypeError, KeyboardInterrupt,
> > RuntimeError, ValueError), x:
> >   1376                 self._session_number = -1
> > -> 1377                 raise TypeError, x
> >   1378         self._session_number = parent._session_number
> >   1379
>
> > TypeError: Gap produced error output
> > Error, the Small Groups library is required but not installed
>
> >   executing $sage1:=SmallGroup(8,1);;
>
> > I am running Sage under Fedora 10, 32bit.  The command "sage -i"
> > seemed to install the two packages without complaint.
>
> > So is this still a known problem?
>
> > Thanks,
> > Dave
>
> > On Mar 2, 6:33 pm, David Joyner  wrote:
> >> On Mon, Mar 2, 2009 at 3:51 PM, David Joyner  wrote:
> >> > I am trying and failing to get the sage-install script to work.
>
> >> ...
>
> >> > 
> >> > /bin/ls: cannot access gap-*.spkg: No such file or directory
>
> >> > /bin/ls: cannot access gap-*.spkg: No such file or directory
> >> > ./spkg-install: line 13: patches: command not found
>
> >> > ./spkg-install: line 14: Installing: command not found
>
> >> > ./spkg-install: line 15: Installing: command not found
>
> >> > ./spkg-install: line 16: patches: command not found
>
> >> > 
> >> > 
>
> >> > Does anyone have an idea what the problem could be?
>
> >> I finally figured out that (a) I was in the wrong directory
> >> and (b) spaces matter for shell scripts. It now works in Linux.
> >> I'm going to test in on a mac OS 10.4 and then post a link to the trac 
> >> ticket
> >> if that works.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-16 Thread David Joyner

Please try

http://sage.math.washington.edu/home/wdj/patches/gap_packages-4.4.12_1.spkg
http://sage.math.washington.edu/home/wdj/patches/database_gap-4.4.12.spkg

instead. If you have problem, please email me.

Thanks.


On Mon, Mar 16, 2009 at 6:50 PM, davidp  wrote:
>
> I have just installed Sage 3.4, database_gap-4.4.10, and
> gap_packages-4.4.10_6.  It seems that I can't access 'SmallGroups':
>
> sage: gap.eval('SmallGroups(8,1)')
> ---
> RuntimeError                              Traceback (most recent call
> last)
>
> /home/davidp/download/ in ()
>
> /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> site-packages/sage/interfaces/gap.pyc in eval(self, x, newlines,
> strip, **kwds)
>    477             input_line += ';'
>    478
> --> 479         result = Expect.eval(self, input_line, **kwds)
>    480
>    481         if not newlines:
>
> /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> site-packages/sage/interfaces/expect.pyc in eval(self, code, strip,
> synchronize, locals, **kwds)
>    972         try:
>    973             with gc_disabled():
> --> 974                 return '\n'.join([self._eval_line(L, **kwds)
> for L in code.split('\n') if L != ''])
>    975         except KeyboardInterrupt:
>    976             # DO NOT CATCH KeyboardInterrupt, as it is being
> caught
>
> /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> site-packages/sage/interfaces/gap.pyc in _eval_line(self, line,
> allow_use_file, wait_for_prompt)
>    721                         return ''
>    722                 else:
> --> 723                     raise RuntimeError, message
>    724
>    725         except KeyboardInterrupt:
>
> RuntimeError: Gap produced error output
> Variable: 'SmallGroups' must have a value
>
>
>   executing SmallGroups(8,1);
> sage: gap('SmallGroup(8,1)')
> ---
> TypeError                                 Traceback (most recent call
> last)
>
> /home/davidp/download/ in ()
>
> /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> site-packages/sage/interfaces/expect.pyc in __call__(self, x, name)
>   1000             return x
>   1001         if isinstance(x, basestring):
> -> 1002             return cls(self, x, name=name)
>   1003         try:
>   1004             return self._coerce_from_special_method(x)
>
> /usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
> site-packages/sage/interfaces/expect.pyc in __init__(self, parent,
> value, is_name, name)
>   1375             except (TypeError, KeyboardInterrupt,
> RuntimeError, ValueError), x:
>   1376                 self._session_number = -1
> -> 1377                 raise TypeError, x
>   1378         self._session_number = parent._session_number
>   1379
>
> TypeError: Gap produced error output
> Error, the Small Groups library is required but not installed
>
>   executing $sage1:=SmallGroup(8,1);;
>
>
> I am running Sage under Fedora 10, 32bit.  The command "sage -i"
> seemed to install the two packages without complaint.
>
> So is this still a known problem?
>
> Thanks,
> Dave
>
> On Mar 2, 6:33 pm, David Joyner  wrote:
>> On Mon, Mar 2, 2009 at 3:51 PM, David Joyner  wrote:
>> > I am trying and failing to get the sage-install script to work.
>>
>> ...
>>
>>
>>
>> > 
>> > /bin/ls: cannot access gap-*.spkg: No such file or directory
>>
>> > /bin/ls: cannot access gap-*.spkg: No such file or directory
>> > ./spkg-install: line 13: patches: command not found
>>
>> > ./spkg-install: line 14: Installing: command not found
>>
>> > ./spkg-install: line 15: Installing: command not found
>>
>> > ./spkg-install: line 16: patches: command not found
>>
>> > 
>> > 
>>
>> > Does anyone have an idea what the problem could be?
>>
>> I finally figured out that (a) I was in the wrong directory
>> and (b) spaces matter for shell scripts. It now works in Linux.
>> I'm going to test in on a mac OS 10.4 and then post a link to the trac ticket
>> if that works.
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-16 Thread davidp

I have just installed Sage 3.4, database_gap-4.4.10, and
gap_packages-4.4.10_6.  It seems that I can't access 'SmallGroups':

sage: gap.eval('SmallGroups(8,1)')
---
RuntimeError  Traceback (most recent call
last)

/home/davidp/download/ in ()

/usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
site-packages/sage/interfaces/gap.pyc in eval(self, x, newlines,
strip, **kwds)
477 input_line += ';'
478
--> 479 result = Expect.eval(self, input_line, **kwds)
480
481 if not newlines:

/usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
site-packages/sage/interfaces/expect.pyc in eval(self, code, strip,
synchronize, locals, **kwds)
972 try:
973 with gc_disabled():
--> 974 return '\n'.join([self._eval_line(L, **kwds)
for L in code.split('\n') if L != ''])
975 except KeyboardInterrupt:
976 # DO NOT CATCH KeyboardInterrupt, as it is being
caught

/usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
site-packages/sage/interfaces/gap.pyc in _eval_line(self, line,
allow_use_file, wait_for_prompt)
721 return ''
722 else:
--> 723 raise RuntimeError, message
724
725 except KeyboardInterrupt:

RuntimeError: Gap produced error output
Variable: 'SmallGroups' must have a value


   executing SmallGroups(8,1);
sage: gap('SmallGroup(8,1)')
---
TypeError Traceback (most recent call
last)

/home/davidp/download/ in ()

/usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
site-packages/sage/interfaces/expect.pyc in __call__(self, x, name)
   1000 return x
   1001 if isinstance(x, basestring):
-> 1002 return cls(self, x, name=name)
   1003 try:
   1004 return self._coerce_from_special_method(x)

/usr/local/sage-3.4-Fedora_release_9-i686-Linux/local/lib/python2.5/
site-packages/sage/interfaces/expect.pyc in __init__(self, parent,
value, is_name, name)
   1375 except (TypeError, KeyboardInterrupt,
RuntimeError, ValueError), x:
   1376 self._session_number = -1
-> 1377 raise TypeError, x
   1378 self._session_number = parent._session_number
   1379

TypeError: Gap produced error output
Error, the Small Groups library is required but not installed

   executing $sage1:=SmallGroup(8,1);;


I am running Sage under Fedora 10, 32bit.  The command "sage -i"
seemed to install the two packages without complaint.

So is this still a known problem?

Thanks,
Dave

On Mar 2, 6:33 pm, David Joyner  wrote:
> On Mon, Mar 2, 2009 at 3:51 PM, David Joyner  wrote:
> > I am trying and failing to get the sage-install script to work.
>
> ...
>
>
>
> > 
> > /bin/ls: cannot access gap-*.spkg: No such file or directory
>
> > /bin/ls: cannot access gap-*.spkg: No such file or directory
> > ./spkg-install: line 13: patches: command not found
>
> > ./spkg-install: line 14: Installing: command not found
>
> > ./spkg-install: line 15: Installing: command not found
>
> > ./spkg-install: line 16: patches: command not found
>
> > 
> > 
>
> > Does anyone have an idea what the problem could be?
>
> I finally figured out that (a) I was in the wrong directory
> and (b) spaces matter for shell scripts. It now works in Linux.
> I'm going to test in on a mac OS 10.4 and then post a link to the trac ticket
> if that works.
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-02 Thread David Joyner

On Mon, Mar 2, 2009 at 3:51 PM, David Joyner  wrote:
> I am trying and failing to get the sage-install script to work.


...

> 
> /bin/ls: cannot access gap-*.spkg: No such file or directory
>
> /bin/ls: cannot access gap-*.spkg: No such file or directory
> ./spkg-install: line 13: patches: command not found
>
> ./spkg-install: line 14: Installing: command not found
>
> ./spkg-install: line 15: Installing: command not found
>
> ./spkg-install: line 16: patches: command not found
>
> 
> 
>
> Does anyone have an idea what the problem could be?

I finally figured out that (a) I was in the wrong directory
and (b) spaces matter for shell scripts. It now works in Linux.
I'm going to test in on a mac OS 10.4 and then post a link to the trac ticket
if that works.

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-02 Thread David Joyner

I am trying and failing to get the sage-install script to work.
It starts as


+++

#!/bin/sh

# WARNING -- if you add a package here, also add it to
# the gap_reset_workspace() command in
#/devel/sage/sage/interfaces/gap.py
#

${gapver:=$SAGE_ROOT/spkg/standard/newest_version gap}
GAP0=`$gapver`
#GAP0=`$SAGE_ROOT/spkg/standard/newest_version gap`
GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`
# returns latest gap version - eg, GAP=gap-4.4.12
echo ``
echo `Installing optional GAP packages, which may not be open source.`
echo `Installing GAP $GAP packages. Please see SPKG.txt for license details.`
echo ``

PATH=$SAGE_ROOT:$SAGE_ROOT/local/bin:$PATH

export PATH

rm -rf "$SAGE_ROOT/local/lib/$GAP/pkg/"
mkdir "$SAGE_ROOT/local/lib/$GAP/pkg/"

cp patches/guava/* src/guava3.9/   # is this still needed?
# get around problem on osx


$CP -pr SPKG.txt "$SAGE_ROOT/local/lib/$GAP/pkg/"


+++

After typing
./sage -f /home/wdj/sagefiles/gap_packages-4.4.12_1.spkg
in $SAGE_ROOT, I get lots of messages as though it were unpacking and
compiling, but in fact nothing happens. In the middle of it all I found these
messages:





/bin/ls: cannot access gap-*.spkg: No such file or directory

/bin/ls: cannot access gap-*.spkg: No such file or directory
./spkg-install: line 13: patches: command not found

./spkg-install: line 14: Installing: command not found

./spkg-install: line 15: Installing: command not found

./spkg-install: line 16: patches: command not found




Does anyone have an idea what the problem could be?
(I also tried the script with Simon's shorter version of setting GAP
and the same thing happened, so that is not the issue.)


On Mon, Mar 2, 2009 at 11:15 AM, Simon King  wrote:
>
> On Mar 2, 4:24 pm, David Joyner  wrote:
>> Classes were cancelled today because of snow:-)
>>
>> I think adding these lines to the top of the spkg-install
>> script will do the trick:
>>
>> ${gapver:=./newest_version gap}
>> GAP0=`$gapver`
>> GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`
>
> Why not shorter?
>  GAP0=`./newest_version gap`
>  GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`
>
> Anyway. Provided that the version number of Gap will always be
> indicated by three numbers that are separated by dots and that are
> appended to the word "gap" by anything but a dot, then it seems fine
> to me.
>
> Cheers,
>       Simon
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-02 Thread Simon King

On Mar 2, 4:24 pm, David Joyner  wrote:
> Classes were cancelled today because of snow:-)
>
> I think adding these lines to the top of the spkg-install
> script will do the trick:
>
> ${gapver:=./newest_version gap}
> GAP0=`$gapver`
> GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`

Why not shorter?
 GAP0=`./newest_version gap`
 GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`

Anyway. Provided that the version number of Gap will always be
indicated by three numbers that are separated by dots and that are
appended to the word "gap" by anything but a dot, then it seems fine
to me.

Cheers,
   Simon

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-02 Thread David Joyner

Classes were cancelled today because of snow:-)

I think adding these lines to the top of the spkg-install
script will do the trick:

${gapver:=./newest_version gap}
GAP0=`$gapver`
GAP=`echo $GAP0 | cut -f 1,2,3 -d "."`

I'll start testing this out and post a new version of gap_packages* soon.

+

On Sun, Mar 1, 2009 at 12:24 PM, David Joyner  wrote:
> Thanks Simon! I didn't know that script already existed.
> Now I know what needs to be done.
>
>
> On Sun, Mar 1, 2009 at 11:59 AM, Simon King  
> wrote:
>>
>>> Hence, assuming that you are in spkg/standard, you could define
>>>   GAP=`./newest_version gap`
>>> which currently yields GAP=gap-4.4.10.p10, and then you have to
>>> somehow remove the '.p10'.
>>
>> Upps, I tested the above in an *old* version of Sage. So, currently we
>> have
>>  > ./newest_version gap
>>  gap-4.4.12.p1
>> and one needs to strip '.p1'.
>>
>> Cheers,
>>     Simon
>>
>> >>
>>
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-01 Thread David Joyner

Thanks Simon! I didn't know that script already existed.
Now I know what needs to be done.


On Sun, Mar 1, 2009 at 11:59 AM, Simon King  wrote:
>
>> Hence, assuming that you are in spkg/standard, you could define
>>   GAP=`./newest_version gap`
>> which currently yields GAP=gap-4.4.10.p10, and then you have to
>> somehow remove the '.p10'.
>
> Upps, I tested the above in an *old* version of Sage. So, currently we
> have
>  > ./newest_version gap
>  gap-4.4.12.p1
> and one needs to strip '.p1'.
>
> Cheers,
>     Simon
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-01 Thread Simon King

> Hence, assuming that you are in spkg/standard, you could define
>   GAP=`./newest_version gap`
> which currently yields GAP=gap-4.4.10.p10, and then you have to
> somehow remove the '.p10'.

Upps, I tested the above in an *old* version of Sage. So, currently we
have
 > ./newest_version gap
 gap-4.4.12.p1
and one needs to strip '.p1'.

Cheers,
 Simon

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-01 Thread Simon King

Dear David,

On Mar 1, 5:04 pm, David Joyner  wrote:

> >> > newest_version gap
> >> > gap-4.4.12.p1
>
> >> > and strip the ".pX" off the version number in case it exists. Another
> >> > one would be to look into the right directory and find the highest
> >> > currently installed GAP version.

> Okay, but won't having a script which earlier than 3.3 versions can't find
> also break such an install? I guess I'm not completely understanding your idea
> and how I can help gap_packages* by implementing it.

As you say above, the spkg-install script has a hard-coded definition
GAP=gap-4.4.10. This is bad since in some situations the actual gap
version is a different one, so that things like
  rm -rf "$SAGE_ROOT/local/lib/$GAP/pkg/"
go to the wrong place.

Hence, the suggestion is to define the variable GAP by some script
that picks the latest version of gap. This can be done by the script
'newest_version' that you can find in SAGE_ROOT/spkg/standard/, and
which was there also in previous versions of Sage.

Hence, assuming that you are in spkg/standard, you could define
  GAP=`./newest_version gap`
which currently yields GAP=gap-4.4.10.p10, and then you have to
somehow remove the '.p10'.

Cheers
 Simon


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-01 Thread David Joyner

On Sun, Mar 1, 2009 at 8:37 AM, mabshoff
 wrote:
>
>



>>
>> > One way to attack this would be to use something along the lines of
>>
>> > mabsh...@sage:/scratch/mabshoff/sage-3.4.alpha1/spkg/standard$ ./
>> > newest_version gap
>> > gap-4.4.12.p1
>>
>> > and strip the ".pX" off the version number in case it exists. Another
>> > one would be to look into the right directory and find the highest
>> > currently installed GAP version.
>>
...

>
> No, see my comments earlier in this thread, i.e. do *not* hard code
> the GAP release since this will break the spkg on Sage releases
> earlier then 3.3 and also next time GAP is updated.
>

Okay, but won't having a script which earlier than 3.3 versions can't find
also break such an install? I guess I'm not completely understanding your idea
and how I can help gap_packages* by implementing it.



>
> Cheers,
>
> Michael
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-01 Thread William Stein

> sagemath and trac are down now anyway, so I'm not sure if this can be
> fixed today.
> I can start working on it after I finish grading an exam tomorrow and
> Almost definitely will be free to work on it a large chunk of the day
> Tuesday.
>

They (=sagemath, cython, etc.) are all back up now.  Apache used up
all memory on sagemath for unknown reasons... and we're now logging
all output of top and have adjusted a bunch of parameters for apache2,
so we'll see what happens.

William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-01 Thread mabshoff



On Mar 1, 5:04 am, David Joyner  wrote:
> I can work on #5397 some today (finally).
>
> On Feb 27, 5:17 pm, mabshoff 
> dortmund.de> wrote:
> > On Feb 27, 3:37 am, David Joyner  wrote:
>
> > > Just a guess that the skpg install script hardwires the wrong
> > > directory for the GAP pkgs.
>
> > I have been thinking about such build problems and similar things
> > happen in various other places.
>
> > One way to attach this is to have a script called
>
> >  sage-gap-version
>
> I don't know how to add this using trac. I think the list of scripts
> is outside
> devel isn't it?
>
>
>
>
>
> > that just returns the name of the current GAP install. This could be
> > used if there were additional GAP packages in the future and there
> > would be a good chance that things just keep working and as an added
> > bonus would likely keep working with older Sage versions using older
> > GAP releases, i.e. the optional GAP packages spkg would keep working
> > with Sage releases prior to Sage 3.3.
>
> > One way to attack this would be to use something along the lines of
>
> > mabsh...@sage:/scratch/mabshoff/sage-3.4.alpha1/spkg/standard$ ./
> > newest_version gap
> > gap-4.4.12.p1
>
> > and strip the ".pX" off the version number in case it exists. Another
> > one would be to look into the right directory and find the highest
> > currently installed GAP version.
>
> Here are the first few lines of the spkg-install script:
>
> 
>
> #!/bin/sh
>
> # WARNING -- if you add a package here, also add it to
> # the gap_reset_workspace() command in
> #    /devel/sage/sage/interfaces/gap.py
> #
>
> GAP=gap-4.4.10
>
> PATH=$SAGE_ROOT:$SAGE_ROOT/local/bin:$PATH
>
> export PATH
>
> rm -rf "$SAGE_ROOT/local/lib/$GAP/pkg/"
> mkdir "$SAGE_ROOT/local/lib/$GAP/pkg/"
>
> 
>
> +++
>
> It is easy enough to (a) update the packages to their most recent
> version
> (my preference is, however, to remove nauty* from grape first), (b)
> replace 4.4.10 by 4.4.12 and rebuild.

No, see my comments earlier in this thread, i.e. do *not* hard code
the GAP release since this will break the spkg on Sage releases
earlier then 3.3 and also next time GAP is updated.

> Thoughts?
>
> sagemath and trac are down now anyway, so I'm not sure if this can be
> fixed today.
> I can start working on it after I finish grading an exam tomorrow and
> Almost definitely will be free to work on it a large chunk of the day
> Tuesday.
>

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-03-01 Thread David Joyner

I can work on #5397 some today (finally).


On Feb 27, 5:17 pm, mabshoff  wrote:
> On Feb 27, 3:37 am, David Joyner  wrote:
>
> > Just a guess that the skpg install script hardwires the wrong
> > directory for the GAP pkgs.
>
> I have been thinking about such build problems and similar things
> happen in various other places.
>
> One way to attach this is to have a script called
>
>  sage-gap-version

I don't know how to add this using trac. I think the list of scripts
is outside
devel isn't it?

>
> that just returns the name of the current GAP install. This could be
> used if there were additional GAP packages in the future and there
> would be a good chance that things just keep working and as an added
> bonus would likely keep working with older Sage versions using older
> GAP releases, i.e. the optional GAP packages spkg would keep working
> with Sage releases prior to Sage 3.3.
>
> One way to attack this would be to use something along the lines of
>
> mabsh...@sage:/scratch/mabshoff/sage-3.4.alpha1/spkg/standard$ ./
> newest_version gap
> gap-4.4.12.p1
>
> and strip the ".pX" off the version number in case it exists. Another
> one would be to look into the right directory and find the highest
> currently installed GAP version.


Here are the first few lines of the spkg-install script:



#!/bin/sh

# WARNING -- if you add a package here, also add it to
# the gap_reset_workspace() command in
#/devel/sage/sage/interfaces/gap.py
#

GAP=gap-4.4.10

PATH=$SAGE_ROOT:$SAGE_ROOT/local/bin:$PATH

export PATH

rm -rf "$SAGE_ROOT/local/lib/$GAP/pkg/"
mkdir "$SAGE_ROOT/local/lib/$GAP/pkg/"



+++

It is easy enough to (a) update the packages to their most recent
version
(my preference is, however, to remove nauty* from grape first), (b)
replace 4.4.10 by 4.4.12 and rebuild.

Thoughts?

sagemath and trac are down now anyway, so I'm not sure if this can be
fixed today.
I can start working on it after I finish grading an exam tomorrow and
Almost definitely will be free to work on it a large chunk of the day
Tuesday.


>
> Cheers,
>
> Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-02-27 Thread mabshoff



On Feb 27, 3:37 am, David Joyner  wrote:
> Just a guess that the skpg install script hardwires the wrong
> directory for the GAP pkgs.

I have been thinking about such build problems and similar things
happen in various other places.

One way to attach this is to have a script called

 sage-gap-version

that just returns the name of the current GAP install. This could be
used if there were additional GAP packages in the future and there
would be a good chance that things just keep working and as an added
bonus would likely keep working with older Sage versions using older
GAP releases, i.e. the optional GAP packages spkg would keep working
with Sage releases prior to Sage 3.3.

One way to attack this would be to use something along the lines of

mabsh...@sage:/scratch/mabshoff/sage-3.4.alpha1/spkg/standard$ ./
newest_version gap
gap-4.4.12.p1

and strip the ".pX" off the version number in case it exists. Another
one would be to look into the right directory and find the highest
currently installed GAP version.

Cheers,

Michael
--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-02-27 Thread Simon King

Hi David,

I already created a ticket: It is #5397.

Cheers,
   Simon

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-02-27 Thread David Joyner

Just a guess that the skpg install script hardwires the wrong
directory for the GAP pkgs.

I'll look later when I have time.

Workaround: just dump the small groups library in the pkg subdirectory of GAP
in Sage, start GAP, load small, and reset your workspace.


On Fri, Feb 27, 2009 at 4:14 AM, Simon King  wrote:
>
> More details:
>
> With a sage-3.3.rc0-install on sage.math, the SmallGroups library
> works.
>
> The SmallGroups library does *not* work for me in the following
> settings:
>  - sage-3.3 built from source on x86_64 GNU/Linux, Dual Core AMD
> Opteron(tm) Processor 270, gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE
> Linux)
>  - sage-3.3 obtained by an upgrade of sage-3.1.2 (built from source)
> on the same machine
>  - sage-3.3 obtained by an upgrade of sage-3.2.3 (built from source)
> on x86_64 GNU/Linux, AMD Athlon(tm) 64 Processor 3700+, gcc (GCC)
> 4.2.1
>
> So, did something happen between sage-3.3.rc0 and sage-3.3?
>
> Even when I copied the working database_gap from sage.math to my
> machine and did ./sage -f, it failed to work although the install
> successfully finished.
>
> Best regards,
>      Simon
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---



[sage-support] Re: Small groups library is missing

2009-02-27 Thread Simon King

More details:

With a sage-3.3.rc0-install on sage.math, the SmallGroups library
works.

The SmallGroups library does *not* work for me in the following
settings:
 - sage-3.3 built from source on x86_64 GNU/Linux, Dual Core AMD
Opteron(tm) Processor 270, gcc (GCC) 4.1.2 20061115 (prerelease) (SUSE
Linux)
 - sage-3.3 obtained by an upgrade of sage-3.1.2 (built from source)
on the same machine
 - sage-3.3 obtained by an upgrade of sage-3.2.3 (built from source)
on x86_64 GNU/Linux, AMD Athlon(tm) 64 Processor 3700+, gcc (GCC)
4.2.1

So, did something happen between sage-3.3.rc0 and sage-3.3?

Even when I copied the working database_gap from sage.math to my
machine and did ./sage -f, it failed to work although the install
successfully finished.

Best regards,
  Simon

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to 
sage-support-unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://www.sagemath.org
-~--~~~~--~~--~--~---