'tuple' object has no attribute 'typecode'

3 views
Skip to first unread message

Markus Pflaum

unread,
Nov 19, 2025, 3:36:37 PMNov 19
to ArrayFire Users
I successfully installed the arrayfire-python wrapper version 0.8.0+af3.10.cuda12.4 on my linux machine (gentoo linux with python 3.14 and 3.11), in a virtual environment.  Arrayfire works, e.g. 
a = af.randu((5, 5)) 
and sum and product of AF matrices work. But for example 
arr = af.Array([1,0,3,4,5,6], (2,3))
results in the error:
'tuple' object has no attribute 'typecode'. Likewise the attempt to create an AF array out of a numpy array a by
b = af.Array(a.ctypes.data, a.shape, a.dtype.char)
results in the same error. Any idea what's wrong her or whether there is a bug?
Thanks

Markus 
Reply all
Reply to author
Forward
0 new messages