I'm interested in running a checker over my Python 3 code to point out possible flaws. PyChecker does not work with Python 3. I tried to pip-install Pylint, but this fails. The error message does not help me (see paste).
Pylint's Readme states that:
Pylint should be compatible with any python >= 2.2.
However, the page somehow feels outdated.
Is pylint compatible with Python 3? If yes, how can I install it? If no, are there alternatives I should look into?
For Ubuntu 14.04:
Yes, pylint versions > 0.23.0 do support Py3K.
Your issue seems to be described in http://www.logilab.org/82417 (also Getting started with Pylint for Jython (jython2.5.1))
The cached ticket page recommends running:
I've managed to get pylint running in Python3 on Linux (Ubuntu12.04, though I don't think the version matters in the following) after a bit of a struggle. I'm not exactly sure what I did wrong along the line, but various files were in the wrong place or had the wrong access mode and all normal procedures failed. [Attempts to install pylint via apt-get and pip certainly contributed to the mess.] I think the following sequence was what got everything unscrewed again. In case it helps someone else (no guarantees) here's what I just did:
At that stage the command 'pylint' worked but only for the superuser. Some files weren't world readable. The following two command sorted them out:
Good luck!
EDIT: I just went through the install process on another Linux box in a clean state, and apart from having also to install the two dependencies (logilab-common and logilab-astng) in exactly the same way as pylint above, it all went well. So it looks as though the problems arose through installing a version for Python 2 first and possibly through the use of pip.