tfcausalimpact icon indicating copy to clipboard operation
tfcausalimpact copied to clipboard

Type-error

Open AruunnAnanda opened this issue 2 years ago • 7 comments

Hello there,

All of a sudden I've this type error. The code was running smooth until today morning, but when I tried to rerun the same script in the afternoon, I get the attached error. I tried deleting my virtual environment and, then reinstalling the package, but the same problem persists. Can you please let me know how can I rectify this issue? Screenshot 2022-09-19 at 15 27 21

Thanks, Arun

AruunnAnanda avatar Sep 19 '22 13:09 AruunnAnanda

Hi @AruunnAnanda ,

Could you please send your tensorflow, tensorflow-probability and tfcausalimpact versions?

Lately people have been reporting sudden issues and it seems to be related to newer versions of tf but we couldn't confirm it so far.

WillianFuks avatar Sep 19 '22 14:09 WillianFuks

Hi @WillianFuks ,

Thanks for the prompt response.

Below are my versions :

  1. tensorflow : 2.10.0
  2. tensorflow-probability: 0.14.0
  3. tfcausalimpact : 0.0.11 image

AruunnAnanda avatar Sep 19 '22 14:09 AruunnAnanda

Just wondering, does it work for tensorflow==2.9.2?

WillianFuks avatar Sep 19 '22 16:09 WillianFuks

Yes, it works well with tensorflow==2.9.2

Thanks!

AruunnAnanda avatar Sep 20 '22 08:09 AruunnAnanda

Thanks @AruunnAnanda for the reply. It seems that newer packages of tensorflow are incompatible with the required 0.14 version of tf-probability (this is something that I should fix soon).

I'll leave this open until I fix this issue (hoping to do it asap).

WillianFuks avatar Sep 20 '22 13:09 WillianFuks

Okay, thank you @WillianFuks

AruunnAnanda avatar Sep 20 '22 14:09 AruunnAnanda

Hi @AruunnAnanda ,

I just released a candidate for fixing this issue, could you please check if it solves for you? You can install it by running pip install tfcausalimpact==0.0.12rc0.

WillianFuks avatar Oct 07 '22 04:10 WillianFuks