Reputation: 11
I get the following error when trying to open a Jupyter Notebook (using the command jupyter notebook) from the terminal on mac.
Traceback (most recent call last):
File "/Applications/anaconda3/bin/jupyter-notebook", line 11, in <module>
sys.exit(main())
File "/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", line 266, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "<decorator-gen-7>", line 2, in initialize
File "/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/anaconda3/lib/python3.6/site-packages/notebook/notebookapp.py", line 1531, in initialize
super(NotebookApp, self).initialize(argv)
File "<decorator-gen-6>", line 2, in initialize
File "/anaconda3/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", line 242, in initialize
self.migrate_config()
File "/anaconda3/lib/python3.6/site-packages/jupyter_core/application.py", line 168, in migrate_config
migrate()
File "/anaconda3/lib/python3.6/site-packages/jupyter_core/migrate.py", line 247, in migrate
with open(os.path.join(env['jupyter_config'], 'migrated'), 'w') as f:
PermissionError: [Errno 13] Permission denied: '/Users/Mridula/.jupyter/migrated'
I have tried to uninstall and re-install. I still face the same error. I have tried to clear the bash profile, to no avail.
Any help would be highly welcome and appreciated.
Best, Mridula
Upvotes: 1
Views: 1870
Reputation: 5152
I'm summarizing our conversations here as it helped you to resolve the problem.
There could be many possible options to address this issue. However, the very first approach to tackle this problem is to resolve permission issues. The last line of your error message is PermissionError: [Errno 13] Permission denied: '/Users/Mridula/.jupyter/migrated'
which means you don't have the right permission to access the .jupyter
directory.
Change file permission
sudo chmod -R 755 /Users/Mridula/.jupyter/
If this doesn't help then do the following steps
Hope it helps!
Upvotes: 2