Ask Your Question
1

Install nauty on macOS

asked 2015-05-27 13:19:36 +0200

N3mo gravatar image

I am trying to install nauty on my macos but When I used install_package("nauty") I got the following error

__main__:1:
************************************************************************\
********
The Sage function 'install_packages' is currently broken: it does not
correctly install new packages. Please use 'sage -i nauty' from a shell
prompt instead.
This issue is being tracked at
http://trac.sagemath.org/sage_trac/ticket/16759.
************************************************************************\
********

So I tried "sage -i nauty" from the terminal and I got the following error

[Traceback (most recent call last):
File "<stdin>", line 35, in <module>
File "/opt/homebrew-cask/Caskroom/sage/6.5/Sage-6.5.app/Contents/Resources/sage/local/lib/python/urllib.py",       line 240, in retrieve
 fp = self.open(url, data)
File "/opt/homebrew-cask/Caskroom/sage/6.5/Sage-6.5.app/Contents/Resources/sage/local/lib/python/urllib.py", line 208, in open
return getattr(self, name)(url)
File "/opt/homebrew-cask/Caskroom/sage/6.5/Sage-6.5.app/Contents/Resources/sage/local/lib/python/urllib.py", line 359, in open_http
return self.http_error(url, fp, errcode, errmsg, headers)
File "/opt/homebrew-cask/Caskroom/sage/6.5/Sage-6.5.app/Contents/Resources/sage/local/lib/python/urllib.py", line 376, in http_error
return self.http_error_default(url, fp, errcode, errmsg, headers)
File "<stdin>", line 17, in http_error_default
IOError: [Errno 404] Not Found: '//www.sagemath.org/spkg/optional/list'
Error: failed to download http://www.sagemath.org/spkg/optional/list, aborting

How should I install nauty now?!

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
1

answered 2015-05-27 14:47:58 +0200

kcrisman gravatar image

You can (right now) also get the spkg from a mirror (e.g. http://mirrors-usa.go-parts.com/sage/...), put it in upstream/, and do something like

$ ./sage -i upstream/nauty-25.spkg

which I just tried now and it seems to work.

edit flag offensive delete link more

Comments

1

Indeed. Note that "old-style" .spkg files need not to be located in upstream directory to work since they are self-contained, it is even possible to just provide an URL, e.g. sage -i http://mirrors-usa.go-parts.com/sage/sagemath/spkg/optional/nauty-25.spkg should work.

tmonteil gravatar imagetmonteil ( 2015-05-27 15:09:10 +0200 )edit

I can't upvote so Thank you it worked.

N3mo gravatar imageN3mo ( 2015-05-27 20:40:46 +0200 )edit

Great! You can "accept" the answer by clicking the check mark, so that others know this question was answered.

kcrisman gravatar imagekcrisman ( 2015-05-27 23:11:35 +0200 )edit
1

answered 2015-05-27 13:44:03 +0200

tmonteil gravatar image

updated 2015-05-27 13:48:53 +0200

Downloading packages recently moved from fetching a fixed URL to fetching a list of mirrors and use the fastest, so you should upgrade to Sage 6.7 to let it work. Then, you should be able to use sage -i nauty.

edit flag offensive delete link more

Comments

right now brew( macos package manager) only installs the 6.5 version.

N3mo gravatar imageN3mo ( 2015-05-27 19:41:38 +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

Stats

Asked: 2015-05-27 13:19:36 +0200

Seen: 715 times

Last updated: May 27 '15