daniel-kukiela / nmt-chatbot

NMT Chatbot
GNU General Public License v3.0
385 stars 213 forks source link

Tensorflow version must >= 1.4.0 #104

Closed ahmedmn closed 5 years ago

ahmedmn commented 5 years ago

Hi Daniel,

I'm trying to run train.py, I'm receiving the following error, however I have the updated tensorflow I did run " pip install --upgrade tensorflow"

Any suggestions?

Traceback (most recent call last):
  File "train.py", line 8, in <module>
    from nmt import nmt
  File "C:\chatbot\nmt-chatbot/nmt\nmt\nmt.py", line 28, in <module>
    from . import inference
  File "C:\chatbot\nmt-chatbot/nmt\nmt\inference.py", line 24, in <module>
    from . import attention_model
  File "C:\chatbot\nmt-chatbot/nmt\nmt\attention_model.py", line 22, in <module>
    from . import model
  File "C:\chatbot\nmt-chatbot/nmt\nmt\model.py", line 31, in <module>
    utils.check_tensorflow_version()
  File "C:\chatbot\nmt-chatbot/nmt\nmt\utils\misc_utils.py", line 34, in check_tensorflow_version
    raise EnvironmentError("Tensorflow version must >= %s" % min_tf_version)
OSError: Tensorflow version must >= 1.4.0

Thanks Ahmed

ahmedmn commented 5 years ago

pip install tensorflow=1.4.0

daniel-kukiela commented 5 years ago

I recently fixed that issue. Are you using my recent fork of NMT?

ahmedmn commented 5 years ago

Yes, I do. Now I'm running the training and it works well, thanks!

daniel-kukiela commented 5 years ago

Thanks for a feedback :)

anonmanx commented 5 years ago

Daniel,I was following sentdexe's tutorial and if I don't clone the branch v0(probably) I don't find a modded inference.py file and sentdex lab there and that played a great part in the tutorial.So I'm just using your older version but I have tensorflow-gpu 1.12.0 and when I run train.py,that throws the same error as above.What to do ?Cuz,without inference.py file or specifically those inference files how can I interact with the chatbot?

Please help Daniel