sunode icon indicating copy to clipboard operation
sunode copied to clipboard

NotImplementedError: Cannot convert hares_start ~ HalfNormal to a tensor variable.

Open Tiantian-H opened this issue 4 years ago • 1 comments

Hi everyone, I'm trying to run the example code in "Quickstart with PyMC3 — sunode documentation" but met the error "NotImplementedError: Cannot convert hares_start ~ HalfNormal to a tensor variable." But I can use "DifferentialEquation" in pymc3.ode to solve ODEs with pymc successfully.

I have pymc3.11.4, sunode 0.2.2, theano-py 1.1.2 (rather than theano), aesara 2.2.6 installed on macOS Big Sur11.6. I'm using python 3.9.7. I installed pymc using the command in their official documentation https://github.com/pymc-devs/pymc/wiki/Installation-Guide-(MacOS): conda create -c conda-forge -n pymc3_env python=3.9 pymc3 theano-pymc mkl mkl-service conda activate pymc3_en and then installed sunode in the pymc3_env using conda config --set channel_priority strict conda install sunode

I also tried to uninstall aesara and run again, but then I got another error :name "aesara" is not defined. Could you please provide some suggestions? Thank you a lot!

Tiantian-H avatar Nov 21 '21 16:11 Tiantian-H

I have the same issue on ubuntu:18.04.3, python: 3.9.7, pymc3, : 3.11.2, sunode: 0.2.1, theano: 1.1.2, aesara: 2.3.2

I can get it to work by reverting to sunode:0.2

seanjaffe1 avatar Dec 11 '21 01:12 seanjaffe1