Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Do not accept an ipython_dir that's not writeable #669

Closed
fperez opened this Issue · 2 comments

3 participants

@fperez
Owner

As reported by Eric Jones, a colleague found himself with this problem:

Pylab failed to start after an EPD install, and he was dead in the water.

After poking around, he has a HOMESHARE variable that is set to some strange directory he doesn't know about and also that he does not have write access to. As a result, ipython will not start up. This is a show stopper.

We should add a patch that checks if the get_ipython_dir() is writable. If it isn't, we should use the temp dir or something, or we should not try to write the ipythonrc file, or something. We want to ensure that file permissions don't result in the inabliity to start using the app.

Jason reported progress on the issue:

Ilan and I just looked at it and it appears to be a simple fix. path.py get_home_dir() checks a bunch of environment variables on different platforms looking for a home directory. It checks that the directory exists, but not that it's writable. We can just add check to issue a warning if a given directory isn't writable and move on to the next option.

@minrk minrk referenced this issue from a commit in minrk/ipython
@minrk minrk check for writable dirs, not just existence, in utils.path
replaces various calls to os.path.isdir and os.path.exists with _writable_dir.

closes gh-669
b1ec990
@minrk
Owner

See PR #670

@minrk minrk referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@minrk minrk referenced this issue from a commit in minrk/ipython
@minrk minrk use tempdir if no usable ipython_dir is found
add test for gh-669, and ignore nonexistent toy paths in other path tests.
2a8de3c
@epatters

@minrk fixed this, but issue was never closed. Just cleaning up here...

@epatters epatters closed this
@ellisonbg ellisonbg referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@ellisonbg ellisonbg referenced this issue from a commit
Commit has since been removed from the repository and is no longer available.
@mattvonrocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
@minrk minrk check for writable dirs, not just existence, in utils.path
replaces various calls to os.path.isdir and os.path.exists with _writable_dir.

closes gh-669
d0c64e3
@mattvonrocketstein mattvonrocketstein referenced this issue from a commit in mattvonrocketstein/ipython
@minrk minrk use tempdir if no usable ipython_dir is found
add test for gh-669, and ignore nonexistent toy paths in other path tests.
6e786db
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.