Skip to content

Fails to run python3.7 - Syntax Error: invalid syntax print #631

@ryanvade

Description

@ryanvade

I installed pyls with pip install 'python-language-server[all]' and then tried to run pyls and received the following:

~ 
➜ pyls
Traceback (most recent call last):
  File "/home/ryan/.local/bin/pyls", line 6, in <module>
    from pyls.main import main
  File "/home/ryan/.local/lib/python3.7/site-packages/pyls/main.py", line 65
    print '%s%s' % ('    ' * indent, name)
               ^
SyntaxError: invalid syntax

I have the following versions:
python-language-server 0.28.1

Python 3.7.4 (default, Jul  9 2019, 16:32:37) 
[GCC 9.1.1 20190503 (Red Hat 9.1.1-1)] on linux

Do I need to use a newer version with python 3.7?

Side note, I'm trying to get this to work with Atom.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions