Paolo Zaffino wrote: > Nobody can help me?
Add the lines print "a=%r, b=%r, c=%r" % (a, b, c) print "type=%s, shape=%r, size=%r" % (type(matrix), matrix.shape, matrix.size) before this one >>>> matrix = matrix.reshape(a, b, c) and tell us what it prints both on a system where it works and where it doesn't. If a, b, and c are all integers and a * b * c == matrix.size try passing a tuple: matrix = matrix.reshape((a, b, c)) # note the double parens -- http://mail.python.org/mailman/listinfo/python-list