[sage-support] Re: Strange sequence printing in SAGE

2007-10-23 Thread William Stein

On 10/23/07, Andrey Novoseltsev <[EMAIL PROTECTED]> wrote:
> I have printing issues with sequences, cr parameter is not processed correctly
> when it is False:
>
> sage: s = Sequence([1,2,3], cr=False)
> sage: s
> [1, 2, 3]
> sage: print s, str(s), repr(s)
> [
> 1,
> 2,
> 3
> ] [
> 1,
> 2,
> 3
> ] [1, 2, 3]

Yes, that's a bug.  See

   http://www.sagetrac.org/sage_trac/ticket/978

for a patch that fixes it, or wait for the next Sage release.



> sage: s = Sequence([1,2,3], cr=True)
> sage: s
> [
> 1,
> 2,
> 3
> ]
> sage: print s, str(s), repr(s)
> [
> 1,
> 2,
> 3
> ] [
> 1,
> 2,
> 3
> ] [
> 1,
> 2,
> 3
> ]
>
> I get this both under notebook and command line and it is somewhat unpleasant.
>
> Thank you,
> Andrey
>
>


-- 
William Stein
Associate Professor of Mathematics
University of Washington
http://wstein.org

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: sage-2.8.8

2007-10-23 Thread Justin C. Walker

An update:

On Oct 22, 2007, at 21:29 , mabshoff wrote:
> On Oct 23, 6:19 am, "Justin C. Walker" <[EMAIL PROTECTED]> wrote:
>> Hi, Michael,

>> I did this for both '/lib' and '/include', just for grins, and cddlib
>> did build successfully.
>>
>
> Ok, please open a ticket for cddlib-094b then.

With both "/usr/local/include" and "/usr/local/lib" moved out of the  
way, sage 2.8.8.1 built w/o a complaint on my dual Quad Xeon box.   
'make test' went like this:

All tests passed!
Total time for all tests: 2203.3 seconds

>> However, I have to rerun the build from scratch: it seems to depend
>> on /usr/local/lib: maxima won't run with that name change.  I
>> neglected to note which library in /usr/local/lib was referenced
>> before I blew away the window where I tested that: a lot of tests
>> were failing because of maxima problems.
>>
>
> Hmm, I wonder if this is worth fixing.

I'll try to reproduce this after the following:

>> Can I build sage with something like '-j 4'?  It's a shame to see all
>> those cores sitting idle :-}

I'm now building '4-way', following William's suggestion.

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income

When LuteFisk is outlawed,
Only outlaws will have LuteFisk





--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Logging http requests

2007-10-23 Thread Ted Kosan

Alex wrote:

> twisted has a lot of built in logging facilities, see
>
> => from twisted.python import log (like log.LogWrapperResource)
>
> => from twisted.web2 import log
>
> => the logging functionality associated with the 'twistd' script
>
> I know standard log formats are supported, like apache log formats.
> So in summary, don't write anything, it already exists! :)

I had gotten as far as duplicating the logging information that
twisted displays to standard output using 'from twisted.python import
log' and my next step was to see if it could be configured to log the
http requests.  I just wanted to make sure that code to support this
was not already present in SAGE before moving forward.

Thanks :-)

Ted

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Logging http requests

2007-10-23 Thread alex clemesha
On 10/23/07, William Stein <[EMAIL PROTECTED]> wrote:
>
>
> On 10/23/07, Ted Kosan <[EMAIL PROTECTED]> wrote:
> >
> > Does anyone know to enable logging of http requests with the twisted
> > version of the SAGE Notebook server?
> >
>
> This functionality is not implemented. The only way I know to
> enable it would
> be to decide what to log and in what format, how the logging would
> work (e.g., how to control where logs go, etc.), and then implement it


twisted has a lot of built in logging facilities, see

=> from twisted.python import log (like log.LogWrapperResource)

=> from twisted.web2 import log

=> the logging functionality associated with the 'twistd' script

I know standard log formats are supported, like apache log formats.
So in summary, don't write anything, it already exists! :)

Alex


by modifying files
> in SAGE_ROOT/devel/sage/sage/server/notebook/twist.py
>
> One possibility would be
>
> sage: notebook(..., logfile="foo.log")
>
> would log all http requests to foo.log.
>
> -- William
>
> >
>

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: Logging http requests

2007-10-23 Thread William Stein

On 10/23/07, Ted Kosan <[EMAIL PROTECTED]> wrote:
>
> Does anyone know to enable logging of http requests with the twisted
> version of the SAGE Notebook server?
>

This functionality is not implemented. The only way I know to
enable it would
be to decide what to log and in what format, how the logging would
work (e.g., how to control where logs go, etc.), and then implement it
by modifying files
in SAGE_ROOT/devel/sage/sage/server/notebook/twist.py

One possibility would be

sage: notebook(..., logfile="foo.log")

would log all http requests to foo.log.

 -- William

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: problems with Singular

2007-10-23 Thread Luis Garcia-Puente

Dear Michael,

There is nothing better than teaching a differential equations class
and afterwards seeing a smart and prompt answer to the question
submitted just before class. Great! You are totally right it died
after 3Gb were used. I usually work with the Singular binary but
lately I was not able to compile it using Fink (my hard drive died
recently and I had no other previous singular binary), that is why I
tried using it on top of Sage. It turned out that it was a problem
with conflicting libraries so after temporarily renaming /usr/local I
was able to compile Singular. It is using 4 Gb of memory in a current
computation so I am assuming it compile with the -m64 option.

Thanks a lot for your answers I like Sage a lot and I am looking
forward for the 64 bit mode one.

Best

Luis

On Oct 23, 10:03 am, mabshoff <[EMAIL PROTECTED]
dortmund.de> wrote:
> On Oct 23, 4:14 pm, Luis Garcia-Puente <[EMAIL PROTECTED]> wrote:
>
> > Dear Sage team,
>
> Hello Luis,
>
>
>
> > I was running Singular on top of Sage but it kept crashing with a
> > message of no more memory. After looking at the activity monitor (I am
> > running sage on a Mac Pro with OS X 10.4.10) I saw that there was
> > still plenty of memory (13 Gb unused). So I thought that it might be a
> > problem with the handling of upper memory. But then I looked at the
> > system logs and found the following:
>
> > Oct 19 15:04:26 ldb-4-68 crashdump[8705]: singular crashed
> > Oct 19 15:04:26 ldb-4-68 crashdump[8705]: crash report written to: /
> > Users/lgp/Library/Logs/CrashReporter/singular.crash.log
>
> I assume that Singular for Sage is 32 bit on OSX, which assuming you
> have 16 GB of RAM would mean that it ran out of memory once it has
> consumed 3GB of RAM. I am not even sure if Singular can be build as 64
> bit binary on OSX, but malb should certainly tell you. I assume it
> isn't much more than adding "-m64" in the right places and compiling
> all external dependencies in 64 bit mode. All attempts to build a 64
> bit Sage on OSX have failed so far due to missing system libraries in
> 64 bit mode, but that will change with OSX 10.5 out in about a week.
> It remains to be seen how long it will take to actually get Sage to
> compile and work in 64 bit mode on OSX 10.5.
>
> As a workaround you can try the "official" Singular binary and see if
> the problem goes away. Those are fink binaries, but the installation
> process is described on their website.
>
>
>
>
>
> > **
>
> > Host Name:  ldb-4-68
> > Date/Time:  2007-10-19 15:04:26.727 -0500
> > OS Version: 10.4.10 (Build 8R2232)
> > Report Version: 4
>
> > Command: singular
> > Path:/usr/local/bin/singular
> > Parent:  bash [9847]
>
> > Version: ??? (???)
>
> > PID:8704
> > Thread: Unknown
>
> > Link (dyld) error:
>
> > Library not loaded: libntl.dylib
> >   Referenced from: /usr/local/bin/singular
> >   Reason: image not found
>
> > 
>
> > I think that this is not an issue of Singular but an issue of Sage. If
> > so, could you please help me solve this issue.
>
> > Thank you very much
>
> > Luis Garcia
>
> Cheers,
>
> Michael


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Logging http requests

2007-10-23 Thread Ted Kosan

Does anyone know to enable logging of http requests with the twisted
version of the SAGE Notebook server?

Thanks,

Ted

--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] Re: problems with Singular

2007-10-23 Thread mabshoff



On Oct 23, 4:14 pm, Luis Garcia-Puente <[EMAIL PROTECTED]> wrote:
> Dear Sage team,

Hello Luis,

>
> I was running Singular on top of Sage but it kept crashing with a
> message of no more memory. After looking at the activity monitor (I am
> running sage on a Mac Pro with OS X 10.4.10) I saw that there was
> still plenty of memory (13 Gb unused). So I thought that it might be a
> problem with the handling of upper memory. But then I looked at the
> system logs and found the following:
>
> Oct 19 15:04:26 ldb-4-68 crashdump[8705]: singular crashed
> Oct 19 15:04:26 ldb-4-68 crashdump[8705]: crash report written to: /
> Users/lgp/Library/Logs/CrashReporter/singular.crash.log

I assume that Singular for Sage is 32 bit on OSX, which assuming you
have 16 GB of RAM would mean that it ran out of memory once it has
consumed 3GB of RAM. I am not even sure if Singular can be build as 64
bit binary on OSX, but malb should certainly tell you. I assume it
isn't much more than adding "-m64" in the right places and compiling
all external dependencies in 64 bit mode. All attempts to build a 64
bit Sage on OSX have failed so far due to missing system libraries in
64 bit mode, but that will change with OSX 10.5 out in about a week.
It remains to be seen how long it will take to actually get Sage to
compile and work in 64 bit mode on OSX 10.5.

As a workaround you can try the "official" Singular binary and see if
the problem goes away. Those are fink binaries, but the installation
process is described on their website.

>
> **
>
> Host Name:  ldb-4-68
> Date/Time:  2007-10-19 15:04:26.727 -0500
> OS Version: 10.4.10 (Build 8R2232)
> Report Version: 4
>
> Command: singular
> Path:/usr/local/bin/singular
> Parent:  bash [9847]
>
> Version: ??? (???)
>
> PID:8704
> Thread: Unknown
>
> Link (dyld) error:
>
> Library not loaded: libntl.dylib
>   Referenced from: /usr/local/bin/singular
>   Reason: image not found
>
> 
>
> I think that this is not an issue of Singular but an issue of Sage. If
> so, could you please help me solve this issue.
>
> Thank you very much
>
> Luis Garcia

Cheers,

Michael


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---



[sage-support] problems with Singular

2007-10-23 Thread Luis Garcia-Puente

Dear Sage team,

I was running Singular on top of Sage but it kept crashing with a
message of no more memory. After looking at the activity monitor (I am
running sage on a Mac Pro with OS X 10.4.10) I saw that there was
still plenty of memory (13 Gb unused). So I thought that it might be a
problem with the handling of upper memory. But then I looked at the
system logs and found the following:

Oct 19 15:04:26 ldb-4-68 crashdump[8705]: singular crashed
Oct 19 15:04:26 ldb-4-68 crashdump[8705]: crash report written to: /
Users/lgp/Library/Logs/CrashReporter/singular.crash.log

**

Host Name:  ldb-4-68
Date/Time:  2007-10-19 15:04:26.727 -0500
OS Version: 10.4.10 (Build 8R2232)
Report Version: 4

Command: singular
Path:/usr/local/bin/singular
Parent:  bash [9847]

Version: ??? (???)

PID:8704
Thread: Unknown

Link (dyld) error:

Library not loaded: libntl.dylib
  Referenced from: /usr/local/bin/singular
  Reason: image not found



I think that this is not an issue of Singular but an issue of Sage. If
so, could you please help me solve this issue.

Thank you very much

Luis Garcia


--~--~-~--~~~---~--~~
To post to this group, send email to sage-support@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~--~~~~--~~--~--~---