JustinaPetr / Weatherbot_Tutorial

275 stars 447 forks source link

Error in dialogue_management_model.py #47

Closed Nileshvarute closed 5 years ago

Nileshvarute commented 5 years ago

When I try to run dialogue_management_model.py, I got the below error. Could you please help with this problem. ? "ImportError: No module named 'tensorflow.keras'" tensorflow version 1.3.0 00

Is that problem of tesorflow version? Please guide me!

Nileshvarute commented 5 years ago

DONE! Not a version problem. Just change in keras_policy.py (C:\Users\Nilesh\Anaconda3\envs\tf-cpu-conda\Lib\site-packages\rasa_core\policies) Line number 75,76,225: add ".python" after tensorflow.

Chages: from tensorflow.python.keras.models import Sequential from tensorflow.python.keras.layers import \ Masking, LSTM, Dense, TimeDistributed, Activation from tensorflow.python.keras.models import load_model