Jupyter notebook 启动Jupyter Lab时出现语言服务器规范查找器错误

Jupyter notebook 启动Jupyter Lab时出现语言服务器规范查找器错误,jupyter-notebook,jupyter,jupyter-lab,Jupyter Notebook,Jupyter,Jupyter Lab,我只是想了解下面发生了什么。我正在使用MacOs,最近从bash切换到了zsh。然后我安装了jupyterlab lsp。你能告诉我吗 [W 14:27:11.102 LabApp] Failed to fetch commands from language server spec finder`bash-language-server`: expected str, bytes or os.PathLike object, not tuple [W 14:2

我只是想了解下面发生了什么。我正在使用MacOs,最近从bash切换到了zsh。然后我安装了jupyterlab lsp。你能告诉我吗


    [W 14:27:11.102 LabApp] Failed to fetch commands from language server spec finder`bash-language-server`:
        expected str, bytes or os.PathLike object, not tuple
    [W 14:27:11.108 LabApp] Failed to fetch commands from language server spec finder`dockerfile-language-server-nodejs`:
        expected str, bytes or os.PathLike object, not tuple
    [W 14:27:11.113 LabApp] Failed to fetch commands from language server spec finder`javascript-typescript-langserver`:
        expected str, bytes or os.PathLike object, not tuple
    [W 14:27:11.125 LabApp] Failed to fetch commands from language server spec finder`unified-language-server`:
        expected str, bytes or os.PathLike object, not tuple
    [W 14:27:11.129 LabApp] Failed to fetch commands from language server spec finder`vscode-css-languageserver-bin`:
        expected str, bytes or os.PathLike object, not tuple
    [W 14:27:11.133 LabApp] Failed to fetch commands from language server spec finder`vscode-html-languageserver-bin`:
        expected str, bytes or os.PathLike object, not tuple
    [W 14:27:11.138 LabApp] Failed to fetch commands from language server spec finder`vscode-json-languageserver-bin`:
        expected str, bytes or os.PathLike object, not tuple
    [W 14:27:11.142 LabApp] Failed to fetch commands from language server spec finder`yaml-language-server`:
        expected str, bytes or os.PathLike object, not tuple
    [I 14:27:11.193 LabApp] JupyterLab extension loaded from /Users/emilolbinado/anaconda3/lib/python3.6/site-packages/jupyterlab
    [I 14:27:11.193 LabApp] JupyterLab application directory is /Users/emilolbinado/anaconda3/share/jupyter/lab
    [I 14:27:11.195 LabApp] Serving notebooks from local directory: /Users/emilolbinado
    [I 14:27:11.195 LabApp] The Jupyter Notebook is running at:
    [I 14:27:11.195 LabApp] http://localhost:8888/?token=95a48a55a6638a48cbfa24c95106903144ffaafe10a65652
    [I 14:27:11.195 LabApp]  or http://127.0.0.1:8888/?token=95a48a55a6638a48cbfa24c95106903144ffaafe10a65652
    [I 14:27:11.195 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    [C 14:27:11.202 LabApp] 

        To access the notebook, open this file in a browser:
            file:///Users/emilolbinado/Library/Jupyter/runtime/nbserver-8098-open.html
        Or copy and paste one of these URLs:
            http://localhost:8888/?token=95a48a55a6638a48cbfa24c95106903144ffaafe10a65652
         or http://127.0.0.1:8888/?token=95a48a55a6638a48cbfa24c95106903144ffaafe10a65652
    Opening in existing browser session.
    [I 14:27:14.645 LabApp] Build is up to date
    [I 14:27:21.183 LabApp] Kernel started: 5c355536-12b0-41de-8c81-cc2afef6a85c
    [I 14:27:21.218 LabApp] Kernel started: 9505d56b-0f5a-43f4-970e-990fa0852522


问题是因为jupyter服务器找不到语言服务器。在我的例子中,jupyter是使用/opt/miniconda3/下的conda环境(miniconda)安装和维护的,而我的nodejs位于/usr/local/下。理想情况下,如果您已经在使用conda manager,您将希望完全卸载nodejs并使用conda重新安装它。否则,请删除整个anaconda/conda,然后使用pip或brew重新安装python()和jupyter,具体取决于nodejs的安装方式/位置

我能够通过以下步骤解决我的问题:

1.)完全卸载节点js。我可以通过运行
nvmuninstall
或者如果您使用的是自制软件,请运行
brew uninstall node
,然后在终端上运行
rm-f/usr/local/bin/npm
。此外,您还可以遵循以下参考:

2.)重新安装nodejs<代码>conda安装-c conda forge节点

3.)安装语言服务器。见参考资料:

4.)重启终端并运行jupyter实验室


这是我能解决我的问题的最好答案

我也有同样的问题;我刚刚在jupyterlab lsp的github上发布了这个问题:谢谢你引导我找到这个链接。。。仍然无法找到此问题的解决方案。