I tried to install sage from source and also from PPA on Ubuntu 12.10. Both of them finish the installation without any problem, but when I run sage I get the following error:
k1@Think1:~$ sagemath
| Sage Version 5.8, Release Date: 2013-03-15 | | Type "notebook()" for the browser-based notebook interface. | | Type "help()" for help. |
/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/utils/path.py:289: > UserWarning: IPython dir '/home/k1/.sage/ipython-0.12' is not a writable location, using a temp directory.
" using a temp directory."%ipdir)
Traceback (most recent call last):
File "/usr/lib/sagemath/local/bin/sage-ipython", line 14, in <module> app.initialize()
File "<string>", line 2, in initialize
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py", line 84, in catch_config_error
return method(app, args, *kwargs)
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/frontend/terminal/ipapp.py", line 313, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "<string>", line 2, in initialize
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/config/application.py", line 84, in catch_config_error
return method(app, args, *kwargs)
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/core/application.py", line 333, in initialize
self.load_config_file()
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/sage/misc/interpreter.py", line 693, in load_config_file
get_ipython_dir(), 'sage').location
File "/usr/lib/sagemath/local/lib/python2.7/site-packages/IPython/core/profiledir.py", line 209, in find_profile_dir_by_name
raise ProfileDirError('Profile directory not found in paths: %s' % dirname) ProfileDirError: Profile directory not found in paths: profile_sage
If you suspect this is an IPython bug, please report it at: https://github.com/ipython/ipython/issues or send an email to the mailing list at ipython-dev@scipy.org
You can print a more detailed traceback right now with "%tb", or use "%debug" to interactively debug it.
Extra-detailed tracebacks for bug-reporting purposes can be enabled via: c.Application.verbose_crash=True
But if I run it as root then it works fine. I have installed it all without root permission though. I thought it might be a permission problem and gave all the permissions for the files to the user k1, but still the problems exists.
So, I gained the permission to '/home/k1/.sage' and now it runs, but there are new errors:
[SageTerminalApp] Could not set security dir permissions to private.
[SageTerminalApp] Could not set pid dir permissions to private.
and I can't open the notebook().