[sage-support] Re: using the system version of Python from the sage notebook?

2009-11-29 Thread dimpase
Another similar question involves using the local version of GAP
in place of the supplied one.
Apart from the fact that Sage is distributed with an old and (a bit)
broken version of GAP,
(well, I know that I can install a newer version by downloading the
corresponding update)
having two copies of GAP is awkward, just given the fact that a full
installation of GAP with all
the packages and libraries is quite huge.
(well, maybe it is psychological difficulty, as I use (and
occasionally develop small bits of) GAP since
1994... :))

Best,
Dmitrii


On Nov 30, 12:40 am, tmbdev  wrote:
> Sage supports all sorts of "external" tools, like R and Octave.
>
> I would like to be able to use the installed version of Python with
> the Sage notebook interface (in place of its built-in one).  The
> reason is that we have a lot of local packages installed that we can't
> reinstall within Sage.
>
> So, what about adding "system-python" as another choice under the
> tools menu, in addition to "python"?
>
> Tom

-- 
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
URL: http://www.sagemath.org


[sage-support] Re: using the system version of Python from the sage notebook?

2009-11-29 Thread tmbdev
If you could use the system Python, that would fix that problem too,
wouldn't it?

Tom

On Nov 29, 6:38 pm, dimpase  wrote:
> Another similar question involves using the local version of GAP
> in place of the supplied one.
> Apart from the fact that Sage is distributed with an old and (a bit)
> broken version of GAP,
> (well, I know that I can install a newer version by downloading the
> corresponding update)
> having two copies of GAP is awkward, just given the fact that a full
> installation of GAP with all
> the packages and libraries is quite huge.
> (well, maybe it is psychological difficulty, as I use (and
> occasionally develop small bits of) GAP since
> 1994... :))
>
> Best,
> Dmitrii
>
> On Nov 30, 12:40 am, tmbdev  wrote:
>
>
>
> > Sage supports all sorts of "external" tools, like R and Octave.
>
> > I would like to be able to use the installed version of Python with
> > the Sage notebook interface (in place of its built-in one).  The
> > reason is that we have a lot of local packages installed that we can't
> > reinstall within Sage.
>
> > So, what about adding "system-python" as another choice under the
> > tools menu, in addition to "python"?
>
> > Tom

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: using the system version of Python from the sage notebook?

2009-11-29 Thread William Stein
On Sun, Nov 29, 2009 at 9:38 AM, dimpase  wrote:
> Another similar question involves using the local version of GAP
> in place of the supplied one.
> Apart from the fact that Sage is distributed with an old and (a bit)
> broken version of GAP,
> (well, I know that I can install a newer version by downloading the
> corresponding update)
> having two copies of GAP is awkward, just given the fact that a full
> installation of GAP with all
> the packages and libraries is quite huge.
> (well, maybe it is psychological difficulty, as I use (and
> occasionally develop small bits of) GAP since
> 1994... :))
>

Can you test if this will actually work by modifying the file

  SAGE_ROOT/local/bin/gap

in your Sage install in the natural way?

For quite a while we had to patch GAP  so that it would work with the
Sage interface.

I'm curious -- what in particular is broken about GAP-4.4.10?  We
tried to ship 4.4.12, but found it to be "more broken"; in particular,
it didn't work on Itanium Linux boxes, which is one of our officially
supported platforms.

 -- 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
URL: http://www.sagemath.org


Re: [sage-support] Re: using the system version of Python from the sage notebook?

2009-11-29 Thread Dima Pasechnik
William,
Patch 11 of  GAP 4.4 fixes a dozen of critical level bugs, ie bugs
that potentially lead to wrong results! Eg getting wrong character
tables, wrong results in range intersection...
If a platform, like Itanium, was dropped, it is likely for a jolly good reason.

IMHO distributing a clearly buggy version is a very bad idea.

Dmitrii

On 30/11/2009, William Stein  wrote:
> On Sun, Nov 29, 2009 at 9:38 AM, dimpase  wrote:
>> Another similar question involves using the local version of GAP
>> in place of the supplied one.
>> Apart from the fact that Sage is distributed with an old and (a bit)
>> broken version of GAP,
>> (well, I know that I can install a newer version by downloading the
>> corresponding update)
>> having two copies of GAP is awkward, just given the fact that a full
>> installation of GAP with all
>> the packages and libraries is quite huge.
>> (well, maybe it is psychological difficulty, as I use (and
>> occasionally develop small bits of) GAP since
>> 1994... :))
>>
>
> Can you test if this will actually work by modifying the file
>
>   SAGE_ROOT/local/bin/gap
>
> in your Sage install in the natural way?
>
> For quite a while we had to patch GAP  so that it would work with the
> Sage interface.
>
> I'm curious -- what in particular is broken about GAP-4.4.10?  We
> tried to ship 4.4.12, but found it to be "more broken"; in particular,
> it didn't work on Itanium Linux boxes, which is one of our officially
> supported platforms.
>
>  -- 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
> URL: http://www.sagemath.org

-- 
Sent from my mobile device

Dmitrii Pasechnik
-
DISCLAIMER: Any text following this sentence does not constitute a
part of this message, and was added automatically during transmission.

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: using the system version of Python from the sage notebook?

2009-11-30 Thread Dima Pasechnik
2009/11/30 William Stein :
> On Sun, Nov 29, 2009 at 9:38 AM, dimpase  wrote:
>> Another similar question involves using the local version of GAP
>> in place of the supplied one.
>> Apart from the fact that Sage is distributed with an old and (a bit)
>> broken version of GAP,
>> (well, I know that I can install a newer version by downloading the
>> corresponding update)
>> having two copies of GAP is awkward, just given the fact that a full
>> installation of GAP with all
>> the packages and libraries is quite huge.
>> (well, maybe it is psychological difficulty, as I use (and
>> occasionally develop small bits of) GAP since
>> 1994... :))
>>
>
> Can you test if this will actually work by modifying the file
>
>  SAGE_ROOT/local/bin/gap
>
> in your Sage install in the natural way?
not quite.
After I do this, (on Sage updated with gap-4.4.12.p2.spkg)
I can run my local GAP installation, but
gap_reset_workspace
fails:

d...@spms-dima:/usr/local/src/sage-4.2.1/local/bin$ sage
--
| Sage Version 4.2.1, Release Date: 2009-11-14   |
| Type notebook() for the GUI, and license() for information.|
--
sage:
sage: gap.console()
GAP4, Version: 4.4.12 of 17-Dec-2008, i686-pc-linux-gnu-gcc
gap> LoadPackage("grape");
true
gap>
sage: gap_reset_workspace()
---
RuntimeError  Traceback (most recent call last)

/usr/local/src/sage-4.2.1/local/bin/ in ()

/usr/local/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc
in gap_reset_workspace(max_workspace_size, verbose)
976 pass
977 # end for
--> 978 g.eval('SaveWorkspace("%s");'%WORKSPACE)
979
980

/usr/local/src/sage-4.2.1/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/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/expect.pyc
in eval(self, code, strip, synchronize, locals, **kwds)
980 try:
981 with gc_disabled():
--> 982 return '\n'.join([self._eval_line(L, **kwds)
for L in code.split('\n') if L != ''])
983 except KeyboardInterrupt:
984 # DO NOT CATCH KeyboardInterrupt, as it is being caught

/usr/local/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc
in _eval_line(self, line, allow_use_file, wait_for_prompt)
683 try:
684 if self._expect is None:
--> 685 self._start()
686 E = self._expect
687 #import pdb; pdb.set_trace()

/usr/local/src/sage-4.2.1/local/lib/python2.6/site-packages/sage/interfaces/gap.pyc
in _start(self)
360 self._session_number = n
361 return
--> 362 raise RuntimeError, msg
363
364 if self.__use_workspace_cache and self.__make_workspace:

RuntimeError: Unable to start gap
sage:

-- 
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
URL: http://www.sagemath.org


Re: [sage-support] Re: using the system version of Python from the sage notebook?

2009-11-30 Thread Dima Pasechnik
William,
>
> I'm curious -- what in particular is broken about GAP-4.4.10?  We
> tried to ship 4.4.12, but found it to be "more broken"; in particular,
> it didn't work on Itanium Linux boxes, which is one of our officially
> supported platforms.
I tried to reproduce your problem on an Itanium cluster at U.Waterloo, by
installing and trying out GAP-4.4.12 there, but it just works...
(gcc-4.1.2, the usual GAP optimisation level (O2?))

Should I try building Sage there?

(Indeed, it does not really work with Intel's icc 10.1 (only O0, which
is too slow), but
do you need icc that badly? We can look into this, if needed, it's
probably a minor assembler
issue...)

Here are the details of the working setup:

pilatus:~/gap/gap4r4> gcc -v
Using built-in specs.
Target: ia64-suse-linux
Configured with: ../configure --enable-threads=posix --prefix=/usr
--with-local-prefix=/usr/local --infodir=/usr/share/info
--mandir=/usr/share/man --libdir=/usr/lib --libexecdir=/usr/lib
--enable-languages=c,c++,objc,fortran,obj-c++,java,ada
--enable-checking=release
--with-gxx-include-dir=/usr/include/c++/4.1.2 --enable-ssp
--disable-libssp --disable-libgcj --with-slibdir=/lib
--with-system-zlib --enable-shared --enable-__cxa_atexit
--enable-libstdcxx-allocator=new --program-suffix=
--enable-version-specific-runtime-libs --with-system-libunwind
--host=ia64-suse-linux
Thread model: posix
gcc version 4.1.2 20070115 (SUSE Linux)

pilatus:~/gap/gap4r4> uname -a
Linux pilatus 2.6.16.60-0.39.3-default #1 SMP Mon May 11 11:46:34 UTC
2009 ia64 ia64 ia64 GNU/Linux

-- 
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
URL: http://www.sagemath.org