-
Notifications
You must be signed in to change notification settings - Fork 5.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: [Errno 2] No such file or directory #2621
Comments
What does #1171 and #2301 are unrelated - same error message, but coming from another part of the code. ipython/ipython#9163 is an error that we now handle; the error you're seeing is coming from the code to handle that error. If an sqlite database is corrupt, we try to move it out of the way and replace it, but the error you're getting indicates that the corrupt database doesn't even exist. :-S |
I notice that all of those files are owned by root; that may well be part of the problem. Try running:
|
You are a master! I ran that, then opened jupyter-notebook and it finally works! Thank you very very much! May I ask what the problem was? Was it because I installed jupyter as root? |
I guess that you must have first tried running Jupyter as root, but with $HOME still set to your own home directory. It created all those files, but then you don't have full access when you run Jupyter as your own user. It's annoying that shows up as an SQLite error, which we then catch and try to handle, rather than a permission error. We can probably improve at least the error message for that. |
I see. Thank you for your time and help. I appreciate it very much! |
I'll reopen this for now - we can't exactly fix the underlying problem, but we can fail in a clearer way. |
In some circumstances, we can fail to connect to the SQLite database without creating the file. Then attempting to move it to the backup location fails as well. This catches that error and falls back to using an in-memory database for signatures. Closes jupyter/notebook#2621
jupyter/nbformat#97 should make this fall back to an in-memory signature database rather than crashing completely. |
I had to install Jupyter in order to complete Udacity's projects. After following the instructions, and running Jupyter, none of the notebooks would open. This is the log output:
I searched your issues and found some similar problems here, here, and here, without success.
I installed Anaconda, still the same problem.
Any help is much appreciated.
If I cannot solve this, how can I fully uninstall everything related to jupyter and anaconda? I am using Ubuntu 16.04.
Otherwise, is there any other way I can open a python notebook without jupyter? Maybe Spyder?
The text was updated successfully, but these errors were encountered: