millejoh / emacs-ipython-notebook

Jupyter notebook client in Emacs
http://millejoh.github.io/emacs-ipython-notebook/
GNU General Public License v3.0
1.47k stars 122 forks source link

json-parse-error "invalid token near 'JupyterServerListApp'" "<string>" 1 21 21 #888

Closed psteinb closed 9 months ago

psteinb commented 1 year ago

Please help, since recently (likely a fc38 update), I am unable to use ein anymore.

I am running in emacs -Q -f package-initialize -f ein:dev-start-debug mode. When executing ein:run, I get

Debugger entered--Lisp error: (json-parse-error "invalid token near 'JupyterServerListApp'" "<string>" 1 21 21)
  ein:jupyter-crib-running-servers()
  ein:jupyter-my-url-or-port()
  ein:run("/usr/bin/jupyter" "~/redacted/code/" nil #f(compiled-function (buffer url-or-port) #<bytecode 0x1246e8ca1b37d99d>) nil)
  funcall-interactively(ein:run "/usr/bin/jupyter" "~/redacted/code/" nil #f(compiled-function (buffer url-or-port) #<bytecode 0x1246e8ca1b37d99d>) nil)
  command-execute(ein:run record)
  execute-extended-command(nil "ein:run" "ein:run")
  funcall-interactively(execute-extended-command nil "ein:run" "ein:run")
  command-execute(execute-extended-command)

For reference, the ein:dev-sys-info won't return anything in this state. Here is some info about my environment:

$ uname -a
Linux fwc049 6.5.8-200.fc38.x86_64 #...
$ emacs --version
GNU Emacs 28.3
#...
$ python --version
Python 3.11.6
$ jupyter --version
Selected Jupyter core packages...
IPython          : 8.9.0
ipykernel        : 6.17.1
ipywidgets       : not installed
jupyter_client   : 7.4.9
jupyter_core     : 5.1.0
jupyter_server   : 2.9.1
jupyterlab       : 4.0.8
nbclient         : 0.7.2
nbconvert        : 7.2.5
nbformat         : 5.7.0
notebook         : 6.5.6
qtconsole        : 5.3.2
traitlets        : 5.9.0

And here is the rest of the bug report template ...

Problem description

Steps to reproduce the problem

System info:

ein:dev-sys-info erred: Package lacks a file header```
## Logs:
#### *ein:log-all*:

22:51:10:788: [info] ein:jupyter-server--run: /usr/bin/jupyter server --notebook-dir=~/redacted/04_lab/code/ --debug --no-browser @#<buffer Customize Option: Ein Jupyter Server Use Subcommand>

#### *ein server*:

[D 2023-11-02 22:51:11.884 ServerApp] Searching ['/home/steinb95/.jupyter', '/usr/etc/jupyter', '/usr/local/etc/jupyter', '/etc/jupyter'] for config files [D 2023-11-02 22:51:11.885 ServerApp] Looking for jupyter_config in /etc/jupyter [D 2023-11-02 22:51:11.885 ServerApp] Looking for jupyter_config in /usr/local/etc/jupyter [D 2023-11-02 22:51:11.885 ServerApp] Looking for jupyter_config in /usr/etc/jupyter [D 2023-11-02 22:51:11.885 ServerApp] Looking for jupyter_config in /home/steinb95/.jupyter [D 2023-11-02 22:51:11.887 ServerApp] Looking for jupyter_server_config in /etc/jupyter [D 2023-11-02 22:51:11.887 ServerApp] Looking for jupyter_server_config in /usr/local/etc/jupyter [D 2023-11-02 22:51:11.887 ServerApp] Looking for jupyter_server_config in /usr/etc/jupyter [D 2023-11-02 22:51:11.887 ServerApp] Looking for jupyter_server_config in /home/steinb95/.jupyter [D 2023-11-02 22:51:11.893 ServerApp] Paths used for configuration of jupyter_server_config: /etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json /etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json /etc/jupyter/jupyter_server_config.d/nbclassic.json /etc/jupyter/jupyter_server_config.d/notebook_shim.json /etc/jupyter/jupyter_server_config.json [D 2023-11-02 22:51:11.893 ServerApp] Paths used for configuration of jupyter_server_config: /usr/local/etc/jupyter/jupyter_server_config.json [D 2023-11-02 22:51:11.894 ServerApp] Paths used for configuration of jupyter_server_config: /usr/etc/jupyter/jupyter_server_config.json [D 2023-11-02 22:51:11.894 ServerApp] Paths used for configuration of jupyter_server_config: /home/steinb95/.jupyter/jupyter_server_config.json [I 2023-11-02 22:51:11.933 ServerApp] jupyter_lsp | extension was successfully linked. [D 2023-11-02 22:51:11.939 TerminalsExtensionApp] Config changed: {'ServerApp': {'root_dir': '/home/steinb95/redacted/04_lab/code/', 'log_level': 'DEBUG', 'open_browser': False, 'jpserver_extensions': <LazyConfigValue {'update': {'jupyter_lsp': True, 'jupyter_server_terminals': True, 'nbclassic': True, 'notebook_shim': True}}>}, 'ExtensionApp': {'log_level': 'DEBUG', 'open_browser': False}} [D 2023-11-02 22:51:11.940 ServerApp] Config changed: {'ServerApp': {'root_dir': '/home/steinb95/redacted/04_lab/code/', 'log_level': 'DEBUG', 'open_browser': False, 'jpserver_extensions': <LazyConfigValue value={'jupyter_lsp': True, 'jupyter_server_terminals': True, 'nbclassic': True, 'notebook_shim': True}>}, 'ExtensionApp': {'log_level': 'DEBUG', 'open_browser': False}} [I 2023-11-02 22:51:11.942 ServerApp] jupyter_server_terminals | extension was successfully linked. [D 2023-11-02 22:51:11.947 NotebookApp] Config changed: {'NotebookApp': {'nbserver_extensions': {'jupyterlab_git': True}}, 'ServerApp': {'root_dir': '/home/steinb95/redacted/04_lab/code/', 'log_level': 'DEBUG', 'open_browser': False, 'jpserver_extensions': <LazyConfigValue value={'jupyter_lsp': True, 'jupyter_server_terminals': True, 'nbclassic': True, 'notebook_shim': True}>}, 'ExtensionApp': {'log_level': 'DEBUG', 'open_browser': False}} [I 2023-11-02 22:51:11.947 ServerApp] nbclassic | extension was successfully linked. [D 2023-11-02 22:51:12.340 ServerApp] Paths used for configuration of jupyter_notebook_config: /home/steinb95/.jupyter/jupyter_notebook_config.json [D 2023-11-02 22:51:12.340 ServerApp] Paths used for configuration of jupyter_notebook_config: /etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-notebook.json /etc/jupyter/jupyter_notebook_config.json [D 2023-11-02 22:51:12.341 ServerApp] Paths used for configuration of jupyter_notebook_config: /usr/local/etc/jupyter/jupyter_notebook_config.json [D 2023-11-02 22:51:12.341 ServerApp] Paths used for configuration of jupyter_notebook_config: /usr/etc/jupyter/jupyter_notebook_config.json [D 2023-11-02 22:51:12.341 ServerApp] Paths used for configuration of jupyter_notebook_config: /home/steinb95/.jupyter/jupyter_notebook_config.json [W 2023-11-02 22:51:12.342 ServerApp] jupyterlab_git | error adding extension (enabled: True): The module 'jupyterlab_git' could not be found (No module named 'jupyterlab_git'). Are you sure the extension is installed? Traceback (most recent call last): File "/usr/lib/python3.11/site-packages/jupyter_server/extension/manager.py", line 325, in add_extension extpkg = ExtensionPackage(name=extension_name, enabled=enabled) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/jupyter_server/extension/manager.py", line 166, in init super().init(*args, *kwargs) File "/usr/lib/python3.11/site-packages/traitlets/traitlets.py", line 1361, in init value = self._traits[key]._cross_validate(self, getattr(self, key)) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/traitlets/traitlets.py", line 746, in _cross_validate value = obj._trait_validators[self.name](obj, proposal) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/traitlets/traitlets.py", line 1233, in call return self.func(args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/site-packages/jupyter_server/extension/manager.py", line 181, in _validate_name raise ExtensionModuleNotFound(msg) from None jupyter_server.extension.utils.ExtensionModuleNotFound: The module 'jupyterlab_git' could not be found (No module named 'jupyterlab_git'). Are you sure the extension is installed? [I 2023-11-02 22:51:12.344 ServerApp] notebook_shim | extension was successfully linked. [D 2023-11-02 22:51:12.344 ServerApp] Raising open file limit: soft 1024->4096; hard 524288->524288 [I 2023-11-02 22:51:12.369 ServerApp] notebook_shim | extension was successfully loaded. [D 2023-11-02 22:51:12.373 ServerApp] Paths used for configuration of jupyter_config: /etc/jupyter/jupyter_config.json [D 2023-11-02 22:51:12.373 ServerApp] Paths used for configuration of jupyter_config: /usr/local/etc/jupyter/jupyter_config.json [D 2023-11-02 22:51:12.374 ServerApp] Paths used for configuration of jupyter_config: /usr/etc/jupyter/jupyter_config.json [D 2023-11-02 22:51:12.374 ServerApp] Paths used for configuration of jupyter_config: /home/steinb95/.jupyter/jupyter_config.json [D 2023-11-02 22:51:12.374 ServerApp] Paths used for configuration of jupyter_notebook_config: /etc/jupyter/jupyter_notebook_config.d/jupyter-lsp-notebook.json /etc/jupyter/jupyter_notebook_config.json [D 2023-11-02 22:51:12.375 ServerApp] Paths used for configuration of jupyter_notebook_config: /usr/local/etc/jupyter/jupyter_notebook_config.json [D 2023-11-02 22:51:12.375 ServerApp] Paths used for configuration of jupyter_notebook_config: /usr/etc/jupyter/jupyter_notebook_config.json [D 2023-11-02 22:51:12.376 ServerApp] Paths used for configuration of jupyter_notebook_config: /home/steinb95/.jupyter/jupyter_notebook_config.json [D 2023-11-02 22:51:12.376 ServerApp] Paths used for configuration of jupyter_server_config: /etc/jupyter/jupyter_server_config.d/jupyter-lsp-jupyter-server.json /etc/jupyter/jupyter_server_config.d/jupyter_server_terminals.json /etc/jupyter/jupyter_server_config.d/nbclassic.json /etc/jupyter/jupyter_server_config.d/notebook_shim.json /etc/jupyter/jupyter_server_config.json [D 2023-11-02 22:51:12.377 ServerApp] Paths used for configuration of jupyter_server_config: /usr/local/etc/jupyter/jupyter_server_config.json [D 2023-11-02 22:51:12.377 ServerApp] Paths used for configuration of jupyter_server_config: /usr/etc/jupyter/jupyter_server_config.json [D 2023-11-02 22:51:12.377 ServerApp] Paths used for configuration of jupyter_server_config: /home/steinb95/.jupyter/jupyter_server_config.json [D 2023-11-02 22:51:12.416 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:12.416 ServerApp] Checking for /usr/lib/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:12.416 ServerApp] Checking for /usr/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:12.417 ServerApp] bash-language-server/bin/main.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:12.417 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:12.417 ServerApp] Checking for /usr/lib/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:12.417 ServerApp] Checking for /usr/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:12.417 ServerApp] dockerfile-language-server-nodejs/lib/server.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:12.417 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:12.417 ServerApp] Checking for /usr/lib/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:12.417 ServerApp] Checking for /usr/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:12.417 ServerApp] javascript-typescript-langserver/lib/language-server-stdio.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:12.733 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:12.733 ServerApp] Checking for /usr/lib/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:12.733 ServerApp] Checking for /usr/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:12.733 ServerApp] pyright/langserver.index.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.052 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.052 ServerApp] Checking for /usr/lib/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.053 ServerApp] Checking for /usr/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.053 ServerApp] sql-language-server/dist/bin/cli.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.053 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.053 ServerApp] Checking for /usr/lib/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.053 ServerApp] Checking for /usr/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.053 ServerApp] typescript-language-server/lib/cli.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.053 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.053 ServerApp] Checking for /usr/lib/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.053 ServerApp] Checking for /usr/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.053 ServerApp] unified-language-server/src/server.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.053 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.054 ServerApp] Checking for /usr/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.054 ServerApp] Checking for /usr/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.054 ServerApp] vscode-css-languageserver-bin/cssServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.054 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.054 ServerApp] Checking for /usr/lib/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.054 ServerApp] Checking for /usr/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.054 ServerApp] vscode-html-languageserver-bin/htmlServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.054 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.055 ServerApp] Checking for /usr/lib/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.055 ServerApp] Checking for /usr/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.055 ServerApp] vscode-json-languageserver-bin/jsonServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.055 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.055 ServerApp] Checking for /usr/lib/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.055 ServerApp] Checking for /usr/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.055 ServerApp] yaml-language-server/bin/yaml-language-server not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [I 2023-11-02 22:51:13.055 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server [D 2023-11-02 22:51:13.093 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:13.094 ServerApp] Checking for /usr/lib/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:13.094 ServerApp] Checking for /usr/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:13.094 ServerApp] bash-language-server/bin/main.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.094 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:13.094 ServerApp] Checking for /usr/lib/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:13.094 ServerApp] Checking for /usr/node_modules/bash-language-server/bin/main.js [D 2023-11-02 22:51:13.094 ServerApp] bash-language-server/bin/main.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.096 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:13.096 ServerApp] Checking for /usr/lib/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:13.096 ServerApp] Checking for /usr/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:13.096 ServerApp] dockerfile-language-server-nodejs/lib/server.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.096 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:13.096 ServerApp] Checking for /usr/lib/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:13.096 ServerApp] Checking for /usr/node_modules/dockerfile-language-server-nodejs/lib/server.js [D 2023-11-02 22:51:13.096 ServerApp] dockerfile-language-server-nodejs/lib/server.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.097 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:13.097 ServerApp] Checking for /usr/lib/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:13.097 ServerApp] Checking for /usr/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:13.097 ServerApp] javascript-typescript-langserver/lib/language-server-stdio.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.097 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:13.097 ServerApp] Checking for /usr/lib/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:13.097 ServerApp] Checking for /usr/node_modules/javascript-typescript-langserver/lib/language-server-stdio.js [D 2023-11-02 22:51:13.098 ServerApp] javascript-typescript-langserver/lib/language-server-stdio.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.100 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:13.100 ServerApp] Checking for /usr/lib/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:13.100 ServerApp] Checking for /usr/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:13.100 ServerApp] pyright/langserver.index.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.100 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:13.100 ServerApp] Checking for /usr/lib/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:13.100 ServerApp] Checking for /usr/node_modules/pyright/langserver.index.js [D 2023-11-02 22:51:13.100 ServerApp] pyright/langserver.index.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.102 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.103 ServerApp] Checking for /usr/lib/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.103 ServerApp] Checking for /usr/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.103 ServerApp] sql-language-server/dist/bin/cli.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.103 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.103 ServerApp] Checking for /usr/lib/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.103 ServerApp] Checking for /usr/node_modules/sql-language-server/dist/bin/cli.js [D 2023-11-02 22:51:13.103 ServerApp] sql-language-server/dist/bin/cli.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.104 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.105 ServerApp] Checking for /usr/lib/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.105 ServerApp] Checking for /usr/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.105 ServerApp] typescript-language-server/lib/cli.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.105 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.106 ServerApp] Checking for /usr/lib/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.106 ServerApp] Checking for /usr/node_modules/typescript-language-server/lib/cli.js [D 2023-11-02 22:51:13.106 ServerApp] typescript-language-server/lib/cli.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.106 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.106 ServerApp] Checking for /usr/lib/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.106 ServerApp] Checking for /usr/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.106 ServerApp] unified-language-server/src/server.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.106 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.106 ServerApp] Checking for /usr/lib/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.106 ServerApp] Checking for /usr/node_modules/unified-language-server/src/server.js [D 2023-11-02 22:51:13.107 ServerApp] unified-language-server/src/server.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.107 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.107 ServerApp] Checking for /usr/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.107 ServerApp] Checking for /usr/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.107 ServerApp] vscode-css-languageserver-bin/cssServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.108 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.108 ServerApp] Checking for /usr/lib/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.108 ServerApp] Checking for /usr/node_modules/vscode-css-languageserver-bin/cssServerMain.js [D 2023-11-02 22:51:13.108 ServerApp] vscode-css-languageserver-bin/cssServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.109 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.109 ServerApp] Checking for /usr/lib/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.109 ServerApp] Checking for /usr/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.109 ServerApp] vscode-html-languageserver-bin/htmlServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.109 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.109 ServerApp] Checking for /usr/lib/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.109 ServerApp] Checking for /usr/node_modules/vscode-html-languageserver-bin/htmlServerMain.js [D 2023-11-02 22:51:13.109 ServerApp] vscode-html-languageserver-bin/htmlServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.110 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.110 ServerApp] Checking for /usr/lib/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.110 ServerApp] Checking for /usr/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.110 ServerApp] vscode-json-languageserver-bin/jsonServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.110 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.110 ServerApp] Checking for /usr/lib/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.110 ServerApp] Checking for /usr/node_modules/vscode-json-languageserver-bin/jsonServerMain.js [D 2023-11-02 22:51:13.110 ServerApp] vscode-json-languageserver-bin/jsonServerMain.js not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.111 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.111 ServerApp] Checking for /usr/lib/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.111 ServerApp] Checking for /usr/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.111 ServerApp] yaml-language-server/bin/yaml-language-server not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.111 ServerApp] Checking for /home/steinb95/redacted/04_lab/code/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.111 ServerApp] Checking for /usr/lib/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.111 ServerApp] Checking for /usr/node_modules/yaml-language-server/bin/yaml-language-server [D 2023-11-02 22:51:13.111 ServerApp] yaml-language-server/bin/yaml-language-server not found in node_modules of [PosixPath('/home/steinb95/redacted/04_lab/code'), PosixPath('/usr/lib'), PosixPath('/usr')] [D 2023-11-02 22:51:13.221 ServerApp] [lsp] rootUri will be file:///home/steinb95/redacted/04_lab/code [D 2023-11-02 22:51:13.222 ServerApp] [lsp] virtualDocumentsUri will be file:///home/steinb95/redacted/04_lab/code/.virtual_documents [D 2023-11-02 22:51:13.223 ServerApp] [lsp] The following Language Servers will be available: {} [I 2023-11-02 22:51:13.224 ServerApp] jupyter_lsp | extension was successfully loaded. [I 2023-11-02 22:51:13.226 ServerApp] jupyter_server_terminals | extension was successfully loaded.


| | | |_ | | | | __ | || | ' \/ / _ | / -) _/| ./_,_,|_\| |_|

Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions.

https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html

Please note that updating to Notebook 7 might break some of your extensions.

[I 2023-11-02 22:51:13.232 ServerApp] nbclassic | extension was successfully loaded. [I 2023-11-02 22:51:13.312 ServerApp] Serving notebooks from local directory: /home/steinb95/redacted/04_lab/code [I 2023-11-02 22:51:13.312 ServerApp] Jupyter Server 2.1.0 is running at: [I 2023-11-02 22:51:13.312 ServerApp] http://localhost:8888/?token=73cb1c5f532241761d1eb3aacaf261deca0123d9fbbe1e89 [I 2023-11-02 22:51:13.312 ServerApp] or http://127.0.0.1:8888/?token=73cb1c5f532241761d1eb3aacaf261deca0123d9fbbe1e89 [I 2023-11-02 22:51:13.312 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 2023-11-02 22:51:13.322 ServerApp]

To access the server, open this file in a browser:
    file:///home/steinb95/.local/share/jupyter/runtime/jpserver-19030-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/?token=73cb1c5f532241761d1eb3aacaf261deca0123d9fbbe1e89
 or http://127.0.0.1:8888/?token=73cb1c5f532241761d1eb3aacaf261deca0123d9fbbe1e89
dickmao commented 1 year ago

ein keys off a very particular output string from the jupyter notebook list command. That string has probably changed several times since 2019 when ein was last known to work.

Ein was a neat trick in the 2010's but it and jupyter more broadly were never the right tools for serious work. Onwards and upwards.

ohad-ivix commented 1 year ago

@psteinb I saw a similar error in my environment. Going by @dickmao's comment I tried rolling back Jupyter to try to investigate and hopefully work out a fix. I still haven't had the time to really figure out what changed, but in the mean time I managed to get a working environment, so maybe you can pin some package versions and get it working for you as well? I currently have

> pip list | grep jupyter
jupyter_client                      8.6.0
jupyter_core                        5.5.0
jupyter-events                      0.9.0
jupyter_server                      2.10.0
jupyter_server_fileid               0.9.0
jupyter_server_terminals            0.4.4
jupyter_server_ydoc                 0.8.0
jupyter-ydoc                        0.2.5
jupyterlab                          3.6.6
jupyterlab-pygments                 0.2.2
jupyterlab_server                   2.25.1

Also, somewhere along the way I pinned traitlets to version 5.9.0 which may or may not be important.

psteinb commented 1 year ago

Thanks for the interesting feedback.

@dickmao Thanks for the answer. However, I am not sure what actions I should take given your input. I think your statement holds true for a lot of features/packages in emacs. Nevertheless, I use emacs and so do many others. For serious work, I am not using notebooks in the first place. However, I am using notebooks for teaching and exploring/prototyping (as many others). And this is where I need a capable editor.

@ohad-ivix I'll give that a whirl. Thanks a lot for sharing.

ohad-ivix commented 12 months ago

Long story short, I didn't manage to create an environment that reproduces this issue. AFAICT it seems to be solved by building a fresh virtualenv or possibly even just reinstalling Jupyter-related packages. @psteinb has this been your experience too?

psteinb commented 9 months ago

This particular problem disappeared with emacs 29 after an OS upgrade.