Ask Your Question
1

.sage does not exist?

asked 2014-07-03 19:40:25 -0600

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-03 20:22:47 -0600 )edit

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

vdelecroix gravatar imagevdelecroix ( 2014-07-04 01:07:11 -0600 )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 07:02:03 -0600 )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 07:17:04 -0600 )edit

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

vdelecroix gravatar imagevdelecroix ( 2014-07-04 07:44:26 -0600 )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 08:02:39 -0600 )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 08:23:40 -0600 )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-04 18:52:53 -0600 )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-04 19:34:26 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
-2

answered 2014-07-04 00:09:06 -0600

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 07:24:34 -0600 )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 08:00:41 -0600 )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-03 19:40:25 -0600

Seen: 177 times

Last updated: Jul 04 '14