hen I annotation these codes, the problem is solved. in subexprs.py ... # if sympy.iterables.iterable(expr): # return expr ...