Hi, I am getting this launch error every time I am trying to open Jupyter Notebook through anaconda. I even tried to reinstall anaconda which didn’t help. Can someone help here in this community?
Traceback (most recent call last):
File “C:\Users\shubh\anaconda3\Scripts\jupyter-notebook-script.py”, line 6, in
from notebook.notebookapp import main
File “C:\Users\shubh\anaconda3\lib\site-packages\notebook\notebookapp.py”, line 44, in
from jinja2 import Environment, FileSystemLoader
File “C:\Users\shubh\anaconda3\lib\site-packages\jinja2_init_.py”, line 12, in
from .environment import Environment
File “C:\Users\shubh\anaconda3\lib\site-packages\jinja2\environment.py”, line 25, in
from .defaults import BLOCK_END_STRING
File “C:\Users\shubh\anaconda3\lib\site-packages\jinja2\defaults.py”, line 3, in
from .filters import FILTERS as DEFAULT_FILTERS # noqa: F401
File “C:\Users\shubh\anaconda3\lib\site-packages\jinja2\filters.py”, line 13, in
from markupsafe import soft_unicode
ImportError: cannot import name ‘soft_unicode’ from ‘markupsafe’ (C:\Users\shubh\AppData\Roaming\Python\Python39\site-packages\markupsafe_init_.py)
It seems that your installation has an incorrect version of markupsafe or jinja2. You could try upgrading/downgrading one of those, but it is difficult to say for certain without more information. Could you share your conda list and pip list?
Hello, I get this application launch error every time I try to open Jupyter Notebook through the Anaconda nav. I even tried reinstalling Anaconda which didn’t help. when I tried to update Anaconda 2.6.2 there was no option to update update it. Can someone help here in this community?
[I 2024-07-30 02:34:04.033 ServerApp] Extension package jupyter_lsp took 0.2452s to import
[W 2024-07-30 02:34:04.033 ServerApp] A _jupyter_server_extension_points function was not found in jupyter_lsp. 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 2024-07-30 02:34:04.195 ServerApp] Extension package jupyter_server_terminals took 0.1609s to import
[W 2024-07-30 02:34:04.302 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 2024-07-30 02:34:09.680 ServerApp] Extension package panel.io.jupyter_server_extension took 5.3757s to import
[I 2024-07-30 02:34:09.681 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-07-30 02:34:09.694 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-07-30 02:34:09.706 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-07-30 02:34:09.717 ServerApp] notebook | extension was successfully linked.
[I 2024-07-30 02:34:11.052 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-07-30 02:34:11.053 ServerApp] panel.io.jupyter_server_extension | extension was successfully linked.
[I 2024-07-30 02:34:11.180 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-07-30 02:34:11.186 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-07-30 02:34:11.187 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-07-30 02:34:11.202 LabApp] JupyterLab extension loaded from C:\Users\apriyad\AppData\Local\anaconda3\Lib\site-packages\jupyterlab
[I 2024-07-30 02:34:11.202 LabApp] JupyterLab application directory is C:\Users\apriyad\AppData\Local\anaconda3\share\jupyter\lab
[I 2024-07-30 02:34:11.203 LabApp] Extension Manager is ‘pypi’.
[I 2024-07-30 02:34:11.209 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-07-30 02:34:11.221 ServerApp] notebook | extension was successfully loaded.
[I 2024-07-30 02:34:11.223 ServerApp] panel.io.jupyter_server_extension | extension was successfully loaded.
[I 2024-07-30 02:34:11.224 ServerApp] Serving notebooks from local directory: C:\Users\apriyad
[I 2024-07-30 02:34:11.224 ServerApp] Jupyter Server 2.14.1 is running at:
[I 2024-07-30 02:34:11.224 ServerApp] http://localhost:8888/tree?token=b6b336dd64e358998adc985a941bd263bfb6681cdd45c519
[I 2024-07-30 02:34:11.224 ServerApp] http://127.0.0.1:8888/tree?token=b6b336dd64e358998adc985a941bd263bfb6681cdd45c519
[I 2024-07-30 02:34:11.226 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[E 2024-07-30 02:34:11.226 ServerApp] Failed to write server-info to C:\Users\apriyad\AppData\Roaming\jupyter\runtime\jpserver-1744.json: PermissionError(13, ‘Permission denied’)
Traceback (most recent call last):
File “C:\Users\apriyad\AppData\Local\anaconda3\Scripts\jupyter-notebook-script.py”, line 10, in
sys.exit(main())
^^^^^^
File “C:\Users\apriyad\AppData\Local\anaconda3\Lib\site-packages\jupyter_server\extension\application.py”, line 623, in launch_instance
serverapp.start()
File “C:\Users\apriyad\AppData\Local\anaconda3\Lib\site-packages\jupyter_server\serverapp.py”, line 3119, in start
self.start_app()
File “C:\Users\apriyad\AppData\Local\anaconda3\Lib\site-packages\jupyter_server\serverapp.py”, line 3023, in start_app
self.write_browser_open_files()
File “C:\Users\apriyad\AppData\Local\anaconda3\Lib\site-packages\jupyter_server\serverapp.py”, line 2890, in write_browser_open_files
self.write_browser_open_file()
File “C:\Users\apriyad\AppData\Local\anaconda3\Lib\site-packages\jupyter_server\serverapp.py”, line 2913, in write_browser_open_file
with open(self.browser_open_file, “w”, encoding=“utf-8”) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: ‘C:\Users\apriyad\AppData\Roaming\jupyter\runtime\jpserver-1744-open.html’
[W 2024-09-08 11:17:38.725 ServerApp] A _jupyter_server_extension_points function was not found in jupyter_lsp. 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.
[W 2024-09-08 11:17:39.053 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 2024-09-08 11:17:41.372 ServerApp] Extension package panel.io.jupyter_server_extension took 2.3211s to import
[I 2024-09-08 11:17:41.372 ServerApp] jupyter_lsp | extension was successfully linked.
[I 2024-09-08 11:17:41.387 ServerApp] jupyter_server_terminals | extension was successfully linked.
[I 2024-09-08 11:17:41.387 ServerApp] jupyterlab | extension was successfully linked.
[I 2024-09-08 11:17:41.403 ServerApp] notebook | extension was successfully linked.
[I 2024-09-08 11:17:42.236 ServerApp] notebook_shim | extension was successfully linked.
[I 2024-09-08 11:17:42.236 ServerApp] panel.io.jupyter_server_extension | extension was successfully linked.
[I 2024-09-08 11:17:42.303 ServerApp] notebook_shim | extension was successfully loaded.
[I 2024-09-08 11:17:42.303 ServerApp] jupyter_lsp | extension was successfully loaded.
[I 2024-09-08 11:17:42.303 ServerApp] jupyter_server_terminals | extension was successfully loaded.
[I 2024-09-08 11:17:42.319 LabApp] JupyterLab extension loaded from C:\ProgramData\anaconda3\Lib\site-packages\jupyterlab
[I 2024-09-08 11:17:42.319 LabApp] JupyterLab application directory is C:\ProgramData\anaconda3\share\jupyter\lab
[I 2024-09-08 11:17:42.319 LabApp] Extension Manager is ‘pypi’.
[I 2024-09-08 11:17:42.319 ServerApp] jupyterlab | extension was successfully loaded.
[I 2024-09-08 11:17:42.335 ServerApp] notebook | extension was successfully loaded.
[I 2024-09-08 11:17:42.335 ServerApp] panel.io.jupyter_server_extension | extension was successfully loaded.
[I 2024-09-08 11:17:42.335 ServerApp] Serving notebooks from local directory: C:\Users\kulvir rana
[I 2024-09-08 11:17:42.335 ServerApp] Jupyter Server 2.14.1 is running at:
[I 2024-09-08 11:17:42.335 ServerApp] http://localhost:8888/tree?token=7e8a15f6ef184e0ec402aeaa7851b5eb1ad7ef79d90efa5d
[I 2024-09-08 11:17:42.335 ServerApp] http://127.0.0.1:8888/tree?token=7e8a15f6ef184e0ec402aeaa7851b5eb1ad7ef79d90efa5d
[I 2024-09-08 11:17:42.335 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[E 2024-09-08 11:17:42.335 ServerApp] Failed to write server-info to C:\Users\kulvir rana\AppData\Roaming\jupyter\runtime\jpserver-6096.json: PermissionError(13, ‘Permission denied’)
Traceback (most recent call last):
File “C:\ProgramData\anaconda3\Scripts\jupyter-notebook-script.py”, line 10, in
sys.exit(main())
^^^^^^
File “C:\ProgramData\anaconda3\Lib\site-packages\jupyter_server\extension\application.py”, line 623, in launch_instance
serverapp.start()
File “C:\ProgramData\anaconda3\Lib\site-packages\jupyter_server\serverapp.py”, line 3119, in start
self.start_app()
File “C:\ProgramData\anaconda3\Lib\site-packages\jupyter_server\serverapp.py”, line 3023, in start_app
self.write_browser_open_files()
File “C:\ProgramData\anaconda3\Lib\site-packages\jupyter_server\serverapp.py”, line 2890, in write_browser_open_files
self.write_browser_open_file()
File “C:\ProgramData\anaconda3\Lib\site-packages\jupyter_server\serverapp.py”, line 2913, in write_browser_open_file
with open(self.browser_open_file, “w”, encoding=“utf-8”) as f:
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
PermissionError: [Errno 13] Permission denied: ‘C:\Users\kulvir rana\AppData\Roaming\jupyter\runtime\jpserver-6096-open.html’