pylint error for prodigy imports (no-name-in-module)

Whenever I have an import from prodigy.components.preprocess or prodigy.components.loaders, pylint gives me the following error:

The recipe still runs but I would like to know how I could try and resolve this.

Hi! This is just a linter warning and one possible explanation is that those modules are Cython modules and for some reason, pylint doesn't interpret them properly? There might be some compiler settings we can adjust to allow it to interpret the compiled module better.

But it's just the linter and there's no impact on your actual code. So you can add a comment to tell pylint to ignore the import if the warning bothers you, and ignore it otherwise :slightly_smiling_face:

1 Like