I was installed and successfully completed the MNIST demo. Now I'm trying to run a seq2seq demo , but this does not work for me.
I cloned a version of my github rep and tried to run some of the listed commands from the repo root.
$ bazel run -c opt ./tensorflow/models/rnn/translate/translate.py
ERROR: Bad target pattern './tensorflow/models/rnn/translate/translate.py': package names may contain only A-Z, a-z, 0-9, '/', '-' and '_'.
INFO: Elapsed time: 0.115s
ERROR: Build failed. Not running target.
This is not surprising, since it really does not make sense for bazel to execute a python script.
Later in the textbook
$ bazel run -c opt //tensorflow/models/rnn/translate:translate \
--data_dir ./data_dir --train_dir ./checkpoints_directory \
--en_vocab_size=40000 --fr_vocab_size=40000
Unrecognized option: --data_dir
If I remove the parameters from the above call, it will try (and fail) to build the entire tensor flow project before it executes translate. This is not what I want, as I have already successfully installed tensor flow with pip.
The last thing I tried to run,
$ python ./tensorflow/models/rnn/translate/translate.py
Traceback (most recent call last):
File "./tensorflow/models/rnn/translate/translate.py", line 28, in <module>
from tensorflow.models.rnn.translate import data_utils
ImportError: No module named translate
Environment Information: OS X 10.11.1, Python 2.7.10 (anaconda)