BasisResearch / chirho

An experimental language for causal reasoning
https://basisresearch.github.io/chirho/getting_started.html
Apache License 2.0
164 stars 10 forks source link

TypeError: 'function' object is not subscriptable when running example #537

Closed diro5t closed 2 months ago

diro5t commented 2 months ago

Hi,

when I try to run the following example, I get this error:

image

Am I doing sth. wrong?

Thanks

SamWitty commented 2 months ago

Thanks for your interest in ChiRho!

I believe this error is because of incompatible versions of Pyro 1.9.0 and ChiRho 0.2.0, which has been addressed in master at https://github.com/BasisResearch/chirho/commit/90675c0366aa85d8819f13bda759aa2e0c2e6423 but hasn't made its way into a release. Could you please share which versions of Pyro and ChiRho you're using? If Pyro > 1.8.6, downgrading to 1.8.6 should fix the issue.

diro5t commented 2 months ago

Thanks for letting me know. Are updates planned, which are compatible with Pyro 1.9.0?

SamWitty commented 2 months ago

Yes, we'll be releasing another version soon that is compatible with Pyro 1.9.0. See https://github.com/BasisResearch/chirho/pull/521 and https://github.com/BasisResearch/chirho/pull/527.

Did my suggestion of downgrading Pyro to 1.8.6 work?

diro5t commented 2 months ago

Hi Sam, yep thanks - worked like a charm!