Ask Your Question

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

asked 2014-06-29 15:35:06 +0200

Peter Luschny gravatar image

updated 2014-07-01 08:59:00 +0200

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 17:09:58 +0200 )edit

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

rws gravatar imagerws ( 2014-07-01 11:08:22 +0200 )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 21:16:54 +0200 )edit

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

slelievre gravatar imageslelievre ( 2014-07-16 00:04:18 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2014-07-01 00:57:37 +0200

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 12:00:39 +0200 )edit

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

niles gravatar imageniles ( 2014-07-01 14:06:29 +0200 )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 15:35:06 +0200

Seen: 595 times

Last updated: Jul 01 '14