In my script I use:
python
from pkg_resources import resource_filename
Both PyDev and pylint 0.23 complain about unresolved import here.
E0611 No name 'resource_filename' in module 'pkg_resources'
As I understand, this happens due to the fact that both PyDev and pylint perform only source code analysis, without actually trying to parse/compile it. And apparently pkg_resources
does something special to define pkg_resources
. The package and symbol are of course there, and whole thing works just fine. Two questions:
- How can I convince both Eclipse and PyDev that they're mistaken?
- What causes the problem in the first place? I haven't found other people having this kind of problem, and I doubt my situation is somewhat unique... :)
Python 2.7.1 (under OSX), distribute 0.6.19.