Two error when running seq2seq.test.pipeline_test with Anaconda3 on win7
When i run python -m unittest seq2seq.test.pipeline_test, i get the follow errors:
ERROR: seq2seq (unittest.loader._FailedTest)
ImportError: Failed to import test module: seq2seq
Traceback (most recent call last):
File "C:\Program Files\Anaconda3\lib\unittest\loader.py", line 153, in loadTestsFromName
module = import(module_name)
File "E:\git\seq2seq\seq2seq_init_.py", line 26, in
====================================================================== ERROR: seq2seq (unittest.loader._FailedTest)
ImportError: Failed to import test module: seq2seq
Traceback (most recent call last):
File "C:\Program Files\Anaconda3\lib\unittest\loader.py", line 153, in loadTestsFromName
module = import(module_name)
File "E:\git\seq2seq\seq2seq_init_.py", line 26, in
I modify the follow two lines in /seq2seq/seq2seq/contrib/seq2seq/helper.py from tensorflow.contrib.distributions.python.ops import bernoulli from tensorflow.contrib.distributions.python.ops import categorical to from tensorflow.python.ops.distributions import bernoulli from tensorflow.python.ops.distributions import categorical to fix the erros.
But i think this is not the official way to fix this error, and i don't know why this happen.
This looks like the same error as this (also including fixes).