https://prefect.io logo
Title
h

Henry

11/03/2020, 10:45 PM
Adding linting to a prefect project and it looks like we're getting
E0611: No name 'task' in module 'prefect' (no-name-in-module)
with pylint - has anyone run into this before?
s

Spencer

11/03/2020, 10:56 PM
My initial intuition is a name collision; do you have any folders named
prefect
or files named
prefect.py
?
h

Henry

11/04/2020, 1:53 AM
hmmm, interesting - haven't had that issue before
s

Spencer

11/04/2020, 2:32 AM
In Python, files and folders both are modules. It's a nice thing (
import mylibraryeasily
) but it can be difficult if you name a file or folder the same as some builtin library you want to use. :)