[Eric] Activating plugins installed locally?

detlev detlev at die-offenbachs.de
Sun Jun 20 08:54:20 BST 2010


Hi,

both issues have been fixed in the source repo. I would be glad, if you could 
clone it (s. web site for instructions) and give me some feedback.

Regards,
Detlev

On Samstag, 19. Juni 2010, Giacomo Alzetta wrote:
> Ok I understood.
> eric4, when launched, has only a local bin directory that is ~/bin.
> therefore I simply created a symlink to ~/.local/bin/pylint and the plugin
> was installed correctly.
> 
> There was an other problem...
> pylint 0.21(the one I use) doesn't have --enable-checker option, it was
> replaced by --enable.
> It is easy to fix, in the PyLintConfigDialog.py you should change the line
> 210-212 from:
> 
>         args.append('--enable-checker=%s' % ','.join(checkers))
> 
>         return (args, parms)
> 
> to:
> 
>         checker_option = '--enable'
>         if numversion < (0, 21, 1):
>             checker_option += '-checker'
>            args.append('%s=%s' % (checker_option, ','.join(checkers)))
> 
>         return (args, parms)
> 
> or something similar.
> 
> 
> 2010/6/18 detlev <detlev at die-offenbachs.de>
> 
> > Hi,
> >
> > please get the latest pylint plug-in sources (see eric web site) and
> > install
> > the archive found therein. Please report back.
> >
> > Detlev
> >
> > On Mittwoch, 16. Juni 2010, Giacomo Alzetta wrote:
> > > I just noticed that you might have misunderstood my email...or better I
> > > didn't write it right.
> > > the PyLint Plugin is working, or better it is shown in the Plug-in
> > > Infos dialog.
> > > The problem is that "pylint" is installed in my local directories.
> > >
> > > When I try to active the plug-in it says:
> > >
> > >  PyLint executable 'pylint' not found.
> > >
> > >
> > > Even if the local installation should be reacheable since I added
> > > pylint
> >
> > on
> >
> > > both PYTHONPATH and PATH.
> > >
> > > So my question is about the possibility of having external tools, used
> > > by plug-ins, installed locally, not the plugins themselves, since they
> > > work correctly.
> > >
> > > Sorry for being unclear and wasting the time of your first reply.
> > >
> > >
> > > 2010/6/16 detlev <detlev at die-offenbachs.de>
> > >
> > > > On Mittwoch, 16. Juni 2010, Giacomo Alzetta wrote:
> > > > > Hello,
> > > > > I wanted to try the pylint plug-in, but I discovered that eric4
> > > > > won't activate it because it isn't installed system-wide, but only
> > > > > in my
> >
> > user
> >
> > > > > directory.
> > > > >
> > > > > Is there any way to make it run without installing it system-wide?
> > > > >
> > > > > I tried to read the sources of the PluginManager, looking for a
> > > >
> > > > workaround,
> > > >
> > > > > but I didn't really understand well how it checks whether an
> > > > > external resource is avaiable or not, but I think it simply checks
> > > > > if the
> > > >
> > > > executable
> > > >
> > > > > is avaiable under the system bins directories, am I right?
> > > > >
> > > > > In fact I noticed that, for PyEnchant, it simply tries to import it
> >
> > and
> >
> > > > > retrieve its location,
> > > > > but what about the other plug-ins?
> > > > > My pylint is avaiable on both PYTHONPATH and PATH, therefore it
> >
> > should
> >
> > > > work
> > > >
> > > > > without problems.
> > > >
> > > > I agree. What is the error message given by the plug-in? It should be
> > > > shown in
> > > > red in the Plug-In Info Dialog.
> > > >
> > > > > Is there any chance to have eric check also user directories?
> > > > > Maybe adding the configuration for the paths where eric should look
> >
> > for
> >
> > > > > these resources...
> > > > >
> > > > > Thank you,
> > > > > Giacomo.
> > > >
> > > > --
> > > > Detlev Offenbach
> > > > detlev at die-offenbachs.de
> >
> > --
> > Detlev Offenbach
> > detlev at die-offenbachs.de
> 


-- 
Detlev Offenbach
detlev at die-offenbachs.de


More information about the Eric mailing list