I have come across an issue that I have issues to resolve. Furthermore, I could not find any information that could resolve my problem. My setup is run on Fedora 30 with Emacs 26.3 (GTK+ Version).
I have followed a tutorial that should help me setup an lsp server with pyls. I have installed pyls, jedi and ran pip install --user python-language-server[all]. The issue I run into is when I run M-x lsp, it is starting up the the server but when I look into the pyls buffer it shows me that it ran into an error.
Process pyls stderr finished
Traceback (most recent call last):
File "/home/olearry/.local/bin/pyls", line 6, in <module>
from pyls.main import main
File "/home/olearry/.local/lib/python3.7/site-packages/pyls/main.py", line 65
print '%s%s' % (' ' * indent, name)
^
SyntaxError: invalid syntax
I have tried finding someone who has the same issue as me but I could not find anyone. I have also tried running pyls directly from the terminal, it returns the same error. I cannot tell where my setup is flawed and I am in need of some help.
I would appreciate any help and if you have any questions please do not hesitate to ask.
Additional (probably not important) information
I presume what I've said above is the main issue but I will append some more information here that might be of interest. I have tried running it in a venv as well. I run into the same problem there. Running pyls returns the same error as above. The packages that are installed in the venv are:
I have come across an issue that I have issues to resolve. Furthermore, I could not find any information that could resolve my problem. My setup is run on Fedora 30 with Emacs 26.3 (GTK+ Version).
I have followed a tutorial that should help me setup an
lsp
server withpyls
. I have installedpyls
,jedi
and ranpip install --user python-language-server[all]
. The issue I run into is when I runM-x lsp
, it is starting up the the server but when I look into thepyls
buffer it shows me that it ran into an error.I have tried finding someone who has the same issue as me but I could not find anyone. I have also tried running
pyls
directly from the terminal, it returns the same error. I cannot tell where my setup is flawed and I am in need of some help.I would appreciate any help and if you have any questions please do not hesitate to ask.
Additional (probably not important) information
I presume what I've said above is the main issue but I will append some more information here that might be of interest. I have tried running it in a
venv
as well. I run into the same problem there. Runningpyls
returns the same error as above. The packages that are installed in thevenv
are: