Hello,

I'm trying to install astng, but some of the tests fail:

======================  unittest_inference.py  =======================
...............E......................................................
======================================================================
ERROR: test_binary_op_list_mul_none (unittest_inference.InferenceTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File "/home/nikratio/tmp/logilab-astng-0.20.2/test/unittest_inference.py", 
line 831, in test_binary_op_list_mul_none
    infered = astng['a'].infered()
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 548, in 
infered
    return list(self.infer())
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 303, in 
wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 130, in 
_infer_stmts
    for infered in stmt.infer(context):
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 303, in 
wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.6/logilab/astng/inference.py", line 371, in 
infer_binop
    for val in _infer_binop(self.op, lhs, self.right, context, failures):
  File "/usr/lib/pymodules/python2.6/logilab/astng/inference.py", line 354, in 
_infer_binop
    for valnode in operand1.infer_binary_op(operator, operand2, context):
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 317, in 
wrapper
    for node in func(*args, **kwargs):
  File "/usr/lib/pymodules/python2.6/logilab/astng/protocols.py", line 133, in 
tl_infer_binary_op
    if not n is YES] * other.value
TypeError: can't multiply sequence by non-int of type 'NoneType'

                              no stdout                               
                              no stderr                               
========================  unittest_lookup.py  ========================
................
=======================  unittest_manager.py  ========================
......
going into 
/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test
=======================  unittest_builder.py  ========================
..................................................
=====================  unittest_scoped_nodes.py  =====================
.................................
========================  unittest_nodes.py  =========================
......................
======================  unittest_inspector.py  =======================
......
========================  unittest_utils.py  =========================
...
======================  unittest_inference.py  =======================
...............E..........................................E...........
======================================================================
ERROR: test_binary_op_list_mul_none (unittest_inference.InferenceTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File 
"/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test/unittest_inference.py",
 line 831, in test_binary_op_list_mul_none
    infered = astng['a'].infered()
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 548, in 
infered
    return list(self.infer())
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 303, in 
wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 130, in 
_infer_stmts
    for infered in stmt.infer(context):
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 303, in 
wrapped
    for res in _func(node, context, **kwargs):
  File "/usr/lib/pymodules/python2.6/logilab/astng/inference.py", line 371, in 
infer_binop
    for val in _infer_binop(self.op, lhs, self.right, context, failures):
  File "/usr/lib/pymodules/python2.6/logilab/astng/inference.py", line 354, in 
_infer_binop
    for valnode in operand1.infer_binary_op(operator, operand2, context):
  File "/usr/lib/pymodules/python2.6/logilab/astng/bases.py", line 317, in 
wrapper
    for node in func(*args, **kwargs):
  File "/usr/lib/pymodules/python2.6/logilab/astng/protocols.py", line 133, in 
tl_infer_binary_op
    if not n is YES] * other.value
TypeError: can't multiply sequence by non-int of type 'NoneType'

                              no stdout                               
                              no stderr                               
======================================================================
ERROR: test_python25_no_relative_import (unittest_inference.InferenceTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File 
"/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test/unittest_inference.py",
 line 927, in test_python25_no_relative_import
    astng = builder.file_build(join('regrtest_data', 'absimport.py'), 
'absimport')
  File "/usr/lib/pymodules/python2.6/logilab/astng/builder.py", line 124, in 
file_build
    raise ASTNGBuildingException(msg)
ASTNGBuildingException: Unable to load file 'regrtest_data/absimport.py' 
([Errno 2] No such file or directory: 'regrtest_data/absimport.py')

                              no stdout                               
                              no stderr                               
========================  unittest_lookup.py  ========================
................
=======================  unittest_manager.py  ========================
..EE..
======================================================================
ERROR: test_astng_from_module_name_egg (unittest_manager.ASTNGManagerTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File 
"/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test/unittest_manager.py",
 line 61, in test_astng_from_module_name_egg
    self._test_astng_from_zip('MyPyPa-0.1.0-py2.5.egg')
  File 
"/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test/unittest_manager.py",
 line 53, in _test_astng_from_zip
    module = self.manager.astng_from_module_name('mypypa')
  File "/usr/lib/pymodules/python2.6/logilab/astng/manager.py", line 181, in 
astng_from_module_name
    raise ASTNGBuildingException(msg)
ASTNGBuildingException: Unable to load module mypypa (No module named mypypa)

                              no stdout                               
                              no stderr                               
======================================================================
ERROR: test_astng_from_module_name_zip (unittest_manager.ASTNGManagerTC)
----------------------------------------------------------------------
Traceback (most recent call last)
  File 
"/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test/unittest_manager.py",
 line 64, in test_astng_from_module_name_zip
    self._test_astng_from_zip('MyPyPa-0.1.0-py2.5.zip')
  File 
"/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test/unittest_manager.py",
 line 53, in _test_astng_from_zip
    module = self.manager.astng_from_module_name('mypypa')
  File "/usr/lib/pymodules/python2.6/logilab/astng/manager.py", line 181, in 
astng_from_module_name
    raise ASTNGBuildingException(msg)
ASTNGBuildingException: Unable to load module mypypa (No module named mypypa)

                              no stdout                               
                              no stderr                               
*******************************************************************************
Ran 412 test cases in 1.91s (1.87s CPU), 5 errors
13 modules OK (3 failed)
failures: /home/nikratio/tmp/logilab-astng-0.20.2/test/unittest_inference 
[1/70], 
/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test/unittest_inference
 [2/70], 
/home/nikratio/tmp/logilab-astng-0.20.2/build/lib.linux-i686-2.6/logilab/astng/test/unittest_manager
 [2/6]



Anyone able to help?

   -Nikolaus

-- 
 »Time flies like an arrow, fruit flies like a Banana.«

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to