TypeError: Outputs must be theano Variable or Out instances

Hi; I am running into this error while running pm.Data(); which was running perfectly fine a few days back.

#Regular Imports

!pip install pymc3==3.9
!pip install --upgrade daft
!pip install --upgrade theano

TypeError Traceback (most recent call last)
in ()
1 height=df[‘H_std’].values
2 with pm.Model() as m16_3:
----> 3 H_std=pm.Data(‘H_std’,height)

TypeError: Outputs must be theano Variable or Out instances. Received Shape.0 of type <class 'theano.tensor.var.TensorVariable'>

It looks like you are downgrading pymc3 from the version installed in colab (see https://twitter.com/arviz_devs/status/1392887834298572802). If you can, I’d very strongly recommend not downgrading. If you need to downgrade, you’ll need to make sure you also downgrade all the relevant dependencies.

In your case, it looks like you’ll probably have both theano and theano-pymc installed, so you’ll need to figure out how to solve this. Moreover, you’ll need to downgrade ArviZ too together with pymc because the latest version of ArviZ is not compatible anymore with pymc3 3.9 and there may be other dependencies in need of a downgrading for things to work.

1 Like

thanks; with that update; it’s now easier !!