easy_seq2seq icon indicating copy to clipboard operation
easy_seq2seq copied to clipboard

Problem No module named models.rnn.translate

Open divmaster89 opened this issue 7 years ago • 4 comments

python execute.py

Traceback (most recent call last): File "execute.py", line 31, in import seq2seq_model tensorflow/seq2seq_model.py", line 28, in from tensorflow.models.rnn.translate import data_utils ImportError: No module named models.rnn.translate

How can i solve it?

This is my version of tensorflow: Name: tensorflow Version: 1.1.0 Summary: TensorFlow helps the tensors flow Home-page: http://tensorflow.org/ Author: Google Inc. Author-email: [email protected] License: Apache 2.0 Location: /usr/local/lib/python2.7/dist-packages Requires: mock, numpy, wheel, six, protobuf, werkzeug

Python Version Python 2.7.12

divmaster89 avatar May 24 '17 18:05 divmaster89

Many aspects of the Python TensorFlow API changed from version 0.n to 1.0. You should install tensorflow 0.12. Refer : https://www.tensorflow.org/versions/r0.12/get_started/os_setup

nhannn552 avatar May 31 '17 08:05 nhannn552

Hi! Replace from tensorflow.models.rnn.translate import data_utils with import data_utils!

nioperas06 avatar Aug 02 '17 18:08 nioperas06

create tensorflow folder from home mkdir ~/tensorflow clone the https://github.com/tensorflow/models.git from tensorflow folder add below line to seq2seq_model.py import sys sys.path.append('~/tensorflow/models/tutorials/rnn/translate') it is working

ManivannanMurugavel avatar Dec 08 '17 05:12 ManivannanMurugavel

I solved the same problem according to @ManivannanMurugavel , thanks!

iamhere1 avatar Dec 15 '17 03:12 iamhere1