On 09/12/2010 07:52 AM, samrat wrote:
> I installed 4.5.2 from source but i am unable to upgrade from 4.5.2 to
> 4.5.3 using sage -upgrade.
> 
> i am using CentOS 5.5 with SELinux in permissive mode. I get the
> errors:
> 
> [r...@localhost Desktop]# sage -upgrade
> Downloading packages from http://www.sagemath.org//spkg
> Reading package lists...
> Traceback (most recent call last):
>   File "/usr/local/pkgs/sage_4/local/bin/sage-update", line 357, in
> <module>
>     do_update()
>   File "/usr/local/pkgs/sage_4/local/bin/sage-update", line 266, in
> do_update
>     packages = spkg_list('standard')
>   File "/usr/local/pkgs/sage_4/local/bin/sage-update", line 202, in
> spkg_list
>     urllib.urlretrieve(web_url, file, reporthook)
>   File "/usr/local/pkgs/sage_4/local/lib/python/urllib.py", line 94,
> in urlretrieve
>     return _urlopener.retrieve(url, filename, reporthook, data)
>   File "/usr/local/pkgs/sage_4/local/lib/python/urllib.py", line 238,
> in retrieve
>     fp = self.open(url, data)
>   File "/usr/local/pkgs/sage_4/local/lib/python/urllib.py", line 206,
> in open
>     return getattr(self, name)(url)
>   File "/usr/local/pkgs/sage_4/local/lib/python/urllib.py", line 345,
> in open_http
>     h.endheaders()
>   File "/usr/local/pkgs/sage_4/local/lib/python/httplib.py", line 892,
> in endheaders
>     self._send_output()
>   File "/usr/local/pkgs/sage_4/local/lib/python/httplib.py", line 764,
> in _send_output
>     self.send(msg)
>   File "/usr/local/pkgs/sage_4/local/lib/python/httplib.py", line 723,
> in send
>     self.connect()
>   File "/usr/local/pkgs/sage_4/local/lib/python/httplib.py", line 704,
> in connect
>     self.timeout)
>   File "/usr/local/pkgs/sage_4/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/local/bin/sage-update", line 357, in
> <module>
>     do_update()
>   File "/usr/local/pkgs/sage_4/local/bin/sage-update", line 266, in
> do_update
>     packages = spkg_list('standard')
>   File "/usr/local/pkgs/sage_4/local/bin/sage-update", line 202, in
> spkg_list
>     urllib.urlretrieve(web_url, file, reporthook)
>   File "/usr/local/pkgs/sage_4/local/lib/python/urllib.py", line 94,
> in urlretrieve
>     return _urlopener.retrieve(url, filename, reporthook, data)
>   File "/usr/local/pkgs/sage_4/local/lib/python/urllib.py", line 238,
> in retrieve
>     fp = self.open(url, data)
>   File "/usr/local/pkgs/sage_4/local/lib/python/urllib.py", line 206,
> in open
>     return getattr(self, name)(url)
>   File "/usr/local/pkgs/sage_4/local/lib/python/urllib.py", line 345,
> in open_http
>     h.endheaders()
>   File "/usr/local/pkgs/sage_4/local/lib/python/httplib.py", line 892,
> in endheaders
>     self._send_output()
>   File "/usr/local/pkgs/sage_4/local/lib/python/httplib.py", line 764,
> in _send_output
>     self.send(msg)
>   File "/usr/local/pkgs/sage_4/local/lib/python/httplib.py", line 723,
> in send
>     self.connect()
>   File "/usr/local/pkgs/sage_4/local/lib/python/httplib.py", line 704,
> in connect
>     self.timeout)
>   File "/usr/local/pkgs/sage_4/local/lib/python/socket.py", line 516,
> in create_connection
>     raise error, msg
> IOError: [Errno socket error] timed out
> Error getting new packages!
> 
> I had a similar problem with 4.5.1 to 4.5.2 which never got resolved.
> The old thread is below. Please advise.
> 
> http://groups.google.com/group/sage-support/browse_thread/thread/e832735534d551d8/32474c6afc3a2b7b?lnk=gst&q=4.5.2#32474c6afc3a2b7b


Could you report what happens with

sage: import urllib
sage: urllib.urlretrieve('http://www.sagemath.org//spkg', 'test.html')
('test.html', <httplib.HTTPMessage instance at 0x47788c0>)
sage:

?  This should write a file test.html in the current directory.

Just to be sure, is

http://www.sagemath.org//spkg

accessible from a browser?

-- 
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URL: http://www.sagemath.org

Reply via email to