Cannot upgrade for 4.5.1 to 4.5.2

5 views
Skip to first unread message

samrat

unread,
Aug 10, 2010, 5:06:01 AM8/10/10
to sage-support
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.

Daniel Harris

unread,
Aug 10, 2010, 11:47:08 AM8/10/10
to sage-s...@googlegroups.com
I just had the same error but a make clean and then  make again solved the problem
Dan


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

Mitesh Patel

unread,
Aug 10, 2010, 5:27:00 PM8/10/10
to sage-s...@googlegroups.com
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 <samlu...@gmail.com
> <mailto:samlu...@gmail.com>> 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.

samrat

unread,
Aug 11, 2010, 1:37:23 AM8/11/10
to sage-support
Hi,

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

On Aug 11, 2:27 am, Mitesh Patel <qed...@gmail.com> 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
>

Mitesh Patel

unread,
Aug 11, 2010, 5:27:38 AM8/11/10
to sage-s...@googlegroups.com


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?

samrat

unread,
Aug 11, 2010, 5:40:10 AM8/11/10
to sage-support
Hi,

# sage -upgrade ask
---> 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 <qed...@gmail.com> 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
> > Downloading packages fromhttp://www.sagemath.org//spkg

Mitesh Patel

unread,
Aug 13, 2010, 5:37:08 AM8/13/10
to sage-s...@googlegroups.com


What happens if you completely disable SELinux, at least temporarily,
and try again? On Fedora 12, at least, I can disable it with

echo 0 >| /selinux/enforce

and renable it with

echo 0 >| /selinux/enforce


By the way, this is what I see when I try upgrading from 4.5.1 on
sage.math.washington.edu:

sage-4.5.1$ ./sage -upgrade
Testing mirrors...

[2 ] boxen.math.washington.edu 49 [ms]
[16] www.cecm.sfu.ca 57 [ms]
[13] modular.math.jmu.edu 160 [ms]
[12] modular.fas.harvard.edu 171 [ms]
[4 ] ftp.kaist.ac.kr 253 [ms]
[3 ] echidna.maths.usyd.edu.au 295 [ms]
[6 ] ftp.sh.cvut.cz 357 [ms]
[8 ] mirror.aarnet.edu.au 357 [ms]
[9 ] mirror.switch.ch 371 [ms]
[17] www.mirrorservice.org 387 [ms]
[11] mirrors.fe.up.pt 430 [ms]
[14] sagemath.c3sl.ufpr.br 500 [ms]
[15] sunsite.rediris.es 547 [ms]
[5 ] ftp.leg.uct.ac.za 846 [ms]
[10] mirror.yandex.ru 1229 [ms]
[7 ] mira.sunsite.utk.edu 1780 [ms]

Automatically selected server www.cecm.sfu.ca (http://www.cecm.sfu.ca/sage/)
Downloading packages from http://www.cecm.sfu.ca/sage//spkg
Reading package lists.......... Done!
The following packages will be upgraded:

cvxopt-0.9.p9 examples-4.5.2 extcode-4.5.2 lcalc-20100428-1.23.p1
pari-2.3.5.p2 sage-4.5.2 sage_scripts-4.5.2 sagenb-0.8.2

** WARNING: This is a source-based upgrade, which could take hours,
** fail, and render your Sage install useless!!

Do you want to continue [y/N]?

I'm surprised that you don't see the mirror test, but the urllib problem
seems more fundamental. Could you also 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?

Thanks!

Mitesh Patel

unread,
Aug 13, 2010, 5:57:07 AM8/13/10
to sage-s...@googlegroups.com
On 08/13/2010 04:37 AM, Mitesh Patel wrote:
> On 08/11/2010 04:40 AM, samrat wrote:
>> ---> 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?
>
>
> What happens if you completely disable SELinux, at least temporarily,
> and try again? On Fedora 12, at least, I can disable it with
>
> echo 0 >| /selinux/enforce
>
> and renable it with
>
> echo 0 >| /selinux/enforce
>

The re-enabling command should be

echo 1 >| /selinux/enforce

samrat

unread,
Aug 17, 2010, 1:49:19 PM8/17/10
to sage-support
Hi,

Sorry for the late reply - the PC was not connected to the UPS and
there was a voltage surge. I am now waiting for a new PC !
Reply all
Reply to author
Forward
0 new messages