On Thu, Sep 2, 2010 at 1:34 AM, Emile Anclin <[email protected]>wrote:
> On Thursday 02 September 2010 02:21:52 Dan Stromberg wrote:
> > Hi folks.
>
> hi,
>
> > I'm using a recent (see below for specifics) python2 version of
> > pyreverse in an attempt to diagram import relationships and inheritance
> > relationships.
> >
> > However, I'm getting no arcs at all for the imports, and I seem to be
> > getting only inheritance arcs for built in classes, not for my own
> > classes that I'm feeding to pyreverse.
> >
> > The command I'm using to invoke pyreverse is:
> > pyreverse -f ALL -a1 -s1 -p port-const ${files}
> >
> > Am I missing some option or something?
>
> I don't think so.
>
> It sound like this long standing big bug that I unfortunately had not the
> time to correct : http://www.logilab.org/ticket/9542 .
>
> It has to do with an error on the pythonpath;
> I had a longer explanation on this subject on a mail :
> http://lists.logilab.org/pipermail/python-projects/2010-June/002472.html
>
> Since it comes up again and again, I think it is time for me to fix it ...
Sounds like a good idea.
This is the second project I've seen this issue on.
Invoking pyreverse like this seems to have worked around the problem:
PYTHONPATH=$$(pwd) pyreverse -f ALL -a1 -s1 -p port-const ${files}
(inside a Makefile - that's why the $ is doubled on pwd)
Thanks!
>
> > Thanks!
> >
> > PS:
> > I'm using pylint 0.19.0,
> > astng 0.19.3, common 0.45.2
>
> btw, we are now on pylint 0.21.2, and I introduced in 0.21.0 that
> pyreverse also recognizes class members like:
>
Ah. Yes, I just got pylint from an Ubuntu repository this time.
--
Dan Stromberg
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects