Bug#863503: numba: numba/compiler.py:243: ConstantInferenceError [amd64, i386, arm64]

Daniel Stender debian at danielstender.com
Sat May 27 20:41:37 UTC 2017


Source: numba
Version: 0.33.0-1
Severity: serious

https://buildd.debian.org/status/fetch.php?pkg=numba&arch=i386&ver=0.33.0-1&stamp=1495914429&raw=0
https://buildd.debian.org/status/fetch.php?pkg=numba&arch=arm64&ver=0.33.0-1&stamp=1495916190&raw=0

This failure appears among the tests several times:

<cut>
__________________ TestRaising.test_assert_statement_nopython __________________

self = <numba.tests.test_exceptions.TestRaising testMethod=test_assert_statement_nopython>

    def test_assert_statement_nopython(self):
>       self.check_assert_statement(flags=no_pyobj_flags)

numba/tests/test_exceptions.py:199: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
numba/tests/test_exceptions.py:188: in check_assert_statement
    cres = compile_isolated(pyfunc, (types.int32,), flags=flags)
numba/compiler.py:150: in compile_isolated
    flags, locals)
numba/compiler.py:704: in compile_extra
    return pipeline.compile_extra(func)
numba/compiler.py:357: in compile_extra
    return self._compile_bytecode()
numba/compiler.py:665: in _compile_bytecode
    return self._compile_core()
numba/compiler.py:652: in _compile_core
    res = pm.run(self.status)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <numba.compiler._PipelineManager object at 0x7feadcf62810>
status = fail_reason=None, can_fallback=False, can_giveup=False

    def run(self, status):
        assert self._finalized, "PM must be finalized before run()"
        res = None
        for pipeline_name in self.pipeline_order:
            event(pipeline_name)
            is_final_pipeline = pipeline_name == self.pipeline_order[-1]
            for stage, stage_name in self.pipeline_stages[pipeline_name]:
                try:
                    event(stage_name)
                    stage()
                except _EarlyPipelineCompletion as e:
                    return e.result
                except BaseException as e:
                    msg = "Failed at %s (%s)" % (pipeline_name, stage_name)
                    patched_exception = self._patch_error(msg, e)
                    # No more fallback pipelines?
                    if is_final_pipeline:
>                       raise patched_exception
E                       ConstantInferenceError: Caused By:
E                       Traceback (most recent call last):
E                         File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/numba/compiler.py", line 235, in run
E                           stage()
E                         File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/numba/compiler.py", line 466, in stage_generic_rewrites
E                           self, self.func_ir)
E                         File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/numba/rewrites/registry.py", line 71, in apply
E                           pipeline.calltypes)
E                         File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/numba/rewrites/static_raise.py", line 43, in match
E                           const = interp.infer_constant(inst.exception)
E                         File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/numba/ir.py", line 873, in infer_constant
E                           return self._consts.infer_constant(name)
E                         File "/<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/numba/consts.py", line 44, in infer_constant
E                           raise exc(*args)
E                       ConstantInferenceError: constant inference not possible for call $108.23(@py_format6)
E                       
E                       Failed at nopython (nopython rewrites)
E                       constant inference not possible for call $108.23(@py_format6)

numba/compiler.py:243: ConstantInferenceError
</cut>

-- 
4096R/DF5182C8
Debian Developer (stender at debian.org)
http://www.danielstender.com/



More information about the debian-science-maintainers mailing list