Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Jul 2012 02:47:18 GMT
From:      Garrett Cooper <yanegomi@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/170290: pylint broken after latest update due to permissions issue
Message-ID:  <201207310247.q6V2lIac013066@red.freebsd.org>
Resent-Message-ID: <201207310250.q6V2oAlp030153@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170290
>Category:       misc
>Synopsis:       pylint broken after latest update due to permissions issue
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jul 31 02:50:10 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Garrett Cooper
>Release:        9.1-PRERELEASE
>Organization:
EMC Isilon
>Environment:
FreeBSD forza.west.isilon.com 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #2 r238921M: Mon Jul 30 14:47:10 PDT 2012     gcooper@forza.west.isilon.com:/usr/obj/usr/src/sys/FORZA  amd64
>Description:
pylint won't run after a recent astng2 update, because the file permissions for the py2stdlib module are too exclusive:

$ pylint
Traceback (most recent call last):
  File "/usr/local/bin/pylint", line 3, in <module>
    from pylint import lint
  File "/usr/local/lib/python2.7/site-packages/pylint/lint.py", line 31, in <module>
    from pylint.checkers import utils
  File "/usr/local/lib/python2.7/site-packages/pylint/checkers/__init__.py", line 44, in <module>
    from logilab.astng.utils import ASTWalker
  File "/usr/local/lib/python2.7/site-packages/logilab/astng/__init__.py", line 85, in <module>
    __import__(module[:-3])
ImportError: No module named py2stdlib
$ ls -l /usr/local/lib/python2.7/site-packages
-rw-------  1 root  wheel  2828 Jul 18 02:38 /usr/local/lib/python2.7/site-packages/logilab/astng/brain/py2stdlib.py

After I chmod a+r the file, then pylint functions again:

$ pylint
Usage:  pylint [options] module_or_package

  Check that a module satisfy a coding standard (and more !).

    pylint --help

  Display this help message and exit.

    pylint --help-msg <msg-id>[,<msg-id>]

  Display help messages about given message identifiers and exit.


Options:
  --version             show program's version number and exit
  -h, --help            show this help message and exit
  --long-help           more verbose help.

  Master:
    --rcfile=<file>     Specify a configuration file.
    -E, --errors-only   In error mode, checkers without error messages are
                        disabled and for others, only the ERROR messages are
                        displayed, and no reports are done by default
    --ignore=<file>[,<file>...]
                        Add files or directories to the blacklist. They should
                        be base names, not paths. [current: CVS]

  Commands:
    --help-msg=<msg-id>
                        Display a help message for the given message id and
                        exit. The value may be a comma separated list of
                        message ids.
    --generate-rcfile   Generate a sample configuration file according to the
                        current configuration. You can put other options
                        before this one to get them in the generated
                        configuration.

  Messages control:
    -e <msg ids>, --enable=<msg ids>
                        Enable the message, report, category or checker with
                        the given id(s). You can either give multiple
                        identifier separated by comma (,) or put this option
                        multiple time.
    -d <msg ids>, --disable=<msg ids>
                        Disable the message, report, category or checker with
                        the given id(s). You can either give multiple
                        identifier separated by comma (,) or put this option
                        multiple time (only on the command line, not in the
                        configuration file where it should appear only once).

  Reports:
    -f <format>, --output-format=<format>
                        Set the output format. Available formats are text,
                        parseable, colorized, msvs (visual studio) and html
                        [current: text]
    -i <y_or_n>, --include-ids=<y_or_n>
                        Include message's id in output [current: no]
    -r <y_or_n>, --reports=<y_or_n>
                        Tells whether to display a full report or only the
                        messages [current: yes]
>How-To-Repeat:
cd /usr/ports/devel/pylint; make install
>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201207310247.q6V2lIac013066>