How do I get PyLint to find namespace packages?

Posted by tjd.rodgers on Stack Overflow See other posts from Stack Overflow or by tjd.rodgers
Published on 2014-08-23T21:40:10Z Indexed on 2014/08/23 22:20 UTC
Read the original article Hit count: 193

Filed under:
|
|

I have a virtualenv where I've installed two packages, both using the company.project_name namespace. So the first package is importable from company.project_name.one and the second from company.project_name.two.

The challenge is that I can't seem to be able to run PyLint on either one of them. If I issue:

$ pylint company.project_name.one

I get:

************* Module company.project_name.one
F:  1, 0: No module named project_name.one(fatal)

I suspect that I'm probably doing something wrong. Is there a proper way to do this?

Edit: I should have made it clear that company.project_name and company are namespace packages and not regular packages.

© Stack Overflow or respective owner

Related posts about python

Related posts about namespaces