ciemss / pyciemss

Causal and probabilistic reasoning with continuous time dynamical systems
Other
12 stars 4 forks source link

Issue with pyro-ppl==1.9.0 #494

Closed fivegrant closed 4 months ago

fivegrant commented 4 months ago

Usually we install pyciemss with this command:

pip install --no-cache-dir  git+https://github.com/ciemss/pyciemss.git@1fabf279590c613a8ed38d88c6b6faf0c52ba867 --use-pep517

however we had to pin pyro-ppl like this pip install --no-cache-dir pyro-ppl==1.8.6 git+https://github.com/ciemss/pyciemss.git@1fabf279590c613a8ed38d88c6b6faf0c52ba867 --use-pep517`

because we get the following error when importing pyciemss.interfaces:

../../../.cache/pypoetry/virtualenvs/pyciemss-service-Lm2QylHe-py3.11/lib/python3.11/site-packages/chirho/interventional/handlers.py:121: in <module>
    do = pyro.poutine.handlers._make_handler(Interventions)[1]
E   TypeError: 'function' object is not subscriptable

(the issue seems to be with pyro-ppl 1.9.0)

SamWitty commented 4 months ago

Thanks for reporting this @fivegrant . We also discovered these issues after the pyro release, and resolved it with this PR. https://github.com/ciemss/pyciemss/pull/486 We'll push another minor release tomorrow in prep for the hackathon which will include this pinning.