Conflict Jupyter and root-6.28/02 - MacOS Ventura 13.3

Hi,

I was trying to install the Jupyter notebook on my Mac. I did it with the command:

pip3 install notebook

That successfully installed the notebook on my Mac. Then when I ran the command:

jupyter notebook

And this is what I got:

Traceback (most recent call last):
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/bin/jupyter-notebook", line 33, in <module>
    sys.exit(load_entry_point('notebook==6.2.0', 'console_scripts', 'jupyter-notebook')())
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/lib/python3.9/site-packages/jupyter_core/application.py", line 254, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/lib/python3.9/site-packages/traitlets/config/application.py", line 844, in launch_instance
    app.initialize(argv)
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/lib/python3.9/site-packages/traitlets/config/application.py", line 87, in inner
    return method(app, *args, **kwargs)
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/lib/python3.9/site-packages/notebook/notebookapp.py", line 2077, in initialize
    super().initialize(argv)
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/lib/python3.9/site-packages/traitlets/config/application.py", line 87, in inner
    return method(app, *args, **kwargs)
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/lib/python3.9/site-packages/jupyter_core/application.py", line 229, in initialize
    self.migrate_config()
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/lib/python3.9/site-packages/jupyter_core/application.py", line 155, in migrate_config
    migrate()
  File "/usr/local/Cellar/jupyterlab/3.0.5/libexec/lib/python3.9/site-packages/jupyter_core/migrate.py", line 245, in migrate
    with open(os.path.join(env['jupyter_config'], 'migrated'), 'w') as f:
PermissionError: [Errno 13] Permission denied: '/Applications/root_v6.28.02/etc/notebook/migrated'

Do you any idea of what is going wrong?

Thanks

Hi Elia,

Welcome to the ROOT Community!
I think I do not see how ROOT is involved here: am I missing something?

Best,
D

Dear Danilo, thanks a lot for your answer.
I probably mis-interpreted the error message, but the last string where it says:

PermissionError: [Errno 13] Permission denied: '/Applications/root_v6.28.02/etc/notebook/migrated'

I thought was related to some issue with root. If I’m wrong, please ignore the message (unless you have a solution for my problem off the top of your head)

Thanks,

Elia

@etejedor I saw from another post that you answered to a similar problem. However, I didn’t install python via conda, but via pip3, is that any other possible solution but reinstall both root and python via conda?