Ask Your Question

How do I use Sloane's Encyclopedia on Sage Math Cloud?

asked 2014-06-29 08:35:06 -0500

Peter Luschny gravatar image

updated 2014-07-01 01:59:00 -0500

Calling SloaneEncyclopedia.install() (in a IPython notebook) gives the IOError "Connection refused".

Update: The error has changed. It is now

/usr/local/sage/sage-6.2.rc2/local/lib/python/os.pyc in makedirs(name, mode)
    155         if tail == curdir:           # xxx/newdir/. exists if xxx/newdir exists
    156             return
--> 157     mkdir(name, mode)
    159 def removedirs(name):

OSError: [Errno 13] Permission denied: '/usr/local/sage/sage-6.2.rc2/local/share/sloane'

edit retag flag offensive close merge delete


Projects by default now have a firewall that blocks most outgoing connections. Exactly what ip addresses does `SloaneEncyclopedia.install()` use? Maybe I could unblock it...

William Stein gravatar imageWilliam Stein ( 2014-06-29 10:09:58 -0500 )edit

FWIW, works fine in a local Sage Version 6.3.beta4.

rws gravatar imagerws ( 2014-07-01 04:08:22 -0500 )edit

rws, for a local Sage it works also for older versions. The issue is (perhaps was, William changed something, I have not yet tested it) in the Cloud.

Peter Luschny gravatar imagePeter Luschny ( 2014-07-03 14:16:54 -0500 )edit

@William Stein: Apparently uses the ip, you could unblock that. Thanks!

slelievre gravatar imageslelievre ( 2014-07-15 17:04:18 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2014-06-30 17:57:37 -0500

Peter Luschny gravatar image

In the file sage/databases/ replace in the code

def install(self, oeis_url="", names_url="", overwrite=False):


def install(self, oeis_url="", names_url="", overwrite=False):

In the documentation of the install function replace

- ``oeis_url`` - string (default: "")


 - ``oeis_url`` - string (default: "")

and replace

- ``names_url`` - string (default: "")


- ``names_url`` - string (default: "")


edit flag offensive delete link more


This refers to By chance the next time I googled I got Here the definition of the install function is correct but not the documentation.

Peter Luschny gravatar imagePeter Luschny ( 2014-07-01 05:00:39 -0500 )edit

Thanks for pointing this out -- it is now tracked at

niles gravatar imageniles ( 2014-07-01 07:06:29 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-06-29 08:35:06 -0500

Seen: 334 times

Last updated: Jul 01 '14