Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Tiantian-H opened this issue Nov 21, 2021 · 1 comment

Comments

@Tiantian-H
Copy link

Tiantian-H commented Nov 21, 2021

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!

@seanjaffe1
Copy link

seanjaffe1 commented Dec 11, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants