# TypeError: Outputs must be theano Variable or Out instances

**URL:** <https://discourse.pymc.io/t/typeerror-outputs-must-be-theano-variable-or-out-instances/7437>\
**Category:** Questions\
**Created:** [May 14, 2021, 8:30am UTC](https://discourse.pymc.io/t/typeerror-outputs-must-be-theano-variable-or-out-instances/7437 "2021-05-14T08:30:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![roesta07](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/roesta07/32/6060_2.png) [@roesta07](https://discourse.pymc.io/u/roesta07)\
**Post date:** [May 14, 2021, 8:30am UTC](https://discourse.pymc.io/t/typeerror-outputs-must-be-theano-variable-or-out-instances/7437/1 "2021-05-14T08:30:04Z")

</div>

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

#Regular Imports

> ```
> if IN_COLAB:
> !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'>`

---

<div class="post-metadata">

**Author:** ![OriolAbril](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/oriolabril/32/2497_2.png) [@OriolAbril](https://discourse.pymc.io/u/OriolAbril)\
**Post date:** [May 14, 2021, 12:21pm UTC](https://discourse.pymc.io/t/typeerror-outputs-must-be-theano-variable-or-out-instances/7437/2 "2021-05-14T12:21:57Z")

</div>

It looks like you are downgrading pymc3 from the version installed in colab (see [https://twitter.com/arviz\_devs/status/1392887834298572802](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.

---

<div class="post-metadata">

**Author:** ![roesta07](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/roesta07/32/6060_2.png) [@roesta07](https://discourse.pymc.io/u/roesta07)\
**Post date:** [May 15, 2021, 7:58am UTC](https://discourse.pymc.io/t/typeerror-outputs-must-be-theano-variable-or-out-instances/7437/3 "2021-05-15T07:58:02Z")

</div>

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