tensorflow / nmt

TensorFlow Neural Machine Translation Tutorial
Apache License 2.0
6.35k stars 1.96k forks source link

Error in running train.py #456

Closed bhvyaismeduh21 closed 4 years ago

bhvyaismeduh21 commented 4 years ago

When I run the command "python3 train.py" it gives me:

/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/framework/dtypes.py:463: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint8 = np.dtype([("qint8", np.int8, 1)]) /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/framework/dtypes.py:464: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint8 = np.dtype([("quint8", np.uint8, 1)]) /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/framework/dtypes.py:465: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint16 = np.dtype([("qint16", np.int16, 1)]) /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/framework/dtypes.py:466: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_quint16 = np.dtype([("quint16", np.uint16, 1)]) /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/framework/dtypes.py:467: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'. _np_qint32 = np.dtype([("qint32", np.int32, 1)]) Traceback (most recent call last): File "train.py", line 8, in <module> from nmt import nmt File "/Users/bhvyasahni/nmt-chatbot/nmt/nmt/nmt.py", line 28, in <module> from . import inference File "/Users/bhvyasahni/nmt-chatbot/nmt/nmt/inference.py", line 24, in <module> from . import attention_model File "/Users/bhvyasahni/nmt-chatbot/nmt/nmt/attention_model.py", line 22, in <module> from . import model File "/Users/bhvyasahni/nmt-chatbot/nmt/nmt/model.py", line 27, in <module> from . import model_helper File "/Users/bhvyasahni/nmt-chatbot/nmt/nmt/model_helper.py", line 26, in <module> from tensorflow.python.ops import lookup_ops ImportError: cannot import name 'lookup_ops' from 'tensorflow.python.ops' (/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/tensorflow/python/ops/__init__.py)