domerin0 / neural-chatbot

A chatbot based on seq2seq architecture done with tensorflow.
196 stars 81 forks source link

No module named 'tensorflow.contrib' #29

Closed judemont closed 1 year ago

judemont commented 1 year ago

Hello, When I run train.py (python train.py) I have this error :

Traceback (most recent call last):
  File "/home/judemont/autre/neural-chatbot/train.py", line 17, in <module>
    import models.chatbot as chatbot
  File "/home/judemont/autre/neural-chatbot/models/chatbot.py", line 15, in <module>
    from tensorflow.contrib import rnn, seq2seq
ModuleNotFoundError: No module named 'tensorflow.contrib'

Python Version : 3.11.2 tensorflow==2.12.0 OS : ubuntu 23.04

vovod commented 1 year ago

tensorflow.contrib is removed from version 2.0, you need install version <= 1.14 to use it.

judemont commented 1 year ago

Okay, thanks.