tfcausalimpact icon indicating copy to clipboard operation
tfcausalimpact copied to clipboard

ModuleNotFoundError: No module named 'tensorflow_core.estimator'

Open amit-dingare opened this issue 3 years ago • 3 comments

WINDOW 10.0 python 3.7 Anaconda Tensorflow verison: 2.4.1

amit-dingare avatar Apr 03 '21 23:04 amit-dingare

Hi @amitdingareNovelis ,

Not quite sure what's happening there. What might explain the error is that this package doesn't officially support the Windows OS (even though I thought it could work but I never tested it).

Did you also try using a virtual env?

Also, do you have a Docker environment to test it as well? Maybe it'll be the definitive solution for running on Windows I guess.

WillianFuks avatar Apr 04 '21 01:04 WillianFuks

After several uninstalls and installs of tensorflow and tfcausalimpact package, I was able to make it work. Although, now it generates warnings as below. I see these warnings even for running the example notebooks from the package

WARNING:tensorflow:AutoGraph could not transform <function sample_uniform_initial_state.<locals>.<lambda> at 0x00000170A3EB0168> and will run it as-is.
Please report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.
Cause: 'arguments' object has no attribute 'posonlyargs'
To silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert
WARNING: AutoGraph could not transform <function sample_uniform_initial_state.<locals>.<lambda> at 0x00000170A3EB0168> and will run it as-is.
Please report this to the TensorFlow team. When filing the bug, set the verbosity to 10 (on Linux, `export AUTOGRAPH_VERBOSITY=10`) and attach the full output.
Cause: 'arguments' object has no attribute 'posonlyargs'
To silence this warning, decorate the function with @tf.autograph.experimental.do_not_convert

amit-dingare avatar Apr 04 '21 18:04 amit-dingare

That's good news. Those warnings are part of the Tensorflow packages and we didn't find how to turn them off.

WillianFuks avatar Apr 04 '21 18:04 WillianFuks