ImportError: cannot import name contrib #37
Comments
Is this framework not support the version of tensorflow0.12.1? |
Yes, you need Tensorflow 1.0. |
alright,thanks |
I get the same error for tensorflow 1.2.1 |
same error in tensorflow 1.2.1 |
broken in R1.3rc0 |
I believe this can be fixed by modifying seq2seq/seq2seq/contrib/seq2seq/helper.py per the instructions in: #from tensorflow.contrib.distributions.python.ops import bernoulli |
@David-Levinthal is right. Just replace these lines in seq2seq/helper.py: from tensorflow.contrib.distributions.python.ops import bernoulli with these: from tensorflow.python.ops.distributions import bernoulli I'm running tensorflow 1.2 |
I just ran into the same thing using tensorflow 1.3.0. Should I create a pull request, or has someone already created one? |
I got the same problem in tensorflow 1.4.1 |
same problem with tensorflow 1.5.0 |
same problem with tf 1.5.0 |
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
"main", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/unittest/main.py", line 12, in
main(module=None)
File "/usr/lib/python2.7/unittest/main.py", line 94, in init
self.parseArgs(argv)
File "/usr/lib/python2.7/unittest/main.py", line 149, in parseArgs
self.createTests()
File "/usr/lib/python2.7/unittest/main.py", line 158, in createTests
self.module)
File "/usr/lib/python2.7/unittest/loader.py", line 130, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/python2.7/unittest/loader.py", line 91, in loadTestsFromName
module = import('.'.join(parts_copy))
File "seq2seq/init.py", line 24, in
from seq2seq import contrib
ImportError: cannot import name contrib
When I run"python -m unittest seq2seq.test.pipeline_test",I got this error.Could someone tell me how to solve this problem?
The text was updated successfully, but these errors were encountered: