Wierd error in Aesara

I took a toy code from Aesara official doc and it’s giving me a weird error. I didn’t get this error in another virtual environment so maybe there is some dependency on other packages? Here is the code

import aesara
import pymc
import aesara.tensor as at
print(pymc.__version__)
print(aesara.__version__)
a, b, c, d = at.scalars('abcd')
X = at.stacklists([[a, b], [c, d]])
f = aesara.function([a, b, c, d], X)
f(1, 2, 3, 4)

Here is the error message

Yes, this looks like an environment/dependency error. How did you install PyMC in this environment?

through anaconda. conda install -c conda-forge pymc=4.1.6