No. I get the E1101 error. So it seems it is a problem with my system.
locate pylint shows that the only installed package is /usr/local/lib/python2.7/dist-packages/pylint-1.1.0.egg-info
I installed it with pip.
Zunbeltz
or., 2014.eko urtren 17a 10:45(e)an, Sylvain Thénault(e)k idatzi zuen:
On 17 janvier 10:18, Zunbeltz Izaola wrote:
Dear Sylvain,
It is strange that the error is for all the methods of the gtk3 objects. I import the Gtk namespace in the following way
from gi.repository import Gtk from gi.repository import Gio
Construction the basic objects, like Box(), is fine; but calling its methods raises the error mensage. This is why I think that brain was not enabled by default. The tests at pylint-brain/test run fine. The pylint --version output is
pylint 1.1.0, astroid 1.0.1, common 0.60.1 Python 2.7.5+ (default, Sep 19 2013, 13:49:51) [GCC 4.8.1]
[syt@orion ~]$ cat girepo.py from gi.repository import Gtk b = Gtk.Box() b.show_all() [syt@orion ~]$ pylint -rn girepo.py ************* Module girepo C: 1, 0: Missing module docstring (missing-docstring) C: 2, 0: Invalid constant name "b" (invalid-name)
Does this work for you?
On 17 janvier 10:55, Zunbeltz Izaola wrote:
No. I get the E1101 error. So it seems it is a problem with my system.
locate pylint shows that the only installed package is /usr/local/lib/python2.7/dist-packages/pylint-1.1.0.egg-info
I installed it with pip.
and it then works fine?
Notice gi support is provided by astroid.
No. pip says that pylint and astroid are up to date. And it is NOT working find.
zunbeltz@zunbeltz-VPCF12E1E:~$ pylint -rn test.py /usr/local/bin/pylint:5: UserWarning: Module dap was already imported from None, but /usr/lib/python2.7/dist-packages is being added to sys.path from pkg_resources import load_entry_point No config file found, using default configuration ************* Module test C: 1, 0: Missing module docstring (missing-docstring) C: 2, 0: Invalid constant name "b" (invalid-name) E: 3, 0: Instance of 'Box' has no 'show_all' member (no-member)
or., 2014.eko urtren 17a 11:05(e)an, Sylvain Thénault(e)k idatzi zuen:
On 17 janvier 10:55, Zunbeltz Izaola wrote:
No. I get the E1101 error. So it seems it is a problem with my system.
locate pylint shows that the only installed package is /usr/local/lib/python2.7/dist-packages/pylint-1.1.0.egg-info
I installed it with pip.
and it then works fine?
Notice gi support is provided by astroid.
On 17 janvier 11:13, Zunbeltz Izaola wrote:
No. pip says that pylint and astroid are up to date. And it is NOT working find.
do you have the py2gi.py file into astroid/brain ?