[sage-support] Re: tutoriatutorial() tries to start wine under gnome-3.12

2014-06-20 Thread juerose

It is a sage-on-gentoo install. I will report the issue on 
https://github.com/cschwan/sage-on-gentoo/issues .

On Thursday, June 19, 2014 12:04:55 PM UTC+2, François wrote:

 Just to be clear Juergen, do you have the problem with a sage-on-gentoo 
 install
 as you seem to point out in
 https://bugs.gentoo.org/show_bug.cgi?id=512284#c11

 If so while it is interesting it is not usually the right forum. In this 
 case report it
 on github at
 https://github.com/cschwan/sage-on-gentoo/issues

 It may be that your problem would also occur with a vanilla sage but there 
 is no
 way to know other than building a vanilla sage and trying again.

 On Thursday, June 19, 2014 8:50:57 PM UTC+12, jue...@gmail.com wrote:



 On Thursday, June 19, 2014 10:26:09 AM UTC+2, Dima Pasechnik wrote:

 On 2014-06-18, jue...@gmail.com jue...@gmail.com wrote: 
  Hi, 
  
  if I enter tutorial() at the sage prompt a short time a wine window is 
  opened and only warnings or errors are shown in the terminal window: 

 please specify your environment. I suspect that you run Sage in a VM 
 on Windows... 


 I run Sage directly in a gnome-terminal in a gnome-session or in a xterm 
 in xfce-session under linux- 3.15.0-gentoo-r1.

  
  sage: help() 
  Welcome to Sage 6.2! 
  
  To view the Sagsage: help() 
  Welcome to Sage 6.2! 
  
  To view the Sage tutorial in your web browser, type tutorial(), and 
  ... 
  
  sage: tutorial() 
  sage: fixme:iphlpapi:NotifyAddrChange (Handle 0xd9e2c8, overlapped 
  0xd9e2e0): stub 
  fixme:iphlpapi:NotifyAddrChange (Handle 0xdbe880, overlapped 
 0xdbe88c): stub 
  wine: configuration in '/home/rose/.wine' has been updated. 
  fixme:exec:SHELL_execute flags ignored: 0x0100 
  fixme:exec:SHELL_execute flags ignored: 0x0100 
  fixme:exec:SHELL_execute flags ignored: 0x0100 
  fixme:exec:SHELL_execute flags ignored: 0x0100 
   
  
  
  Any help is appreciated. 
  



-- 
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.


[sage-support] Re: tutoriatutorial() tries to start wine under gnome-3.12

2014-06-20 Thread juerose
I can't open notebook either in a gnome-session, it fails with Could not 
find the Mozilla runtime.
Setting SAGE_BROWSER=firefox does not change anything. Under xfce I can 
open the notebook  without problems.
Because my sage is a sage-on-gentoo install, I will report the details on 
https://github.com/cschwan/sage-on-gentoo/issues 
https://github.com/cschwan/sage-on-gentoo/issues  .

On Thursday, June 19, 2014 11:13:00 AM UTC+2, Dima Pasechnik wrote:

 On 2014-06-19, jue...@gmail.com javascript: jue...@gmail.com 
 javascript: wrote: 
  
  
  On Wednesday, June 18, 2014 5:51:02 PM UTC+2, jue...@gmail.com wrote: 
  
  Hi, 
  
  if I enter tutorial() at the sage prompt a short time a wine window is 
  opened and only warnings or errors are shown in the terminal window: 
  
  sage: help() 
  Welcome to Sage 6.2! 
  
  To view the Sagsage: help() 
  Welcome to Sage 6.2! 
  
  To view the Sage tutorial in your web browser, type tutorial(), and 
  ... 
  
  sage: tutorial() 
  sage: fixme:iphlpapi:NotifyAddrChange (Handle 0xd9e2c8, overlapped 
  0xd9e2e0): stub 
  fixme:iphlpapi:NotifyAddrChange (Handle 0xdbe880, overlapped 0xdbe88c): 
  stub 
  wine: configuration in '/home/rose/.wine' has been updated. 
  fixme:exec:SHELL_execute flags ignored: 0x0100 
  fixme:exec:SHELL_execute flags ignored: 0x0100 
  
  
  
  After removing /home/rose/.sage the start of wine disappeard. But I 
 still 
  get endless: 
  
  fixme:exec:SHELL_execute flags ignored: 0x0100 
  
  
  Even if I kill sage, the terminal continues to show this message. 
  I get it under xfce4-4.11.0 and gnome-3.12.  Under gnome this issue 
 seems 
  to lock after some time the whole desktop. Several existing terminal 
  windows 
  do no more respond and it is impossible to start new application with 
 the 
  application menu. 

 tutorial() merely opens up the default browser, and a local copy of 
 the tutorial HTML docs in it. 

 By the way, what is your default browser? 

 I never saw this reported as causing problems. 

 Could you try doing notebook() rather than tutorial() ? 
 (notebook() will also pop up your default browser, and then open Sage 
 notebooks in it). 
  



-- 
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.


[sage-support] Re: Solve for a function defined in a file?

2014-06-20 Thread Dima Pasechnik
On 2014-06-20, David Ingerman daviddavif...@gmail.com wrote:
  Thank you, so what to do for Python function? Matlab had general purpose 
 'optim(f)' if my memory is right... 

you can e.g. use find_root(); this is a numerical thing that accepts
Python functions. Here is an example:

sage: def f(x):
return x-cos(x)
: 
sage: find_root(f,0,1)
0.7390851332151559
sage: 


 On Wednesday, June 11, 2014 1:50:10 AM UTC-7, Dima Pasechnik wrote:

 On 2014-06-10, David Ingerman davidd...@gmail.com javascript: wrote: 

   How  to solve([f(x)==0],x) for a function f(x) defined in a .sage 
 file? 
  
   The error message: TypeError: Cannot evaluate symbolic expression to a 
  numeric value. 

 what is f(x) ? 
 solve() won't work for a Python function, it needs a symbolic 
 expression, e.g. 

 sage: type(sin(x)) 
 type 'sage.symbolic.expression.Expression' 
 sage: 

  
  Thank you... 
  




-- 
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.


[sage-support] Re: Fwd: help regarding sage instalation

2014-06-20 Thread leif

leif wrote:

William Stein wrote:

-- Forwarded message --
From: Pramod Shukla pkshu...@to.infn.it mailto:pkshu...@to.infn.it
Date: Jun 19, 2014 7:25 AM
Subject: help regarding sage instalation

While installing sage in my computer I came across some problem which
unfortunately I an unable to fix. I would be very thankful if you could
kindly assist me in this regard. The problem mentioned in the technical
error message at the end of the running of make is exactly same what I
found you wrote quite back in the blog
http://osdir.com/ml/sage-devel/2014-05/msg00126.html.

To mention it again, towards the end it reads as
[...]
OSError: [Errno 12] Cannot allocate memory


Which part of this error message is unclear?

Errno 12 = ENOMEM aka Out of memory.

You'd have to close some other applications, install more RAM, or setup
[more] swap space.  (Or try building the documentation with less
threads, in case you were using more than one.)


[Solved off-list; using 'env SAGE_NUM_THREADS=1 make' was sufficient.]


-leif

--
() The ASCII Ribbon Campaign
/\   Help Cure HTML E-Mail

--
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.


Re: [sage-support] Re: Fwd: help regarding sage instalation

2014-06-20 Thread William Stein
On Fri, Jun 20, 2014 at 9:49 AM, leif not.rea...@online.de wrote:
 leif wrote:

 William Stein wrote:

 -- Forwarded message --
 From: Pramod Shukla pkshu...@to.infn.it mailto:pkshu...@to.infn.it
 Date: Jun 19, 2014 7:25 AM
 Subject: help regarding sage instalation

 While installing sage in my computer I came across some problem which
 unfortunately I an unable to fix. I would be very thankful if you could
 kindly assist me in this regard. The problem mentioned in the technical
 error message at the end of the running of make is exactly same what I
 found you wrote quite back in the blog
 http://osdir.com/ml/sage-devel/2014-05/msg00126.html.

 To mention it again, towards the end it reads as
 [...]
 OSError: [Errno 12] Cannot allocate memory


 Which part of this error message is unclear?

 Errno 12 = ENOMEM aka Out of memory.

 You'd have to close some other applications, install more RAM, or setup
 [more] swap space.  (Or try building the documentation with less
 threads, in case you were using more than one.)


 [Solved off-list; using 'env SAGE_NUM_THREADS=1 make' was sufficient.]

Thanks for posting. This is the sort of thing that could go in the README... ?




 -leif

 --
 () The ASCII Ribbon Campaign
 /\   Help Cure HTML E-Mail

 --
 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.



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

-- 
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.