-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
404 GET /lsp/status? #250
Comments
Thanks for reporting this! My first guess would be that the server extension has not been auto-enabled. What is your output for: jupyter serverextension list Could you also try: jupyter serverextension enable --sys-prefix --py jupyter_lsp please? Let me know if it helps! |
Thanks for your suggestions! I get a ModuleNotFoundError jupyter serverextension list
config dir: /etc/jupyter
ipyparallel.nbextension enabled
- Validating...
ipyparallel.nbextension OK
jupyterlab enabled
- Validating...
jupyterlab 2.1.0 OK sudo jupyter serverextension enable --sys-prefix --py jupyter_lsp
[sudo] password:
Traceback (most recent call last):
File "/usr/bin/jupyter-serverextension", line 11, in <module>
load_entry_point('notebook==6.0.3', 'console_scripts', 'jupyter-serverextension')()
File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance
return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance
app.start()
File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 294, in start
super(ServerExtensionApp, self).start()
File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 259, in start
self.subapp.start()
File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 211, in start
self.toggle_server_extension_python(arg)
File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 200, in toggle_server_extension_python
m, server_exts = _get_server_extension_metadata(package)
File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 328, in _get_server_extension_metadata
m = import_item(module)
File "/usr/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 42, in import_item
return __import__(parts[0])
ModuleNotFoundError: No module named 'jupyter_lsp' |
actually, I think the server-extension is called jupyter-lsp (dash instead of underscore), isn't it? Command Line Outputsudo jupyter serverextension enable --sys-prefix --py jupyter-lsp Traceback (most recent call last): File "/usr/bin/jupyter-serverextension", line 11, in load_entry_point('notebook==6.0.3', 'console_scripts', 'jupyter-serverextension')() File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 270, in launch_instance return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs) File "/usr/lib/python3.8/site-packages/traitlets/config/application.py", line 664, in launch_instance app.start() File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 294, in start super(ServerExtensionApp, self).start() File "/usr/lib/python3.8/site-packages/jupyter_core/application.py", line 259, in start self.subapp.start() File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 211, in start self.toggle_server_extension_python(arg) File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 200, in toggle_server_extension_python m, server_exts = _get_server_extension_metadata(package) File "/usr/lib/python3.8/site-packages/notebook/serverextensions.py", line 328, in _get_server_extension_metadata m = import_item(module) File "/usr/lib/python3.8/site-packages/traitlets/utils/importstring.py", line 42, in import_item return __import__(parts[0]) ModuleNotFoundError: No module named 'jupyter-lsp' |
No, it should be with an underscore. Not sure why it does not pick up Wait, you seem to use sudo... This might be the culprit if packages are installed locally and jupyter is not able to pick them as it is installed system-wide. The only guess I currently have is to try running jupyter without sudo (if you ran it as such) or try instaling jupyter-lsp globally with sudo pip install jupyter-lsp (but I do not recommend it security-wise!) |
I run jupyter lab as jupyter kernelspec list
Available kernels:
python3 /usr/share/jupyter/kernels/python3 |
Just a guess:
It does seem to be related to how the JupyterLab was installed vs how the extension was installed... Could you also try to re-install
|
Perfect! Thank you for giving it another try, and getting back to us with the results. Enjoy the extension and please let me know if you have any feedback! |
Hello krassowski, |
Well, it should not be required - the extension should auto-enable when being installed... but it would not hurt either! |
That´s strange. But perhaps it is related to our system-wide installation or the "--no-build" flag in the install command, that this is not possible for our setup. |
Hello Michal @krassowski , I had the same issue with docker image-based installation. Restarting the Docker container helped me to get rid of this error and made jupyter-lsp extension work. |
Description
I have installed jupyterlab-lsp extension, following the guideline here in the

README.md. Although no problems with installation, I can't use it in jupyter lab. I think this might be similar to #203, however, I don't have
pyls
installed, and I can't removebuild_config.json
as it was recommended from the discourse channel linked there, because/usr/share/jupyter/lab/settings/
is empty (not sure if this is related to it). The other jupyter lab extensions that I have installed work.Reproduce
Diagnose:
I don't have any functionality of jupyterlab-lsp available in my notebooks. It
is however listed as enabled in the jupyter lab extensions.
In the terminal running the server I get:
[W 19:41:44.712 LabApp] 404 GET /lsp/status?1587404503700 (127.0.0.1) 57.23ms referer=http://localhost:8888/
Expected behavior
Run jupyter lab with working lsp functions
Context
jupyter-lsp
version: 0.8.0@krassowski/jupyterlab-lsp
version: 1.0.0Troubleshoot Output
Command Line Output
Browser Output
The text was updated successfully, but these errors were encountered: