Ask Your Question
1

.sage does not exist?

asked 2014-07-04 02:40:25 +0200

smbelcas gravatar image

I have a student, Mac OS X 10.7.5, installed the 10.6-app, startup takes her to Terminal, whence the server tries to start and give the error IPython parent 'Users/username/.sage' is not a writable location, using a temp directory. then a bunch of alarms and stuff, and OSError: [Errno 13] Permission denied: 'Users/username/.sage'

I tried reinstalling Sage, and got the same problem. How can I help this student?

edit retag flag offensive close merge delete

Comments

Oh, and I went to look at the directory Users/username/.sage and it didn't exist on the student's machine.

smbelcas gravatar imagesmbelcas ( 2014-07-04 03:22:47 +0200 )edit

Looks like permission problem. Is "username" the login name on that computer?

vdelecroix gravatar imagevdelecroix ( 2014-07-04 08:07:11 +0200 )edit

Indeed, the error indicates it's a permission problem. That doesn't indicate how to *solve* the problem. I'm substituting "username" to keep the student's anonymity. The student is a minor.

smbelcas gravatar imagesmbelcas ( 2014-07-04 14:02:03 +0200 )edit

Does the student have permission to create files in his/her own directory? As a test, can you see whether the student can create *any* files in Terminal in Users/username/? Certainly the file won't exist if the permissions aren't correct to create files. One could try to see what the user and group permissions are for Users/username/, but it's possible that e.g. parental controls might cause this to happen. For Sage to work, one does need that permission at least, I believe.

kcrisman gravatar imagekcrisman ( 2014-07-04 14:17:04 +0200 )edit

And what does "$ ls -l /Users/" says?

vdelecroix gravatar imagevdelecroix ( 2014-07-04 14:44:26 +0200 )edit

I won't trust the 10.6-app version, I'd rather go for the usual (terminal) version.

Dima gravatar imageDima ( 2014-07-04 15:02:39 +0200 )edit

Student doesn't have any parental controls on computer; also doesn't have computer in class this morning (we're not doing Sage all together until it's working for everyone for whom it will work) but I will check file creation abilities, permissions for Users/username/, and ls -l /Users/ this afternoon.

smbelcas gravatar imagesmbelcas ( 2014-07-04 15:23:40 +0200 )edit

Well! Good call, folks. It appears that student doesn't own her own user directory, and thus doesn't have write permissions there. (She does have write permissions in the Documents folder...) She is an admin user. At least now we know what the problem is. If anyone has a suggestion... It looks like '501' is the owner of the 'username' directory.

smbelcas gravatar imagesmbelcas ( 2014-07-05 01:52:53 +0200 )edit

...aaaaand it turns out the home directory didn't *have* an owner! One of my Apprentice Instructors figured out how to fix that and now all is good. Thanks for all your help!

smbelcas gravatar imagesmbelcas ( 2014-07-05 02:34:26 +0200 )edit

1 Answer

Sort by ยป oldest newest most voted
-2

answered 2014-07-04 07:09:06 +0200

Gregory Bard gravatar image

Personally, I think it is a serious mistake to install Sage locally on a personal computer. The Sage Cloud interface is far easier to use, requires no installation (it works through the web browser), and it brings you all the advantages of cloud computing---for example, your data lives forever on a server even if your laptop suffers some grave mishap. There are many features for sharing your work with others, and so forth. There's just no reason to bother with a local install.

https://cloud.sagemath.com/

Even simpler is the Sage Single-Cell Server which is great for small Sage tasks.

https://sagecell.sagemath.org/

edit flag offensive delete link more

Comments

This isn't really answering the question, though I see your point. However, given that a large percentage of the world (including in North America) is not online 100% of the time, this isn't a practical solution for everyone.

kcrisman gravatar imagekcrisman ( 2014-07-04 14:24:34 +0200 )edit

unless you have a very fast network always available (and this is not so if you sit at home on a ADSL via a phone line, as it will slow down at busy times, when your neighbours go online), a local install of Sage beats a remote one with one hand. And data loss can be beaten by backups (it's a bit unwise to fully rely on a free service like Sage Cloud for your crucial data; if you ask me it's unwise to fully trust just one remote service with your crucial data, even if you pay for it!).

Dima gravatar imageDima ( 2014-07-04 15:00:41 +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: 2014-07-04 02:40:25 +0200

Seen: 375 times

Last updated: Jul 04 '14