Ask Your Question
0

Install sage in mac os 10.6.8

asked 2011-09-12 13:58:17 +0100

anonymous user

Anonymous

Hello, I am trying to install SAGE in a mac with os 10.6.8 without success so far. I get the following message:

'/Users/fernandocukierman/Desktop/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/'/sage --notebook You have mail. 214-235-16-190:~ fernandocukierman$ '/Users/fernandocukierman/Desktop/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/'/sage --notebook /Users/fernandocukierman/Desktop/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/sage-sage: line 607: sage-notebook: command not found

Thanks for your help. Yours, Fernando

edit retag flag offensive close merge delete

3 Answers

Sort by ยป oldest newest most voted
1

answered 2011-09-12 14:59:57 +0100

kcrisman gravatar image

updated 2011-09-12 22:48:53 +0100

What happens if you open a Terminal window (it's in Utilities) and do the following command?

/Users/fernandocukierman/Desktop/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/sage

This should start a command-line session.

Update after feedback:

Okay, it sounds like you do not have permissions for some reason. It's trying to set up your .sage folder, and your system is not allowing this. Can you now try the following, then try everything again?

  1. Open Terminal
  2. Do chmod a+w .sage/ (I think this is correct syntax)
  3. Try starting Sage from command line
  4. If all goes well, try the app again
edit flag offensive delete link more
0

answered 2011-09-12 20:41:06 +0100

Fernando gravatar image

updated 2011-09-13 05:42:47 +0100

niles gravatar image

Hello, thanks for your answer. When I enter the command you suggested I get the following:

----------------------------------------------------------------------
| Sage Version 4.7.1, Release Date: 2011-08-11                       |
| Type notebook() for the GUI, and license() for information.        |
----------------------------------------------------------------------
mkdir: /Users/fernandocukierman/.sage: Permission denied
cp: /Users/fernandocukierman/.sage: Permission denied
cp: /Users/fernandocukierman/Desktop/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/ipython: unable to copy extended attributes to /Users/fernandocukierman/.sage: Permission denied
cp: /Users/fernandocukierman/.sage/ipy_profile_sh.py: No such file or directory
cp: /Users/fernandocukierman/.sage/ipy_user_conf.py: No such file or directory
cp: /Users/fernandocukierman/.sage/ipythonrc: No such file or directory
cp: /Users/fernandocukierman/.sage/ipythonrc-math: No such file or directory
cp: /Users/fernandocukierman/.sage/ipythonrc-numeric: No such file or directory
cp: /Users/fernandocukierman/.sage/ipythonrc-physics: No such file or directory
cp: /Users/fernandocukierman/.sage/ipythonrc-pysh: No such file or directory
cp: /Users/fernandocukierman/.sage/ipythonrc-scipy: No such file or directory
cp: /Users/fernandocukierman/.sage/ipythonrc-tutorial: No such file or directory
/Users/fernandocukierman/Desktop/Sage-4.7.1-OSX-64bit-10.6.app/Contents/Resources/sage/local/bin/sage-sage: line 303: sage-ipython: command not found

Thanks, Fernando

edit flag offensive delete link more
0

answered 2011-11-12 20:38:35 +0100

roo gravatar image

Double-clicking the app doesn't work at all on Mac OSX 1.6.x. Using the command line doesn't work either: sage: notebook()

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/sage: line 39: /Users/admin/.sage/local/bin/sage-sage: No such file or directory

ValueError Traceback (most recent call last)

/Users/admin/.sage/<ipython console=""> in <module>()

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/notebook_object.pyc in __call__(self, args, *kwds) 215 """ 216 def __call__(self, args, *kwds): --> 217 return self.notebook(args, *kwds) 218 219 notebook = run_notebook.notebook_twisted

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/run_notebook.pyc in notebook_twisted(self, directory, port, interface, address, port_tries, secure, reset, accounts, require_login, server_pool, ulimit, timeout, open_viewer, sagetex_path, start_path, fork, quiet, subnets) 200 print '*' * 70 201 --> 202 nb = notebook.load_notebook(directory) 203 204 directory = nb._dir

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/notebook.pyc in load_notebook(dir, interface, port, secure) 1807 # mainly to avoid circular references, etc. This also means 1808 # only one notebook can actually be used at any point. -> 1809 import sagenb.notebook.twist 1810 sagenb.notebook.twist.notebook = nb 1811

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/devel/sagenb/sagenb/notebook/twist.py in <module>() 64 java_path = os.path.join(DATA) 65 ---> 66 jsmath_image_fonts = is_package_installed("jsmath-image-fonts") 67 68 # the list of users waiting to register

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/package.pyc in is_package_installed(package) 168 True 169 """ --> 170 return any(p.startswith(package) for p in install_package()) 171 172 def standard_packages():

/Applications/Sage-4.7.2-OSX-64bit-10.6.app/Contents/Resources/sage/local/lib/python2.6/site-packages/sage/misc/package.pyc in install_package(package, force) 125 if __installed_packages is None: 126 X = os.popen('sage -f').read().split('\n') --> 127 i = X.index('Currently installed packages:') 128 X = [Y for Y in X[i+1:] if Y != ''] 129 X.sort()

ValueError: list.index(x): x not in list

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2011-09-12 13:58:17 +0100

Seen: 1,591 times

Last updated: Nov 12 '11