pylint #8337 easy_install pylint fails and doesn't install dependencies [resolved]


slightly truncated screen-log, on Fedora 10 and with python-setuptools-devel-0.6c9-1.fc10.noarch

It has been mentioned on the mailing-list, but on Sylvains request I file this.


[root@dev-mk ~]# find /usr/lib/python2.5/ /usr/bin | egrep 'logilab|pylint' # nothing found


[root@dev-mk ~]# easy_install pylint
Searching for pylint
Reading http://pypi.python.org/simple/pylint/
Reading http://www.logilab.org/project/name/pylint
Reading http://www.logilab.org/projects/pylint
Best match: pylint 0.16.0
Downloading http://ftp.logilab.org/pub/pylint/pylint-0.16.0.tar.gz
Processing pylint-0.16.0.tar.gz
Running pylint-0.16.0/setup.py -q bdist_egg --dist-dir /tmp/easy_install-I5RCUm/pylint-0.16.0/egg-dist-tmp-Vfnr7u
package init file './test/__init__.py' not found (or not a regular file)
  File "build/bdist.linux-i686/egg/pylint/test/input/func_w0705.py", line 28
    __revision__ += 1
SyntaxError: default 'except:' must be last

  File "build/bdist.linux-i686/egg/pylint/test/input/func___future___import_not_first_stmt.py", line 4
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

  File "build/bdist.linux-i686/egg/pylint/test/input/func_return_outside_func.py", line 3
    return
SyntaxError: 'return' outside function

SyntaxError: ("'return' with argument inside generator",)

  File "build/bdist.linux-i686/egg/pylint/test/input/func_yield_outside_func.py", line 3
    yield 1
SyntaxError: 'yield' outside function

  File "build/bdist.linux-i686/egg/pylint/test/input/func_continue_not_in_loop.py", line 8
    continue
SyntaxError: 'continue' not properly in loop

  File "build/bdist.linux-i686/egg/pylint/test/input/func_syntax_error.py", line 1
    def toto
           
^
SyntaxError: invalid syntax

  File "build/bdist.linux-i686/egg/pylint/test/input/func_unknown_encoding.py", line 0
SyntaxError: ('unknown encoding: IBO-8859-1', ('build/bdist.linux-i686/egg/pylint/test/input/func_unknown_encoding.py', 0, 0, None))

SyntaxError: ("'return' with argument inside generator",)

test/input/func_w0152.py -> build/bdist.linux-i686/egg/pylint/test/input/func_w0152.py
test/input/func_w0110.py -> build/bdist.linux-i686/egg/pylint/test/input/func_w0110.py
test/input/func_nameerror_on_string_substitution.py -> build/bdist.linux-i686/egg/pylint/test/input/func_nameerror_on_string_substitution.py
...
test/regrtest_data/package/subpackage/module.py -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/package/subpackage/module.py
test/regrtest_data/package/subpackage/__init__.py -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/package/subpackage/__init__.py
Creating missing __init__.py for pylint.test
zip_safe flag not set; analyzing archive contents...
pylint.checkers.__init__: module references __path__
pylint.checkers.variables: module references __file__
pylint.checkers.variables: module references __path__
pylint.test.unittest_checkers_utils: module references __file__
pylint.test.unittest_checkers_utils: module references __path__
pylint.test.utils: module references __file__
pylint.test.test_func_sample_config: module references __path__
pylint.test.unittest_lint: module references __file__
pylint.test.smoketest: module references __file__
  File "/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func_w0705.py", line 28
    __revision__ += 1
SyntaxError: default 'except:' must be last

  File "/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func___future___import_not_first_stmt.py", line 4
    from __future__ import generators
SyntaxError: from __future__ imports must occur at the beginning of the file

  File "/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func_return_outside_func.py", line 3
    return
SyntaxError: 'return' outside function

SyntaxError: ("'return' with argument inside generator",)

  File "/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func_yield_outside_func.py", line 3
    yield 1
SyntaxError: 'yield' outside function

  File "/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func_continue_not_in_loop.py", line 8
    continue
SyntaxError: 'continue' not properly in loop

  File "/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func_syntax_error.py", line 1
    def toto
           
^
SyntaxError: invalid syntax

  File "/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func_unknown_encoding.py", line 0
SyntaxError: ('unknown encoding: IBO-8859-1', ('/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func_unknown_encoding.py', 0, 0, None))

SyntaxError: ("'return' with argument inside generator",)

Adding pylint 0.16.0 to easy-install.pth file
Installing symilar script to /usr/bin
Installing pylint script to /usr/bin
Installing epylint script to /usr/bin
Installing pyreverse script to /usr/bin
Installing pylint-gui script to /usr/bin

Installed /usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg
Processing dependencies for pylint
Searching for logilab-astng>=0.17.4
Reading http://pypi.python.org/simple/logilab-astng/
Reading http://www.logilab.org/project/name/logilab-astng
Best match: logilab-astng 0.17.4
Downloading http://ftp.logilab.org/pub/astng/logilab-astng-0.17.4.tar.gz
Processing logilab-astng-0.17.4.tar.gz
Running logilab-astng-0.17.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-L-NmR6/logilab-astng-0.17.4/egg-dist-tmp-Pi1BOQ
test/regrtest_data/package -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/package
test/regrtest_data/descriptor_crash.py -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/descriptor_crash.py
test/regrtest_data/import_package_subpackage_module.py -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/import_package_subpackage_module.py
test/regrtest_data/package/subpackage -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/package/subpackage
test/regrtest_data/package/__init__.py -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/package/__init__.py
test/regrtest_data/package/subpackage/module.py -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/package/subpackage/module.py
test/regrtest_data/package/subpackage/__init__.py -> build/bdist.linux-i686/egg/pylint/test/regrtest_data/package/subpackage/__init__.py
error: Setup script exited with error: file 'bin/pylint' does not exist


[root@dev-mk ~]# find /usr/lib/python2.5/ /usr/bin | egrep 'logilab|pylint' # no logilab stuff installed
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/config.py
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/interfaces.pyc
...
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/unittest_checkers_utils.pyc
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/test_format.py
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/unittest_pyreverse_writer.py
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/data
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/data/clientmodule_test.py
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/data/suppliermodule_test.pyc
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/data/__init__.pyc
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/data/clientmodule_test.pyc
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/data/suppliermodule_test.py
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/data/__init__.py
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/test_func.py
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/pylint/test/input/func_w0703.pyc
...
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/dependency_links.txt
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/PKG-INFO
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/scripts
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/scripts/symilar
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/scripts/pylint
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/scripts/epylint
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/scripts/pyreverse
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/scripts/pylint-gui
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/not-zip-safe
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/requires.txt
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/top_level.txt
/usr/lib/python2.5/site-packages/pylint-0.16.0-py2.5.egg/EGG-INFO/SOURCES.txt
/usr/bin/pylint
/usr/bin/epylint
/usr/bin/pylint-gui


[root@dev-mk ~]# pylint
Traceback (most recent call last):
  File "/usr/bin/pylint", line 4, in 
    import pkg_resources
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 2562, in 
    working_set.require(__requires__)
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 626, in require
    needed = self.resolve(parse_requirements(requirements))
  File "/usr/lib/python2.5/site-packages/pkg_resources.py", line 524, in resolve
    raise DistributionNotFound(req)  # XXX put more info here
pkg_resources.DistributionNotFound: logilab-astng>=0.17.4


[root@dev-mk ~]# easy_install logilab-common
Searching for logilab-common
Reading http://pypi.python.org/simple/logilab-common/
Reading http://www.logilab.org/project/logilab-common
Best match: logilab-common 0.38.1
Downloading http://ftp.logilab.org/pub/common/logilab-common-0.38.1.tar.gz
Processing logilab-common-0.38.1.tar.gz
Running logilab-common-0.38.1/setup.py -q bdist_egg --dist-dir /tmp/easy_install-XZ5Byo/logilab-common-0.38.1/egg-dist-tmp-Wmc8-t
package init file './test/__init__.py' not found (or not a regular file)
warning: no files found matching '*' under directory 'doc/html'
Creating missing __init__.py for logilab.common.test
zip_safe flag not set; analyzing archive contents...
logilab.common.pytest: module references __file__
logilab.common.modutils: module references __file__
logilab.common.testlib: module references __file__
logilab.common.testlib: module MAY be using inspect.getinnerframes
logilab.common.debugger: module MAY be using inspect.getsource
logilab.common.test.unittest_changelog: module references __file__
/usr/lib/python2.5/site-packages/setuptools/command/bdist_egg.py:422: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
  symbols = dict.fromkeys(iter_symbols(code))
logilab.common.test.unittest_testlib: module references __file__
logilab.common.test.unittest_modutils: module references __file__
logilab.common.test.unittest_modutils: module references __path__
Adding logilab-common 0.38.1 to easy-install.pth file
Installing pytest script to /usr/bin

Installed /usr/lib/python2.5/site-packages/logilab_common-0.38.1-py2.5.egg
Processing dependencies for logilab-common
Finished processing dependencies for logilab-common


[root@dev-mk ~]# easy_install logilab-astng
Searching for logilab-astng
Reading http://pypi.python.org/simple/logilab-astng/
Reading http://www.logilab.org/project/name/logilab-astng
Best match: logilab-astng 0.17.4
Downloading http://ftp.logilab.org/pub/astng/logilab-astng-0.17.4.tar.gz
Processing logilab-astng-0.17.4.tar.gz
Running logilab-astng-0.17.4/setup.py -q bdist_egg --dist-dir /tmp/easy_install-MY6qLk/logilab-astng-0.17.4/egg-dist-tmp-3qD6em
test/regrtest_data/package -> build/bdist.linux-i686/egg/logilab/astng/test/regrtest_data/package
test/regrtest_data/descriptor_crash.py -> build/bdist.linux-i686/egg/logilab/astng/test/regrtest_data/descriptor_crash.py
test/regrtest_data/import_package_subpackage_module.py -> build/bdist.linux-i686/egg/logilab/astng/test/regrtest_data/import_package_subpackage_module.py
test/regrtest_data/package/subpackage -> build/bdist.linux-i686/egg/logilab/astng/test/regrtest_data/package/subpackage
test/regrtest_data/package/__init__.py -> build/bdist.linux-i686/egg/logilab/astng/test/regrtest_data/package/__init__.py
test/regrtest_data/package/subpackage/module.py -> build/bdist.linux-i686/egg/logilab/astng/test/regrtest_data/package/subpackage/module.py
test/regrtest_data/package/subpackage/__init__.py -> build/bdist.linux-i686/egg/logilab/astng/test/regrtest_data/package/subpackage/__init__.py
test/data/module2.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/module2.py
test/data/noendingnewline.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/noendingnewline.py
test/data/all.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/all.py
test/data/appl -> build/bdist.linux-i686/egg/logilab/astng/test/data/appl
test/data/nonregr.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/nonregr.py
test/data/module.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/module.py
test/data/format.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/format.py
test/data/notall.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/notall.py
test/data/SSL1 -> build/bdist.linux-i686/egg/logilab/astng/test/data/SSL1
test/data/__init__.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/__init__.py
test/data/appl/myConnection.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/appl/myConnection.py
test/data/appl/__init__.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/appl/__init__.py
test/data/SSL1/Connection1.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/SSL1/Connection1.py
test/data/SSL1/__init__.py -> build/bdist.linux-i686/egg/logilab/astng/test/data/SSL1/__init__.py
test/data2/clientmodule_test.py -> build/bdist.linux-i686/egg/logilab/astng/test/data2/clientmodule_test.py
test/data2/suppliermodule_test.py -> build/bdist.linux-i686/egg/logilab/astng/test/data2/suppliermodule_test.py
test/data2/__init__.py -> build/bdist.linux-i686/egg/logilab/astng/test/data2/__init__.py
zip_safe flag not set; analyzing archive contents...
logilab.astng.builder: module references __file__
logilab.astng.builder: module references __path__
logilab.astng.manager: module references __file__
logilab.astng.test.regrtest: module references __file__
logilab.astng.test.unittest_utils: module references __file__
logilab.astng.test.unittest_inference: module references __file__
logilab.astng.test.unittest_lookup: module references __file__
logilab.astng.test.unittest_builder: module references __file__
logilab.astng.test.unittest_builder: module references __path__
logilab.astng.test.unittest_scoped_nodes: module references __file__
Adding logilab-astng 0.17.4 to easy-install.pth file

Installed /usr/lib/python2.5/site-packages/logilab_astng-0.17.4-py2.5.egg
Processing dependencies for logilab-astng
Finished processing dependencies for logilab-astng


[root@dev-mk ~]# pylint
No config file found, using default configuration
Usage:  pylint [options] module_or_package
...
priorityimportant
typebug
done in0.18.0
load0.500
load left0.000
closed by<not specified>