[Python] Error when launching Jupyter Notebooks using Anaconda

Discussão em 'Python' iniciado por Stack, Abril 15, 2025.

  1. Stack

    Stack Membro Participativo

    The following error note displays whenever I try to launch Jupyter Notebooks using Anaconda:

    [I 2025-04-15 15:47:31.613 ServerApp] Extension package aext_assistant took 2.1454s to import
    [I 2025-04-15 15:47:31.658 ServerApp] ****************** ENVIRONMENT [Panels] Environment.PRODUCTION ******************
    [I 2025-04-15 15:47:31.661 ServerApp] ****************** ENVIRONMENT [Panels] Environment.PRODUCTION ******************
    [I 2025-04-15 15:47:31.910 ServerApp] --> Alembic Config: {'db_conn_url': 'sqlite:///C:\\Users\\HP\\anaconda_projects\\db\\project_filebrowser.db', 'db_path': 'C:\\Users\\HP\\anaconda_projects\\db\\project_filebrowser.db'}
    [I 2025-04-15 15:47:31.910 ServerApp] Default dir: C:\Users\HP. Running chdir...
    [I 2025-04-15 15:47:31.912 ServerApp] Checking for database file @ C:\Users\HP\anaconda_projects\db\project_filebrowser.db
    [I 2025-04-15 15:47:31.913 ServerApp] Database file already exists
    [I 2025-04-15 15:47:31.935 ServerApp] Migrations executed
    [I 2025-04-15 15:47:31.936 ServerApp] Checking project configuration: C:\Users\HP. Running chdir...
    [I 2025-04-15 15:47:32.272 ServerApp] Extension package aext_toolbox took 0.6019s to import
    [W 2025-04-15 15:47:32.305 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 2025-04-15 15:47:32.441 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 2025-04-15 15:47:33.760 ServerApp] Extension package panel.io.jupyter_server_extension took 1.3173s to import
    [I 2025-04-15 15:47:33.761 ServerApp] aext_assistant | extension was successfully linked.
    [I 2025-04-15 15:47:33.761 ServerApp] aext_core | extension was successfully linked.
    [I 2025-04-15 15:47:33.761 ServerApp] aext_panels | extension was successfully linked.
    [I 2025-04-15 15:47:33.761 ServerApp] aext_share_notebook | extension was successfully linked.
    [I 2025-04-15 15:47:33.761 ServerApp] aext_toolbox | extension was successfully linked.
    [I 2025-04-15 15:47:33.762 ServerApp] jupyter_lsp | extension was successfully linked.
    [I 2025-04-15 15:47:33.770 ServerApp] jupyter_server_terminals | extension was successfully linked.
    [I 2025-04-15 15:47:33.781 ServerApp] jupyterlab | extension was successfully linked.
    [I 2025-04-15 15:47:33.790 ServerApp] notebook | extension was successfully linked.
    [I 2025-04-15 15:47:34.249 ServerApp] notebook_shim | extension was successfully linked.
    [I 2025-04-15 15:47:34.249 ServerApp] panel.io.jupyter_server_extension | extension was successfully linked.
    [I 2025-04-15 15:47:37.330 ServerApp] nb_conda_kernels | enabled, 1 kernels found.
    [I 2025-04-15 15:47:37.359 ServerApp] notebook_shim | extension was successfully loaded.
    [I 2025-04-15 15:47:37.360 ServerApp] Registered aext_assistant server extension
    [I 2025-04-15 15:47:37.360 ServerApp] aext_assistant | extension was successfully loaded.
    [I 2025-04-15 15:47:37.361 ServerApp] Registered aext_core server extension
    [I 2025-04-15 15:47:37.361 ServerApp] aext_core | extension was successfully loaded.
    [I 2025-04-15 15:47:37.363 ServerApp] Registered aext_panels server extension
    [I 2025-04-15 15:47:37.363 ServerApp] aext_panels | extension was successfully loaded.
    [I 2025-04-15 15:47:37.364 ServerApp] Registered aext_share_notebook_server server extension
    [I 2025-04-15 15:47:37.364 ServerApp] aext_share_notebook | extension was successfully loaded.
    [I 2025-04-15 15:47:37.367 ServerApp] Registered aext_project_filebrowser_server extension
    [I 2025-04-15 15:47:37.367 ServerApp] Registered aext_toolbox extension
    [I 2025-04-15 15:47:37.368 ServerApp] aext_toolbox | extension was successfully loaded.
    [I 2025-04-15 15:47:37.371 ServerApp] jupyter_lsp | extension was successfully loaded.
    [I 2025-04-15 15:47:37.372 ServerApp] jupyter_server_terminals | extension was successfully loaded.
    [I 2025-04-15 15:47:37.381 LabApp] JupyterLab extension loaded from C:\Users\HP\anaconda3\Lib\site-packages\jupyterlab
    [I 2025-04-15 15:47:37.382 LabApp] JupyterLab application directory is C:\Users\HP\anaconda3\share\jupyter\lab
    [I 2025-04-15 15:47:37.383 LabApp] Extension Manager is 'pypi'.
    [I 2025-04-15 15:47:37.675 ServerApp] jupyterlab | extension was successfully loaded.
    [I 2025-04-15 15:47:37.686 ServerApp] notebook | extension was successfully loaded.
    [I 2025-04-15 15:47:37.687 ServerApp] panel.io.jupyter_server_extension | extension was successfully loaded.
    [I 2025-04-15 15:47:37.688 ServerApp] Serving notebooks from local directory: C:\Users\HP
    [I 2025-04-15 15:47:37.688 ServerApp] Jupyter Server 2.14.1 is running at:
    [I 2025-04-15 15:47:37.688 ServerApp] http://localhost:8888/tree?token=d687a89a58acb8700c8f4a373890463daa616c5d60de0c93
    [I 2025-04-15 15:47:37.688 ServerApp] http://127.0.0.1:8888/tree?token=d687a89a58acb8700c8f4a373890463daa616c5d60de0c93
    [I 2025-04-15 15:47:37.688 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [E 2025-04-15 15:47:37.689 ServerApp] Failed to write server-info to C:\Users\HP\AppData\Roaming\jupyter\runtime\jpserver-17636.json: PermissionError(13, 'Permission denied')
    Traceback (most recent call last):
    File "C:\Users\HP\anaconda3\Scripts\jupyter-notebook-script.py", line 10, in
    sys.exit(main())
    ^^^^^^
    File "C:\Users\HP\anaconda3\Lib\site-packages\jupyter_server\extension\application.py", line 623, in launch_instance
    serverapp.start()
    File "C:\Users\HP\anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 3119, in start
    self.start_app()
    File "C:\Users\HP\anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 3023, in start_app
    self.write_browser_open_files()
    File "C:\Users\HP\anaconda3\Lib\site-packages\jupyter_server\serverapp.py", line 2890, in write_browser_open_files
    self.write_browser_open_file()
    File "C:\Users\HP\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\\HP\\AppData\\Roaming\\jupyter\\runtime\\jpserver-17636-open.html'
    Sentry is attempting to send 1 pending events
    Waiting up to 2 seconds
    Press Ctrl-Break to quit

    Continue reading...

Compartilhe esta Página