farizrahman4u / seq2seq

Sequence to Sequence Learning with Keras
GNU General Public License v2.0
3.17k stars 845 forks source link

Error when importing #261

Closed stylianos-kampakis closed 6 years ago

stylianos-kampakis commented 6 years ago

I am at Python 3.6 with latest version of Keras. I get the following error when trying to create an Attention Model

Traceback (most recent call last): File "", line 1, in File "/Users/stelios/anaconda/envs/py36/lib/python3.6/site-packages/seq2seq-1.0.0-py3.6.egg/seq2seq/models.py", line 274, in AttentionSeq2Seq File "/Users/stelios/recurrentshop/debug_seq2seq/nmt-keras/nmt-keras/src/keras/keras/layers/wrappers.py", line 429, in call return super(Bidirectional, self).call(inputs, kwargs) File "/Users/stelios/recurrentshop/debug_seq2seq/nmt-keras/nmt-keras/src/keras/keras/engine/base_layer.py", line 457, in call output = self.call(inputs, kwargs) File "/Users/stelios/recurrentshop/debug_seq2seq/nmt-keras/nmt-keras/src/keras/keras/layers/wrappers.py", line 524, in call y = self.forward_layer.call(inputs, **kwargs) File "/Users/stelios/anaconda/envs/py36/lib/python3.6/site-packages/recurrentshop-1.0.0-py3.6.egg/recurrentshop/engine.py", line 625, in call File "/Users/stelios/anaconda/envs/py36/lib/python3.6/site-packages/recurrentshop-1.0.0-py3.6.egg/recurrentshop/backend/init.py", line 6, in File "/Users/stelios/recurrentshop/debug_seq2seq/nmt-keras/nmt-keras/src/keras/keras/backend/tensorflow_backend.py", line 3181, in rnn maximum_iterations=input_length) TypeError: while_loop() got an unexpected keyword argument 'maximum_iterations'