'Dimension N must be specified; it cannot be inferred.'

def _process_parameters(self, dim):

    if ((dim is None) or (not np.isscalar(dim)) or (dim <= 1) or (dim != int(dim))):
        raise ValueError('Dimension    of    rotation    must    be    specified,\n                                                                                                                                and    must    be    a    scalar    greater    than    1.')
    return dim
