[Python-projects] libastng installation problem

Tom Crawley tcrawley at beacon-cs.com
Mon Aug 25 20:06:06 CEST 2008


Hi,
 
 I am attempting to install pylint v0.14.0.
 
 I am using the following components:
 
 pylint version 0.14.0
 logilab-astng v 0.17.2
 logilab-common v 0.34.0
 
 It seems that astng is not installed correctly as it cannot be loaded or imported.
 
 Here is traceback
 
 >>>>>>>>>>>>>>>>>>>>>
 Traceback (most recent call last):
   File "/home/tcrawley/development/python/sandboxes/logilabtest/bin/pylint", line 5, in <module>
     pkg_resources.run_script('pylint==0.14.0', 'pylint')
   File "build/bdist.linux-i686/egg/pkg_resources.py", line 448, in run_script
   File "build/bdist.linux-i686/egg/pkg_resources.py", line 1166, in run_script
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/EGG-INFO/scripts/pylint", line 3, in <module>
     from pylint import lint
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/lint.py", line 31, in <module>
     from pylint.checkers import utils
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/checkers/__init__.py", line 40, in <module>
     from logilab.astng.utils import ASTWalker
 ImportError: No module named astng.utils
 
 <<<<<<<<<<<<<<<<<<<<<<<
 
 I have tried both easy_install and setup.py install from the command line using the uncompressed packages.
 
 I also tried this is a virtualenv sandbox which also failed with the error shown above.

 I get the errors below when trying to install pylint.

 >>>>>>>>>>>>>>>>>>>>>>>>
 
 When attempting to install pylint.py I got the following error:
 pylint.test.unittest_lint: module references __file__
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/test/input/func_unknown_encoding.py", line 0
 SyntaxError: ('unknown encoding: IBO-8859-1', ('/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/test/input/func_unknown_encoding.py', 0, 0, None))
 
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/test/input/func_yield_outside_func.py", line 3
     yield 1
 SyntaxError: 'yield' outside function
 
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/test/input/func_continue_not_in_loop.py", line 8
     continue
 SyntaxError: 'continue' not properly in loop
 
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.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 "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/test/input/func_syntax_error.py", line 1
     def toto
 
 ^
 SyntaxError: invalid syntax
 
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/test/input/func_w0705.py", line 28
     __revision__ += 1
 SyntaxError: default 'except:' must be last
 
 SyntaxError: ("'return' with argument inside generator",)
 
 SyntaxError: ("'return' with argument inside generator",)
 
   File "/home/tcrawley/development/python/sandboxes/logilabtest/lib/python2.5/site-packages/pylint-0.14.0-py2.5.egg/pylint/test/input/func_return_outside_func.py", line 3
     return
 SyntaxError: 'return' outside function
 
 <<<<<<<<<<<<<<<<<<<<<<<<<<<
 
 What am I doing wrong ? Is there any information which you need to diagnose the problem.
 
 Thomas


More information about the Python-Projects mailing list