Sunday, December 27, 2020

Re: pylint-3: AttributeError: module '_ast' has no attribute 'Str'

On Mon, 28 Dec 2020, Klemens Nanni wrote:

> Tried to use pylint for the first time, this does not look right:
>
> $ pylint-3 -h
> Traceback (most recent call last):
> File "/usr/local/lib/python3.8/site-packages/astroid/astpeephole.py", line 29, in <module>
> _TYPES = (_ast.Str, _ast.Bytes)
> AttributeError: module '_ast' has no attribute 'Str'
>
> Can anyone reproduce this on amd64 snapshots?
>
>

Yeah, devel/py-astroid is not python 3.8 compatible from what I remember.

To fix pylint, you'll need to get py-astroid updated to version 2.1.0 or
later.

No comments:

Post a Comment