On 16 décembre 11:42, Naty Bidart wrote: > Hi Sylvian, Hi, (sorry for the long delay, I've been in holidays for a while)
> Thanks for your answer. Even using the --init-hook swicth I can not > make pylint notice the ubuntuone modules, as I can show you here: > > ness...@dali:~/canonical/u1/cp/trunk$ pylint --init-hook="import > ubuntuone" ubuntuone/controlpanel/dbus_client.py > > ************* Module ubuntuone.controlpanel.dbus_client > F0401: 27: Unable to import 'ubuntuone.clientdefs' > E0611: 27: No name 'clientdefs' in module 'ubuntuone' > F0401: 28: Unable to import 'ubuntuone.platform.linux' > E0611: 28: No name 'platform' in module 'ubuntuone' > F0401: 29: Unable to import 'ubuntuone.platform.linux.tools' > E0611: 29: No name 'platform' in module 'ubuntuone' too bad :( > May I ask why the patch submitted in > http://www.logilab.org/ticket/8796 has not been merged or used? because no one found the time to ensure the patch isn't breaking some other things that currently work. Making pylint able to understand the python import machinery and its extensions (eg zip, eggs file & co) *without actually import things* is definitly a mess. We'll have to do something as some point since it is higly desirable, though we don't use that features at Logilab so other things usually take priority other it. -- Sylvain Thénault LOGILAB, Paris (France) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list [email protected] http://lists.logilab.org/mailman/listinfo/python-projects
