tensorflow / nmt

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

error in training #305

Open SAGGSOC opened 6 years ago

SAGGSOC commented 6 years ago

C:\Users\Sagar\nmt\nmt>python -m nmt.nmt --src=vi --tgt=en --vocab_prefix=C:/Users/Sagar/nmt/nmt/tmp/nmt_data/vocab --train_prefix=C:/Users/Sagar/nmt/nmt/tmp/nmt_data/train --dev_prefix=C:/Users/Sagar/nmt/nmt/tmp/nmt_data/train --test_prefix=C:/Users/Sagar/nmt/nmt/tmp/nmt_data/tst2013 --out_dir=C:/Users/Sagar/nmt/nmt/tmp/nmt_data --num_train_steps=12000 --steps_per_stats=100 --num_layers=2 --num_units=128 --dropout=0.2 --metrics=bleu Traceback (most recent call last): File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(file)]) File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python__init__.py", line 54, in from tensorflow.python import pywrap_tensorflow File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper import _pywrap_tensorflow ModuleNotFoundError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 183, in _run_module_as_main mod_name, mod_spec, code = _get_module_details(mod_name, _Error) File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\runpy.py", line 109, in _get_module_details import(pkg_name) File "C:\Users\Sagar\nmt\nmt\nmt.py", line 26, in import tensorflow as tf File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow__init.py", line 24, in from tensorflow.python import * File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\init.py", line 60, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 18, in swig_import_helper fp, pathname, description = imp.find_module('_pywrap_tensorflow', [dirname(file__)]) File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\imp.py", line 297, in find_module raise ImportError(_ERR_MSG.format(name), name=name) ImportError: No module named '_pywrap_tensorflow'

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python__init__.py", line 54, in from tensorflow.python import pywrap_tensorflow File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 28, in _pywrap_tensorflow = swig_import_helper() File "C:\Users\Sagar\AppData\Local\Programs\Python\Python36-32\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 20, in swig_import_helper import _pywrap_tensorflow ModuleNotFoundError: No module named '_pywrap_tensorflow'

Error importing tensorflow. Unless you are using bazel, you should not try to import tensorflow from its source directory; please exit the tensorflow source tree, and relaunch your python interpreter from there.