[sage-support] Re: Superimpose various region_plot's

2010-08-11 Thread Jason Grout

On 7/14/10 11:27 AM, David Sanders wrote:


I have been playing with this a bit, and have found some problems.

Firstly, with this code it seems not to be possible to make a
region_plot *without* specifying opacity -- it looks like a default
argument is missing somewhere.



I've noted this on the trac ticket; thanks.



But the main problem is the same one as I started with. Currently,
each region_plot paints the part which is not "inside" the region in
white (by default), as opposed to leaving it "blank". This means that
when opacity != 0.5, the second plot drawn still partially hides the
first.




Ah, so outcol should by default be set to a 100% transparent color?

I'm having difficulty getting matplotlib to draw a contour plot with a 
color map where one of the colors is transparent.



My preferred behaviour would be simply to not draw anything if, for
example, outcol == None.

Perhaps this is not the right place for this discussion (is that the
sage-devel list?), but I tried to modify the code to do this, by
checking for outcol as follows:

if outcol:
 g.add_primitive(ContourPlot(xy_data_array, xrange,yrange,
 dict(contours=[-1e307, 0, 1e307],
cmap=cmap, fill=True, **options)))
else:
 g.add_primitive(ContourPlot(xy_data_array, xrange,yrange,
 dict(contours=[-1e307, 0], cmap=cmap,
 fill=True, **options)))

(I also checked for it where it is converted to an rgbcolor.)

So if outcol==None, then it should only fill the negative region,
which corresponds to where the arguments are true.

However, I never got this to work, apparently because I don't
understand properly what the cmap object does and how it works.
Directly in matplotlib I did manage to do what I wanted, but not
specifying a cmap. Here I can't seem to get it quite right, but it
seems to me like this is the right direction to go in.

Can somebody enlighten me on cmap?



(yes, I know this is an old thread---I'm catching up...)

How did you get it to work in matplotlib?

The documentation for matplotlib cmaps (i.e., "color maps"---classes 
that convert a scalar to an rgba color with transparency) is here:


http://matplotlib.sourceforge.net/api/cm_api.html

See also:

http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.Colormap

http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.LinearSegmentedColormap

http://matplotlib.sourceforge.net/api/colors_api.html#matplotlib.colors.ListedColormap

Thanks,

Jason

--
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: fast_float() trashes worksheet namespace

2010-08-11 Thread Jason Grout

On 7/24/10 2:16 PM, Simon King wrote:

Hi Jason,

On 24 Jul., 19:54, Jason Grout  wrote:

Or it sounds like the computation probably is crashing the Sage instance
with a MemoryError.  After the crash, when a new Sage instance is
started, nothing is defined anymore, of course, so it appears the
workspace was trashed.


No, it seems to go beyond that. Even when I evaluate a cell containing
the number 1 or a string (so, no variable), there is no output. And it
can not be the reason that there is an undefined variable: There is no
output *and* no error. Nothing. Even if in a subsequent cell I use a
clearly non-existing variable, there is no NameError.



Then it seems like the Sage instance crashed, and so is not responding, 
doesn't it?  That has been my experience when I've seen these 
symptoms---the backend Sage instance crashed and stopped responding to 
the server's requests.






The worksheet indicates that it is busy working (by alternating / and
\ appearing in the page title), but it still accepts input.


That is your web browser doing those things.  The backend Sage instance 
doing the computations isn't affecting those functions.


Jason

--
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: evaluating numerically a function expression

2010-08-11 Thread Jason Grout

On 7/25/10 3:46 PM, Maurizio wrote:

is there any form of pattern matching in sage?
that should be the basic tool to do something like you mentioned, is
it correct?



Yes, there is pattern matching.  See

http://sagemath.org/doc/reference/sage/symbolic/expression.html?highlight=wildcard#sage.symbolic.expression.Expression.match

or

http://sagemath.org/doc/reference/sage/symbolic/ring.html?highlight=wildcard#sage.symbolic.ring.SymbolicRing.wild

for example.

Jason

--
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: help! windows crash -> sage inaccessible from host browser

2010-08-11 Thread Rolandb
On 11 aug, 22:36, Josh  wrote:
> This is probably completely noobish of me, but I really need help
> solving the following problem (which has now occurred for the second
> time).  First, the setup:
>
> Sage Version 4.3
> VirtualBox 3.1.4
> Windows 7
> Firefox 3.6.8
>
> My machine crashed with the VM running Sage.  When I rebooted, I
> restarted VirtualBox, restarted the VM, and pointed the (host) browser
> to Sage's IP (192.168.56.101).  No dice: I get a "Firefox can't
> establish a connection to the server at 192.168.56.101."  Furthermore,
> pinging 192.168.56.101 from a command prompt gives 4 healthy <1ms
> responses.
>
> Inside the VM, opening Firefox and pointing it 
> tohttp://localhost:8000/home/admin/
> initially gave a "can't establish connection" error.  Then I clicked
> on the "sage:prompt" icon and typed "notebook()".  The result was that
> now the VM browser does display the "Active Worksheets" page
> correctly, although Sage threw the following at me:
>
> The notebook files are stored in: sage_notebook.sagenb
> **
> *                                                *
> * Open your web browser tohttp://localhost:8000*
> *                                                *
> **
> Removing stale pidfile /home/sage/.sage/sage_notebook.sagenb/
> twistd.pid
> 2010-08-11 13:11:24-0700 [-] Log opened.
> 2010-08-11 13:11:24-0700 [-] twistd 8.2.0 (/sage/sage/local/bin/python
> 2.6.2) st
> arting up.
> 2010-08-11 13:11:24-0700 [-] reactor class:
> twisted.internet.selectreactor.Selec
> tReactor.
> 2010-08-11 13:11:24-0700 [-] twisted.web2.channel.http.HTTPFactory
> starting on 8
> 000
> 2010-08-11 13:11:24-0700 [-] Starting factory
>  tory instance at 0xb752b2c>
>
> The host browser still does not see 192.168.56.101.  Please help!
>
> Thanks,
> Josh

Josh, I encountered this problem often so I became frustrated...
My advice is to switch immediately to the VMplayer route and do not
use Virtualbox anymore.
(VMplayer has improved a lot)
Look at the download page http://wiki.sagemath.org/DownloadAndInstallationGuide
what to do,
and follow the instructions at 
http://groups.google.com/group/sage-support/t/7e82f6dc7b4f5065
Before you switch, do NOT forget to download ALL your worksheet files
first!
Success! Roland



-- 
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: VMware memory allocation: how to change it with version 4.5.2?

2010-08-11 Thread Rolandb


On 11 aug, 23:45, Alex Ghitza  wrote:
> Hi,
>
> On Wed, 11 Aug 2010 10:02:03 -0700 (PDT), Rolandb  wrote:
> > But there is a difference with (for instance) Sage 4.1.
> > With Sage 4.1 I could change the memory allocation via the option VM
> > Settings.
>
> > With Sage 4.5.2. the allocation is only 512Mb, and can't be changed.
> > Any solution at hand? Thanks in advance!
>
> Here is a little experiment I ran: I just tried to change the RAM
> allocation for the latest vmware image, and could not.  At the top of
> the corresponding settings window, vmware tells me: "Disabled items
> cannot be changed until the virtual machine is powered off.  To make
> these changes, first resume the virtual machine and then shut it down."
>
> In other words, one cannot change the RAM allocation for a virtual
> machine that is currently running or suspended, but only for machines
> that are powered off.  I powered mine off and was able to change the
> settings.
>
> Best,
> Alex
>

Tnx Alex!

I suggest that the following guideline could be added to the
documentation (http://www.sagemath.org/mirror/win/README.txt):
* download VMware
  - please check around every three months whether there is a new
WMware version! Currently use version 3.1.
* start Sage
* If it works correctly, you see three icons: Sage notebook, Sage and
Terminal
  i) Start Sage notebook
  ii) you will see a web-address message like http://192.168.231.12x/.
Remember it!
  - if you do not see a web-address message, you can use Sage
within Ubuntu but you cannot use Sage in Windows

  Now do some quick tests, mainly to ensure that the system settings
are optimal.
  iii) Open the worksheet Test. Check whether all calculations and
graphics work properly and fast(!)
 - if no reaction: please notify sage-support with all the
information about your system, error messages et cetera
 - if graphics does not show up nicely: install missing software
and/or try different screen settings
 - if Sage is slow, please notify sage-support with all the
information about your system
  iv) Close the worksheet Test, close Sage notebook, close VMplayer
  v) Open VMplayer directly (search for VMplayer.exe)
  - You will see the virtual application Sage.
  - If you point to it, on the left screen you are able to change
the memory settings. Go for the max!
  - start Sage application (nothing else!), and minimize the
screen
  - start your web browser (Firefox 3.6 or better), and use the
address 192.168.231.12x
  - check Test again
The Sage world is yours!

When a release is made, the above steps should be tested.

* The main reason for the extra steps is that VMplayer now allows a
different memory allocation per application, but standard is 512MB.

If I can contribute further, please let me know.

Roland

> --
> Alex Ghitza --http://aghitza.org/
> Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
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] VMware memory allocation: how to change it with version 4.5.2?

2010-08-11 Thread Alex Ghitza

Hi,

On Wed, 11 Aug 2010 10:02:03 -0700 (PDT), Rolandb  wrote:
> But there is a difference with (for instance) Sage 4.1.
> With Sage 4.1 I could change the memory allocation via the option VM
> Settings.
> 
> With Sage 4.5.2. the allocation is only 512Mb, and can't be changed.
> Any solution at hand? Thanks in advance!

Here is a little experiment I ran: I just tried to change the RAM
allocation for the latest vmware image, and could not.  At the top of
the corresponding settings window, vmware tells me: "Disabled items
cannot be changed until the virtual machine is powered off.  To make
these changes, first resume the virtual machine and then shut it down."

In other words, one cannot change the RAM allocation for a virtual
machine that is currently running or suspended, but only for machines
that are powered off.  I powered mine off and was able to change the
settings.


Best,
Alex


-- 
Alex Ghitza -- http://aghitza.org/
Lecturer in Mathematics -- The University of Melbourne -- Australia

-- 
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: problem with installation ??

2010-08-11 Thread julien
Ok I finally compiled it myself, It work fine !!! thanks !!!


On Aug 9, 5:28 pm, julien  wrote:
> Thanks for the answer, I downloaded the new version on the website
> (version 4.5)
> and I followed this tutorial :https://help.ubuntu.com/community/SAGE
> unfortunately I have still problems :
>
> (I guess I will try to compile it myself, is there any clear tutorial
> to do that ?)
>
> Just for info: here is the problems I have :
>
> thanks!
> Julien
>
> jul...@harvardo:~$ sage
> --
> | Sage Version 4.5, Release Date: 2010-07-16                         |
> | Type notebook() for the GUI, and license() for information.        |
> --
> ---
> ImportError                               Traceback (most recent call
> last)
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/bin/
>  in ()
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/sage/misc/preparser_ipython.py in ()
>       6
> ###
>
>       7
> > 8 import sage.misc.interpreter
>       9
>      10 import preparser
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/sage/misc/interpreter.py in ()
>     100
>     101 import os
> --> 102 import log
>     103
>     104 import remote_file
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/sage/misc/log.py in ()
>      63
>      64 import interpreter
> ---> 65 import latex
>      66 import misc
>      67
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/sage/misc/latex.py in ()
>      38 import random
>      39
> ---> 40 from misc import tmp_dir, graphics_filename
>      41 import sage_eval
>      42 from sage.misc.misc import SAGE_DOC
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/sage/misc/misc.py in ()
>      36
>      37 import operator, os, stat, socket, sys, signal, time, weakref,
> resource, math
> ---> 38 import sage.misc.prandom as random
>      39
>      40 from banner import version, banner
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/sage/misc/prandom.py in ()
>      54 # setting seeds should only be done through
> sage.misc.randstate .
>
>      55
> ---> 56 from sage.misc.randstate import current_randstate
>      57
>      58 def _pyrand():
>
> ImportError: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not
> found (required by /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-
> Linux/local/lib/libpari-gmp.so.2)
> WARNING: Failure executing code: 'import sage.misc.preparser_ipython;
> sage.misc.preparser_ipython.magma_colon_equals=True'
> ---
> ImportError                               Traceback (most recent call
> last)
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/IPython/ipmaker.pyc in force_import(modname)
>      64         reload(sys.modules[modname])
>      65     else:
> ---> 66         __import__(modname)
>      67
>      68
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/bin/
> ipy_profile_sage.py in ()
>       1 import os
>       2 if 'SAGE_CLEAN' not in os.environ:
> > 3     import sage.misc.misc
>       4     from sage.misc.interpreter import preparser, _ip
>       5     preparser(True)
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/sage/misc/misc.py in ()
>      36
>      37 import operator, os, stat, socket, sys, signal, time, weakref,
> resource, math
> ---> 38 import sage.misc.prandom as random
>      39
>      40 from banner import version, banner
>
> /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-Linux/local/lib/
> python2.6/site-packages/sage/misc/prandom.py in ()
>      54 # setting seeds should only be done through
> sage.misc.randstate .
>
>      55
> ---> 56 from sage.misc.randstate import current_randstate
>      57
>      58 def _pyrand():
>
> ImportError: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not
> found (required by /opt/sage-4.5-linux-32bit-ubuntu_10.04_lts-i686-
> Linux/local/lib/libpari-gmp.so.2)
> Error importing ipy_profile_sage - perhaps you should run %upgrade?
> WARNING: Loading of ipy_profile_sage failed.
>
> WARNING: Readline services not available on this platform.
> WARNING: The auto-indent feature requires the readline library
> 
>
> On Aug 5, 10:56 am, kcrisman  wrote:
>
> > Dear Julien,
>
> > You should probably check outhttp://www.sagemath.org/download-linux.html
> > .  For instance, a 32-bit Ubuntu 10.04 build seems to be available at
> > e.g.http://ftp.sh.cvut.cz/MIRRORS/sagemath/linux/32bit/sage

[sage-support] Re: plotting on-screen with pylab in sage -python

2010-08-11 Thread Greg
Thanks for the post - I was having the same problem and used your post
to figure things out :)
Anyways, it turns out that wxPython and pyqt are both available as
Sage packages. They are available under the experimental package
listing:
http://www.sagemath.org/packages/experimental/

So there is no guarantee that either package will work but I was able
to install wxPython.

Greg

-- 
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] help! windows crash -> sage inaccessible from host browser

2010-08-11 Thread Josh
This is probably completely noobish of me, but I really need help
solving the following problem (which has now occurred for the second
time).  First, the setup:

Sage Version 4.3
VirtualBox 3.1.4
Windows 7
Firefox 3.6.8

My machine crashed with the VM running Sage.  When I rebooted, I
restarted VirtualBox, restarted the VM, and pointed the (host) browser
to Sage's IP (192.168.56.101).  No dice: I get a "Firefox can't
establish a connection to the server at 192.168.56.101."  Furthermore,
pinging 192.168.56.101 from a command prompt gives 4 healthy <1ms
responses.

Inside the VM, opening Firefox and pointing it to 
http://localhost:8000/home/admin/
initially gave a "can't establish connection" error.  Then I clicked
on the "sage:prompt" icon and typed "notebook()".  The result was that
now the VM browser does display the "Active Worksheets" page
correctly, although Sage threw the following at me:

The notebook files are stored in: sage_notebook.sagenb
**
**
* Open your web browser to http://localhost:8000 *
**
**
Removing stale pidfile /home/sage/.sage/sage_notebook.sagenb/
twistd.pid
2010-08-11 13:11:24-0700 [-] Log opened.
2010-08-11 13:11:24-0700 [-] twistd 8.2.0 (/sage/sage/local/bin/python
2.6.2) st
arting up.
2010-08-11 13:11:24-0700 [-] reactor class:
twisted.internet.selectreactor.Selec
tReactor.
2010-08-11 13:11:24-0700 [-] twisted.web2.channel.http.HTTPFactory
starting on 8
000
2010-08-11 13:11:24-0700 [-] Starting factory


The host browser still does not see 192.168.56.101.  Please help!

Thanks,
Josh

-- 
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] VMware memory allocation: how to change it with version 4.5.2?

2010-08-11 Thread Rolandb
Hi,

VMware is supported again which I appriciate very much.

But there is a difference with (for instance) Sage 4.1.
With Sage 4.1 I could change the memory allocation via the option VM
Settings.

With Sage 4.5.2. the allocation is only 512Mb, and can't be changed.
Any solution at hand? Thanks in advance!

Roland

-- 
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: Cannot upgrade for 4.5.1 to 4.5.2

2010-08-11 Thread samrat
Hi,

# sage -upgrade ask

Downloading packages from http://www.sagemath.org//spkg
Reading package lists...
Traceback (most recent call last):
  File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 357, in

do_update()
  File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 266, in
do_update
packages = spkg_list('standard')
  File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 202, in
spkg_list
urllib.urlretrieve(web_url, file, reporthook)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line 94,
in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
238, in retrieve
fp = self.open(url, data)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
206, in open
return getattr(self, name)(url)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
345, in open_http
h.endheaders()
  File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
892, in endheaders
self._send_output()
  File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
764, in _send_output
self.send(msg)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
723, in send
self.connect()
  File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
704, in connect
self.timeout)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/socket.py", line
516, in create_connection
raise error, msg
IOError: [Errno socket error] timed out
Error getting new packages!
Double checking that all packages have been installed.
Downloading packages from http://www.sagemath.org//spkg
Reading package lists...
Traceback (most recent call last):
  File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 357, in

do_update()
  File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 266, in
do_update
packages = spkg_list('standard')
  File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 202, in
spkg_list
urllib.urlretrieve(web_url, file, reporthook)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line 94,
in urlretrieve
return _urlopener.retrieve(url, filename, reporthook, data)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
238, in retrieve
fp = self.open(url, data)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
206, in open
return getattr(self, name)(url)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
345, in open_http
h.endheaders()
  File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
892, in endheaders
self._send_output()
  File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
764, in _send_output
self.send(msg)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
723, in send
self.connect()
  File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
704, in connect
self.timeout)
  File "/usr/local/pkgs/sage_4.5/local/lib/python/socket.py", line
516, in create_connection
raise error, msg
IOError: [Errno socket error] timed out
Error getting new packages!

---> SELinux in in 'enforcing' mode. Initially (after installing) i
had some problem with SELinux and so as root i had run: chcon -t
textrel_shlib_t /usr/local/pkgs/sage_4.5/local/lib/libpari-gmp.so.2.
After this i could invoke sage as non-root user. But i am upgrading as
root. Does this help?

On Aug 11, 2:27 pm, Mitesh Patel  wrote:
> On 08/11/2010 12:37 AM, samrat wrote:
>
>
>
> > Here is the output of the command sage -upgrade. I installed and am
> > upgrading as root. I am using CentOS 5.5 as a single user.
>
> > #  sage -upgrade
> > Downloading packages fromhttp://www.sagemath.org//spkg
> > Reading package lists...
> > Traceback (most recent call last):
> >   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 357, in
> > 
> >     do_update()
> >   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 266, in
> > do_update
> >     packages = spkg_list('standard')
> >   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 202, in
> > spkg_list
> >     urllib.urlretrieve(web_url, file, reporthook)
> >   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line 94,
> > in urlretrieve
> >     return _urlopener.retrieve(url, filename, reporthook, data)
> >   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> > 238, in retrieve
> >     fp = self.open(url, data)
> >   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> > 206, in open
> >     return getattr(self, name)(url)
> >   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> > 345, in open_http
> >     h.endheaders()
> >   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> > 892, in endheaders
> >     self._send_output()
> >   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> > 764, in _send_output
> >     self.send(msg)
> >   File "/usr/local/pkgs/sa

Re: [sage-support] Re: Cannot upgrade for 4.5.1 to 4.5.2

2010-08-11 Thread Mitesh Patel
On 08/11/2010 12:37 AM, samrat wrote:
> Here is the output of the command sage -upgrade. I installed and am
> upgrading as root. I am using CentOS 5.5 as a single user.
> 
> #  sage -upgrade
> Downloading packages from http://www.sagemath.org//spkg
> Reading package lists...
> Traceback (most recent call last):
>   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 357, in
> 
> do_update()
>   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 266, in
> do_update
> packages = spkg_list('standard')
>   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 202, in
> spkg_list
> urllib.urlretrieve(web_url, file, reporthook)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line 94,
> in urlretrieve
> return _urlopener.retrieve(url, filename, reporthook, data)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> 238, in retrieve
> fp = self.open(url, data)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> 206, in open
> return getattr(self, name)(url)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> 345, in open_http
> h.endheaders()
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> 892, in endheaders
> self._send_output()
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> 764, in _send_output
> self.send(msg)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> 723, in send
> self.connect()
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> 704, in connect
> self.timeout)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/socket.py", line
> 516, in create_connection
> raise error, msg
> IOError: [Errno socket error] timed out
> Error getting new packages!
> Double checking that all packages have been installed.
> Downloading packages from http://www.sagemath.org//spkg
> Reading package lists...
> Traceback (most recent call last):
>   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 357, in
> 
> do_update()
>   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 266, in
> do_update
> packages = spkg_list('standard')
>   File "/usr/local/pkgs/sage_4.5/local/bin/sage-update", line 202, in
> spkg_list
> urllib.urlretrieve(web_url, file, reporthook)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line 94,
> in urlretrieve
> return _urlopener.retrieve(url, filename, reporthook, data)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> 238, in retrieve
> fp = self.open(url, data)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> 206, in open
> return getattr(self, name)(url)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/urllib.py", line
> 345, in open_http
> h.endheaders()
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> 892, in endheaders
> self._send_output()
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> 764, in _send_output
> self.send(msg)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> 723, in send
> self.connect()
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/httplib.py", line
> 704, in connect
> self.timeout)
>   File "/usr/local/pkgs/sage_4.5/local/lib/python/socket.py", line
> 516, in create_connection
> raise error, msg
> IOError: [Errno socket error] timed out
> Error getting new packages!


We should handle this exception, though I'm not sure about what exactly
is causing it.  Could you try

sage -upgrade ask

?  Harald, do you happen to see what's going on?


> On Aug 11, 2:27 am, Mitesh Patel  wrote:
>> On 08/10/2010 10:47 AM, Daniel Harris wrote:
>>> I just had the same error but a make clean and then  make again solved
>>> the problem
>>> Dan
>>
>>> On Tue, Aug 10, 2010 at 10:06 AM, samrat >> > wrote:
>>
>>> Hi,
>>
>>> I installed 4.5.1 from source. Now i am unable to upgrade from 4.5.1
>>> to 4.5.1. I ran the command: sage -upgrade
>>
>>> The last couple of lines of the error are:
>>
>>> IOError: [Errno socket error] timed out
>>> Error getting new packages!
>>
>>> Kindly advise. Thanks.
>>
>> Maybe the selected upgrade mirror did not later respond during package
>> download?  If you still have it, could you paste the entire output of
>> 'sage -upgrade'?  That could help to narrow the list of possibilities.

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