Skip to content
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

After upgrading JupyterLab using pip, I started jupyter-lab from the windows command and got an error. #577

Open
acuenya opened this issue Feb 13, 2023 · 5 comments

Comments

@acuenya
Copy link

acuenya commented Feb 13, 2023

I updated JupyterLab with pip

pip install JupyterLab --upgrade

after that I tried to start from Windows PS command as always do: jupyter-lab and got the following error

C:\Users\cueny\AppData\Local\Programs\Python\Python39\lib\site-packages\traitlets\traitlets.py:1872: FutureWarning: ServerApp.preferred_dir config is deprecated in jupyter-server 2.0. Use FileContentsManager.preferred_dir instead
return self._get_trait_default_generator(names[0])(self)
[C 2023-02-13 11:24:56.237 ServerApp] Bad config encountered during initialization: is outside root contents directory

@acuenya acuenya added the bug label Feb 13, 2023
@welcome
Copy link

welcome bot commented Feb 13, 2023

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@deepspacewrong
Copy link

deepspacewrong commented Feb 15, 2023

Did you uninstall the old version first?

If yes, did you run your command line in administrator mode?

It looks like the problem is with the jupyter server. So I would highly recommend updating the server. which you can also do when you remove the current instillation and re-install it.

@acuenya
Copy link
Author

acuenya commented Feb 15, 2023

First time I installed JupyterLab in upgrade mode with pip: pip install JupyterLab --upgrade

I didn't do it but today I uninstalled JupyterLab, then I installed again as administrator and tried to run it as admin as well getting almost the same:

C:\WINDOWS\system32>jupyter-lab
[I 2023-02-15 09:53:36.427 ServerApp] Package jupyterlab took 0.0001s to import
[I 2023-02-15 09:53:36.440 ServerApp] Package jupyter_server_fileid took 0.0107s to import
[I 2023-02-15 09:53:36.484 ServerApp] Package jupyter_server_terminals took 0.0425s to import
[I 2023-02-15 09:53:36.714 ServerApp] Package jupyter_server_ydoc took 0.2295s to import
[I 2023-02-15 09:53:36.716 ServerApp] Package nbclassic took 0.0001s to import
[W 2023-02-15 09:53:36.725 ServerApp] A _jupyter_server_extension_points function was not found in nbclassic. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-02-15 09:53:36.727 ServerApp] Package notebook_shim took 0.0001s to import
[W 2023-02-15 09:53:36.728 ServerApp] A _jupyter_server_extension_points function was not found in notebook_shim. Instead, a _jupyter_server_extension_paths function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server.
[I 2023-02-15 09:53:36.748 ServerApp] jupyter_server_fileid | extension was successfully linked.
[I 2023-02-15 09:53:36.764 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2023-02-15 09:53:36.778 ServerApp] jupyter_server_ydoc | extension was successfully linked.
[W 2023-02-15 09:53:36.803 ServerApp] notebook_dir is deprecated, use root_dir
[I 2023-02-15 09:53:36.804 ServerApp] jupyterlab | extension was successfully linked.
[I 2023-02-15 09:53:36.821 ServerApp] nbclassic | extension was successfully linked.
[I 2023-02-15 09:53:37.893 ServerApp] notebook_shim | extension was successfully linked.
C:\Users\cueny\AppData\Local\Programs\Python\Python39\lib\site-packages\traitlets\traitlets.py:1872: FutureWarning: ServerApp.preferred_dir config is deprecated in jupyter-server 2.0. Use FileContentsManager.preferred_dir instead
return self._get_trait_default_generator(names[0])(self)
[C 2023-02-15 09:53:37.901 ServerApp] Bad config encountered during initialization: is outside root contents directory

versions I have installed of several jupyter apps.

jupyter 1.0.0
jupyter-cache 0.5.0
jupyter_client 7.4.9
jupyter-console 6.4.4
jupyter_core 5.2.0
jupyter-events 0.5.0
jupyter-server 1.23.5
jupyter_server_fileid 0.6.0
jupyter_server_ydoc 0.6.1
jupyter-ydoc 0.2.2
jupyterlab 3.6.1
jupyterlab-pygments 0.2.2
jupyterlab_server 2.19.0
jupyterlab-widgets 3.0.2

@mbektas
Copy link
Member

mbektas commented Feb 15, 2023

@acuenya are you trying to upgrade jupyterlab Python package or the JupyterLab Desktop application?
If you want to upgrade the desktop application, you can uninstall using these Windows uninstall instructions and then install the new version using the Windows installer.
App UI will prompt if you are using a custom but incompatible Python environment. Desktop App bundles a Python environment installer and will install the Python packages you need to get started with one click.

@JasonWeill
Copy link

Triage notes: This can be improved in documentation for users who are upgrading.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants