Hello Flagist,

           *pylint -E --load-plugins pylint_web2py
applications/asdf/scripts/asdf.py *command.
My bad to not recognize difference between *pylint-web2py* and
*pylint_web2py*

Thanks for quick reply.


On Thu, Dec 18, 2014 at 3:20 AM, flagist0 <flagi...@gmail.com> wrote:
>
> Hello Prasad!
> Yes, it is a strange naming convention bug inherited from original
> problem: repository is called pylint-web2py, but the plugin itself is
> called pylint_web2py (note the underscore).
> So you'll to call pylint like this: *pylint -E --load-plugins
> pylint_web2py applications/asdf/scripts/asdf.py*
>
>
>
>
> On Wednesday, December 17, 2014 7:02:23 PM UTC+4, Prasad Muley wrote:
>>
>> Hi Flagist,
>>
>>
>>          I've installed pylint-web2py plugin by downloading from
>> flagist-pylint-web2py <https://github.com/flagist0/pylint-web2py> github.
>>
>> I've checked whether pylint-web2py plugin is successfully installed or
>> not using following command:
>>
>> *$ pip freeze | grep pylint-web2py
>>                                                              [20:22:13]*
>> *pylint-web2py==0.1.2*
>>
>> I am getting following an error If I run following commands.
>>
>> *$ pylint -E --load-plugins pylint-web2py
>> applications/asdf/scripts/asdf.py*
>>
>> Traceback (most recent call last):
>>   File "/usr/local/bin/pylint", line 9, in <module>
>>     load_entry_point('pylint==1.4.0', 'console_scripts', 'pylint')()
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/pylint-1.4.0-py2.7.egg/pylint/__init__.py",
>> line 23, in run_pylint
>>     Run(sys.argv[1:])
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/pylint-1.4.0-py2.7.egg/pylint/lint.py",
>> line 1193, in __init__
>>     linter.load_plugin_modules(self._plugins)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/pylint-1.4.0-py2.7.egg/pylint/lint.py",
>> line 469, in load_plugin_modules
>>     module = load_module_from_name(modname)
>>   File "/usr/local/lib/python2.7/dist-packages/astroid-1.3.2-
>> py2.7.egg/astroid/modutils.py", line 135, in load_module_from_name
>>     return load_module_from_modpath(dotted_name.split('.'), path,
>> use_sys)
>>   File "/usr/local/lib/python2.7/dist-packages/astroid-1.3.2-
>> py2.7.egg/astroid/modutils.py", line 177, in load_module_from_modpath
>>     mp_file, mp_filename, mp_desc = imp.find_module(part, path)
>> *ImportError: No module named pylint-web2py*
>>
>> Or
>>
>> *$ pylint '--load-plugins=pylint-web2py'
>> applications/asdf/scripts/asdf.py
>>   *
>> Traceback (most recent call last):
>>   File "/usr/local/bin/pylint", line 9, in <module>
>>     load_entry_point('pylint==1.4.0', 'console_scripts', 'pylint')()
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/pylint-1.4.0-py2.7.egg/pylint/__init__.py",
>> line 23, in run_pylint
>>     Run(sys.argv[1:])
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/pylint-1.4.0-py2.7.egg/pylint/lint.py",
>> line 1193, in __init__
>>     linter.load_plugin_modules(self._plugins)
>>   File 
>> "/usr/local/lib/python2.7/dist-packages/pylint-1.4.0-py2.7.egg/pylint/lint.py",
>> line 469, in load_plugin_modules
>>     module = load_module_from_name(modname)
>>   File "/usr/local/lib/python2.7/dist-packages/astroid-1.3.2-
>> py2.7.egg/astroid/modutils.py", line 135, in load_module_from_name
>>     return load_module_from_modpath(dotted_name.split('.'), path,
>> use_sys)
>>   File "/usr/local/lib/python2.7/dist-packages/astroid-1.3.2-
>> py2.7.egg/astroid/modutils.py", line 177, in load_module_from_modpath
>>     mp_file, mp_filename, mp_desc = imp.find_module(part, path)
>> *ImportError: No module named pylint-web2py*
>>
>>
>>
>> On Thursday, December 11, 2014 10:03:15 PM UTC+5:30, flagist0 wrote:
>>>
>>>
>>>
>>> On Wednesday, December 10, 2014 7:04:17 AM UTC+4, Massimo Di Pierro
>>> wrote:
>>>>
>>>> perhaps we should include this in script?
>>>>
>>>> Pylint expects the plugins to be installed system-wide, so it's better
>>> to use this plugin as a separate package.
>>> But I'll register my version of the plugin on PyPI so it can be
>>> installed without git.
>>>
>>  --
> Resources:
> - http://web2py.com
> - http://web2py.com/book (Documentation)
> - http://github.com/web2py/web2py (Source code)
> - https://code.google.com/p/web2py/issues/list (Report Issues)
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "web2py-users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/web2py/db6NRkkMhGw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> web2py+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>


-- 
Thanks and Regards
Prasad M. Muley
Programmer at One Delta Synergies Pvt Ltd. | PICT 2013

“Pretty much everything on the web uses those two things: *C* and *UNIX*,”
- Dennis Ritchie
                               *http://www.cs.bell-labs.com/who/dmr/*
<http://www.cs.bell-labs.com/who/dmr/>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to