Skip to content
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

安装monaco-pytho-lsp之后在执行python language_ext.py时报错No such file or directory: 'pyls' #17

Open
yuankang134 opened this issue Aug 29, 2022 · 3 comments

Comments

@yuankang134
Copy link

Uncaught exception GET /python (xx.xx.xxx.x)
HTTPServerRequest(protocol='http', host='xx.xx.xxx.x:3001', method='GET', uri='/python', version='HTTP/1.1', remote_ip='xx.xx.xxx.x')
Traceback (most recent call last):
File "/usr/local/python3/lib/python3.9/site-packages/tornado/websocket.py", line 942, in _accept_connection
open_result = handler.open(*handler.open_args, **handler.open_kwargs)
File "/root/code/Monaco-python-lsp/python-server/langserver_ext.py", line 22, in open
proc = process.Subprocess(
File "/usr/local/python3/lib/python3.9/site-packages/tornado/process.py", line 240, in init
self.proc = subprocess.Popen(*args, **kwargs)
File "/usr/local/python3/lib/python3.9/subprocess.py", line 951, in init
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/local/python3/lib/python3.9/subprocess.py", line 1821, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
FileNotFoundError: [Errno 2] No such file or directory: 'pyls'

@Sakura1609
Copy link

I got the same error. Have you solved it?

@jiajiawei
Copy link

我直接装了全套, 能解决 pip install python-language-server[all]

@Germxu
Copy link

Germxu commented May 9, 2024

我直接装了全套, 能解决 pip install python-language-server[all]

谢谢解决了我的问题, 虽然我的报错的是pyls包的代码问题, 我检查了这个pyls包的代码是python2的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants