Skip to content
This repository has been archived by the owner on Aug 7, 2023. It is now read-only.

from .async import check_async ^ SyntaxError: invalid syntax #102

Open
afsneto opened this issue Nov 3, 2018 · 11 comments
Open

from .async import check_async ^ SyntaxError: invalid syntax #102

afsneto opened this issue Nov 3, 2018 · 11 comments

Comments

@afsneto
Copy link

afsneto commented Nov 3, 2018

Traceback (most recent call last): File "C:\Users\AlcidesNeto.atom\packages\linter-pylama\bin\pylama.py", line 12, in from pylama.main import shell File "C:\Users\AlcidesNeto.atom\packages\linter-pylama\bin\pylama\main.py", line 10 from .async import check_async ^ SyntaxError: invalid syntax

@gmist
Copy link
Member

gmist commented Nov 3, 2018

Do you use Python >= 3.7?

@Nandha95
Copy link

Nandha95 commented Nov 8, 2018

I have this issue as well, and my python version is 3.7.1 .

@Nandha95
Copy link

Works fine after reverting back to Python 3.6

@SuperOxigen
Copy link

As of python 3.7, async became a reserved keyword, more info here.

Issue is the relative import of bin/pylama/async.py in bin/pylama/main.py. The easy fix would be to rename async.py to something else and updating the import statement in main.py. Perhaps async_worker.py?

@Mrzhangxd

This comment has been minimized.

@claudiodsf
Copy link

I fixed the problem by installing pylava and using it as external option, as discussed in #100.

@ghost
Copy link

ghost commented Apr 26, 2019

Same issue with Python 3.7.3

@Arcanemagus
Copy link
Member

Arcanemagus commented Apr 26, 2019

This issue is caused by the bundled version of pylama being quite out of date.

You can either:

  • Follow Update pylama to 7.6.6 (Python 3.7 support) #112 for updates on getting the bundled version of pylama to work with Python 3.7+
  • Go into the settings and change to using the "External" version of pylama, making sure that you have installed it on your system of course

I personally use the second option as you aren't tied down to the out of date bundled version.

@bxmoreira
Copy link

bxmoreira commented May 2, 2020

Second option is way better! thanks @Arcanemagus

Folks before changing pylama settings to "External". Go to cmd and pip install pylama.

Ciao!

@lcoi
Copy link

lcoi commented Aug 10, 2021

Screenshot_1
it works

@ilubnon
Copy link

ilubnon commented Oct 14, 2021

image

with Python 3.10.0 works.

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

No branches or pull requests

10 participants