question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

errors on startup

See original GitHub issue

I get this several errors on startup, on MacOS.

I get this error when loading the project:

[I 23:47:02.581 LabApp] Adapting from protocol version 5.1 (kernel 9ba721b5-a0a2-42ca-b2b1-acc8b07f9232) to 5.3 (client).
2019-12-23 23:47:03,745 UTC - ERROR - pyls_jsonrpc.endpoint - Failed to handle notification textDocument/didChange: {'textDocument':...

the initialization log (using --debug) can be found below:

[thomas:~] $ jupyter lab --debug
[D 23:44:47.071 LabApp] Searching ['/Users/thomas', '/Users/thomas/.jupyter', '/Library/Frameworks/Python.framework/Versions/3.7/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files
[D 23:44:47.071 LabApp] Looking for jupyter_config in /etc/jupyter
[D 23:44:47.071 LabApp] Looking for jupyter_config in /usr/local/etc/jupyter
[D 23:44:47.071 LabApp] Looking for jupyter_config in /Library/Frameworks/Python.framework/Versions/3.7/etc/jupyter
[D 23:44:47.071 LabApp] Looking for jupyter_config in /Users/thomas/.jupyter
[D 23:44:47.072 LabApp] Looking for jupyter_config in /Users/thomas
[D 23:44:47.072 LabApp] Looking for jupyter_notebook_config in /etc/jupyter
[D 23:44:47.072 LabApp] Looking for jupyter_notebook_config in /usr/local/etc/jupyter
[D 23:44:47.073 LabApp] Looking for jupyter_notebook_config in /Library/Frameworks/Python.framework/Versions/3.7/etc/jupyter
[D 23:44:47.073 LabApp] Looking for jupyter_notebook_config in /Users/thomas/.jupyter
[D 23:44:47.073 LabApp] Looking for jupyter_notebook_config in /Users/thomas
[D 23:44:47.078 LabApp] Paths used for configuration of jupyter_notebook_config:
    	/etc/jupyter/jupyter_notebook_config.json
[D 23:44:47.079 LabApp] Paths used for configuration of jupyter_notebook_config:
    	/usr/local/etc/jupyter/jupyter_notebook_config.json
[D 23:44:47.079 LabApp] Paths used for configuration of jupyter_notebook_config:
    	/Library/Frameworks/Python.framework/Versions/3.7/etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-serverextension.json
    	/Library/Frameworks/Python.framework/Versions/3.7/etc/jupyter/jupyter_notebook_config.d/jupyterlab.json
    	/Library/Frameworks/Python.framework/Versions/3.7/etc/jupyter/jupyter_notebook_config.json
[D 23:44:47.080 LabApp] Paths used for configuration of jupyter_notebook_config:
    	/Users/thomas/.jupyter/jupyter_notebook_config.json
[D 23:44:47.490 LabApp] Checking for /Users/thomas/node_modules/bash-language-server/bin/main.js
[D 23:44:47.490 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab/staging/node_modules/bash-language-server/bin/main.js
[D 23:44:47.490 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/lib/node_modules/bash-language-server/bin/main.js
[D 23:44:47.490 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/node_modules/bash-language-server/bin/main.js
[W 23:44:47.490 LabApp] Failed to fetch commands from language server spec finder`bash-language-server`:
    expected str, bytes or os.PathLike object, not tuple
[D 23:44:47.494 LabApp] Checking for /Users/thomas/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 23:44:47.494 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab/staging/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 23:44:47.494 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/lib/node_modules/dockerfile-language-server-nodejs/lib/server.js
[D 23:44:47.494 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/node_modules/dockerfile-language-server-nodejs/lib/server.js
[W 23:44:47.494 LabApp] Failed to fetch commands from language server spec finder`dockerfile-language-server-nodejs`:
    expected str, bytes or os.PathLike object, not tuple
[D 23:44:47.497 LabApp] Checking for /Users/thomas/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 23:44:47.497 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab/staging/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 23:44:47.498 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/lib/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[D 23:44:47.498 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js
[W 23:44:47.498 LabApp] Failed to fetch commands from language server spec finder`javascript-typescript-langserver`:
    expected str, bytes or os.PathLike object, not tuple
[D 23:44:47.508 LabApp] Checking for /Users/thomas/node_modules/unified-language-server/src/server.js
[D 23:44:47.508 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab/staging/node_modules/unified-language-server/src/server.js
[D 23:44:47.509 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/lib/node_modules/unified-language-server/src/server.js
[D 23:44:47.509 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/node_modules/unified-language-server/src/server.js
[W 23:44:47.509 LabApp] Failed to fetch commands from language server spec finder`unified-language-server`:
    expected str, bytes or os.PathLike object, not tuple
[D 23:44:47.512 LabApp] Checking for /Users/thomas/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 23:44:47.513 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab/staging/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 23:44:47.513 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[D 23:44:47.513 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/node_modules/vscode-css-languageserver-bin/cssServerMain.js
[W 23:44:47.513 LabApp] Failed to fetch commands from language server spec finder`vscode-css-languageserver-bin`:
    expected str, bytes or os.PathLike object, not tuple
[D 23:44:47.517 LabApp] Checking for /Users/thomas/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 23:44:47.517 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab/staging/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 23:44:47.517 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/lib/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[D 23:44:47.518 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/node_modules/vscode-html-languageserver-bin/htmlServerMain.js
[W 23:44:47.518 LabApp] Failed to fetch commands from language server spec finder`vscode-html-languageserver-bin`:
    expected str, bytes or os.PathLike object, not tuple
[D 23:44:47.521 LabApp] Checking for /Users/thomas/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 23:44:47.522 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab/staging/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 23:44:47.522 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/lib/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[D 23:44:47.522 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/node_modules/vscode-json-languageserver-bin/jsonServerMain.js
[W 23:44:47.522 LabApp] Failed to fetch commands from language server spec finder`vscode-json-languageserver-bin`:
    expected str, bytes or os.PathLike object, not tuple
[D 23:44:47.526 LabApp] Checking for /Users/thomas/node_modules/yaml-language-server/bin/yaml-language-server
[D 23:44:47.526 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab/staging/node_modules/yaml-language-server/bin/yaml-language-server
[D 23:44:47.526 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/lib/node_modules/yaml-language-server/bin/yaml-language-server
[D 23:44:47.526 LabApp] Checking for /Library/Frameworks/Python.framework/Versions/3.7/node_modules/yaml-language-server/bin/yaml-language-server
[W 23:44:47.526 LabApp] Failed to fetch commands from language server spec finder`yaml-language-server`:
    expected str, bytes or os.PathLike object, not tuple
[D 23:44:47.527 LabApp] The following Language Servers will be available: {
      "pyls": {
        "argv": [
          "/Library/Frameworks/Python.framework/Versions/3.7/bin/pyls"
        ],
        "languages": [
          "python"
        ]
      }
    }
[I 23:44:47.773 LabApp] JupyterLab extension loaded from /Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/jupyterlab
[I 23:44:47.773 LabApp] JupyterLab application directory is /Library/Frameworks/Python.framework/Versions/3.7/share/jupyter/lab
[D 23:44:48.005 LabApp] Yarn configuration loaded.
[I 23:44:48.008 LabApp] Serving notebooks from local directory: /Users/thomas
[I 23:44:48.008 LabApp] The Jupyter Notebook is running at:
[I 23:44:48.009 LabApp] http://localhost:8888/?token=5b4d303ddf5677a996b703ec53c3d1ef73df360024d1ce9c
[I 23:44:48.009 LabApp]  or http://127.0.0.1:8888/?token=5b4d303ddf5677a996b703ec53c3d1ef73df360024d1ce9c
[I 23:44:48.009 LabApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
ecolbinadocommented, Jan 13, 2020

I was able to resolve my issue by completely uninstalling/removing nodejs and then reinstalling using conda.

If anyone has a better answer to it you may share here. Thank you. https://stackoverflow.com/questions/59386899/language-server-spec-finder-errors-when-launching-jupyter-lab/59712389#59712389

1reaction
krassowskicommented, Jan 19, 2020

Thank you for getting back with the SO link! Closing this as solved, now tracking related installation docs improvements in #169.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Fix Errors Seen During the Computer Startup Process
How to Fix Errors Seen During the Computer Startup Process · BOOTMGR is missing. Press Ctrl Alt Del to restart · Hal.dll is...
Read more >
Advanced troubleshooting for Windows boot problems
Method 1: Startup repair tool · Method 2: Repair boot codes · Method 3: Fix BCD errors · Method 4: Replace Bootmgr ·...
Read more >
Troubleshoot startup errors on Xbox
Troubleshoot errors from the “Something went wrong” startup screen on Xbox. ... You can reset your console from the Xbox Startup Troubleshooter.
Read more >
Troubleshooting Error Messages on a Black Screen that may ...
There are many reasons that a computer does not startup or boot into the Windows operating system. If your computer will not start...
Read more >
PHP 8.0: PHP Startup Errors are displayed by default
PHP Startup Errors are emitted when PHP parses the INI files and starts up. These errors are different from standard application errors and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found