Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/vhaenel/miniconda3/envs/numba_3.8/lib/python3.8/site-packages/llvmlite/ir/instructions.py", line 619, in __init__
typ = typ.elements[i]
AttributeError: 'PointerType' object has no attribute 'elements'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/vhaenel/git/numba/numba/core/errors.py", line 720, in new_error_context
yield
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 266, in lower_block
self.lower_inst(inst)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 338, in lower_inst
val = self.lower_assign(ty, inst)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 512, in lower_assign
return self.lower_expr(ty, value)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 986, in lower_expr
res = self.lower_call(resty, expr)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 778, in lower_call
res = self._lower_call_normal(fnty, expr, signature)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 957, in _lower_call_normal
res = impl(self.builder, argvals, self.loc)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 1154, in __call__
res = self._imp(self._context, builder, self._sig, args, loc=loc)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 1184, in wrapper
return fn(*args, **kwargs)
File "/Users/vhaenel/git/numba/numba/cpython/builtins.py", line 571, in redirect_type_ctor
return context.compile_internal(builder, call_ctor, sig, args)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 875, in compile_internal
return self.call_internal(builder, cres.fndesc, sig, args)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 882, in call_internal
status, res = self.call_internal_no_propagate(builder, fndesc, sig, args)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 896, in call_internal_no_propagate
status, res = self.call_conv.call_function(builder, fn, sig.return_type,
File "/Users/vhaenel/git/numba/numba/core/callconv.py", line 536, in call_function
args = list(arginfo.as_arguments(builder, args))
File "/Users/vhaenel/git/numba/numba/core/datamodel/packer.py", line 97, in as_arguments
args = [dm.as_argument(builder, val)
File "/Users/vhaenel/git/numba/numba/core/datamodel/packer.py", line 97, in <listcomp>
args = [dm.as_argument(builder, val)
File "/Users/vhaenel/git/numba/numba/core/datamodel/models.py", line 448, in as_argument
v = self._elem_model.as_argument(builder, v)
File "/Users/vhaenel/git/numba/numba/core/datamodel/models.py", line 597, in as_argument
return self._as("as_argument", builder, value)
File "/Users/vhaenel/git/numba/numba/core/datamodel/models.py", line 539, in _as
self.get(builder, value, i)))
File "/Users/vhaenel/git/numba/numba/core/datamodel/models.py", line 632, in get
return builder.extract_value(val, [pos],
File "/Users/vhaenel/miniconda3/envs/numba_3.8/lib/python3.8/site-packages/llvmlite/ir/builder.py", line 927, in extract_value
instr = instructions.ExtractValue(self.block, agg, idx, name=name)
File "/Users/vhaenel/miniconda3/envs/numba_3.8/lib/python3.8/site-packages/llvmlite/ir/instructions.py", line 621, in __init__
raise TypeError("Can't index at %r in %s"
TypeError: Can't index at [0] in i8*
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/vhaenel/git/numba/numba/tests/test_typedlist.py", line 1293, in test_simple_iterable_types
cf_received, py_received = foo(), foo.py_func()
File "/Users/vhaenel/git/numba/numba/core/dispatcher.py", line 420, in _compile_for_args
raise e
File "/Users/vhaenel/git/numba/numba/core/dispatcher.py", line 353, in _compile_for_args
return self.compile(tuple(argtypes))
File "/Users/vhaenel/git/numba/numba/core/compiler_lock.py", line 32, in _acquire_compile_lock
return func(*args, **kwargs)
File "/Users/vhaenel/git/numba/numba/core/dispatcher.py", line 768, in compile
cres = self._compiler.compile(args, return_type)
File "/Users/vhaenel/git/numba/numba/core/dispatcher.py", line 77, in compile
status, retval = self._compile_cached(args, return_type)
File "/Users/vhaenel/git/numba/numba/core/dispatcher.py", line 91, in _compile_cached
retval = self._compile_core(args, return_type)
File "/Users/vhaenel/git/numba/numba/core/dispatcher.py", line 104, in _compile_core
cres = compiler.compile_extra(self.targetdescr.typing_context,
File "/Users/vhaenel/git/numba/numba/core/compiler.py", line 549, in compile_extra
return pipeline.compile_extra(func)
File "/Users/vhaenel/git/numba/numba/core/compiler.py", line 329, in compile_extra
return self._compile_bytecode()
File "/Users/vhaenel/git/numba/numba/core/compiler.py", line 391, in _compile_bytecode
return self._compile_core()
File "/Users/vhaenel/git/numba/numba/core/compiler.py", line 371, in _compile_core
raise e
File "/Users/vhaenel/git/numba/numba/core/compiler.py", line 362, in _compile_core
pm.run(self.state)
File "/Users/vhaenel/git/numba/numba/core/compiler_machinery.py", line 341, in run
raise patched_exception
File "/Users/vhaenel/git/numba/numba/core/compiler_machinery.py", line 332, in run
self._runPass(idx, pass_inst, state)
File "/Users/vhaenel/git/numba/numba/core/compiler_lock.py", line 32, in _acquire_compile_lock
return func(*args, **kwargs)
File "/Users/vhaenel/git/numba/numba/core/compiler_machinery.py", line 291, in _runPass
mutated |= check(pss.run_pass, internal_state)
File "/Users/vhaenel/git/numba/numba/core/compiler_machinery.py", line 264, in check
mangled = func(compiler_state)
File "/Users/vhaenel/git/numba/numba/core/typed_passes.py", line 419, in run_pass
NativeLowering().run_pass(state)
File "/Users/vhaenel/git/numba/numba/core/typed_passes.py", line 361, in run_pass
lower.lower()
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 178, in lower
self.lower_normal_function(self.fndesc)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 226, in lower_normal_function
entry_block_tail = self.lower_function_body()
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 251, in lower_function_body
self.lower_block(block)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 266, in lower_block
self.lower_inst(inst)
File "/Users/vhaenel/miniconda3/envs/numba_3.8/lib/python3.8/contextlib.py", line 131, in __exit__
self.gen.throw(type, value, traceback)
File "/Users/vhaenel/git/numba/numba/core/errors.py", line 727, in new_error_context
reraise(type(newerr), newerr, tb)
File "/Users/vhaenel/git/numba/numba/core/utils.py", line 77, in reraise
raise value.with_traceback(tb)
File "/Users/vhaenel/git/numba/numba/core/errors.py", line 720, in new_error_context
yield
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 266, in lower_block
self.lower_inst(inst)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 338, in lower_inst
val = self.lower_assign(ty, inst)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 512, in lower_assign
return self.lower_expr(ty, value)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 986, in lower_expr
res = self.lower_call(resty, expr)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 778, in lower_call
res = self._lower_call_normal(fnty, expr, signature)
File "/Users/vhaenel/git/numba/numba/core/lowering.py", line 957, in _lower_call_normal
res = impl(self.builder, argvals, self.loc)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 1154, in __call__
res = self._imp(self._context, builder, self._sig, args, loc=loc)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 1184, in wrapper
return fn(*args, **kwargs)
File "/Users/vhaenel/git/numba/numba/cpython/builtins.py", line 571, in redirect_type_ctor
return context.compile_internal(builder, call_ctor, sig, args)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 875, in compile_internal
return self.call_internal(builder, cres.fndesc, sig, args)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 882, in call_internal
status, res = self.call_internal_no_propagate(builder, fndesc, sig, args)
File "/Users/vhaenel/git/numba/numba/core/base.py", line 896, in call_internal_no_propagate
status, res = self.call_conv.call_function(builder, fn, sig.return_type,
File "/Users/vhaenel/git/numba/numba/core/callconv.py", line 536, in call_function
args = list(arginfo.as_arguments(builder, args))
File "/Users/vhaenel/git/numba/numba/core/datamodel/packer.py", line 97, in as_arguments
args = [dm.as_argument(builder, val)
File "/Users/vhaenel/git/numba/numba/core/datamodel/packer.py", line 97, in <listcomp>
args = [dm.as_argument(builder, val)
File "/Users/vhaenel/git/numba/numba/core/datamodel/models.py", line 448, in as_argument
v = self._elem_model.as_argument(builder, v)
File "/Users/vhaenel/git/numba/numba/core/datamodel/models.py", line 597, in as_argument
return self._as("as_argument", builder, value)
File "/Users/vhaenel/git/numba/numba/core/datamodel/models.py", line 539, in _as
self.get(builder, value, i)))
File "/Users/vhaenel/git/numba/numba/core/datamodel/models.py", line 632, in get
return builder.extract_value(val, [pos],
File "/Users/vhaenel/miniconda3/envs/numba_3.8/lib/python3.8/site-packages/llvmlite/ir/builder.py", line 927, in extract_value
instr = instructions.ExtractValue(self.block, agg, idx, name=name)
File "/Users/vhaenel/miniconda3/envs/numba_3.8/lib/python3.8/site-packages/llvmlite/ir/instructions.py", line 621, in __init__
raise TypeError("Can't index at %r in %s"
numba.core.errors.LoweringError: Failed in nopython mode pipeline (step: nopython mode backend)
Can't index at [0] in i8*
File "<string>", line 4:
<source missing, REPL/exec in use?>
[1] During: lowering "$12call_function.5 = call $2load_global.0($10build_list.4, func=$2load_global.0, args=[Var($10build_list.4, <string>:4)], kws=(), vararg=None)" at <string> (4)
----------------------------------------------------------------------
Ran 1 test in 11.778s
FAILED (errors=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment