AbrahamSanders / seq2seq-chatbot

A sequence2sequence chatbot implementation with TensorFlow.
MIT License
99 stars 56 forks source link

the code is unable to run..please help. #25

Closed lnmishra122 closed 5 years ago

lnmishra122 commented 5 years ago

runfile('C:/Users/BBNH/Desktop/chatbot2/chat.py', wdir='C:/Users/BBNH/Desktop/chatbot2') Traceback (most recent call last):

File "", line 1, in runfile('C:/Users/BBNH/Desktop/chatbot2/chat.py', wdir='C:/Users/BBNH/Desktop/chatbot2')

File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 827, in runfile execfile(filename, namespace)

File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\site-packages\spyder_kernels\customize\spydercustomize.py", line 110, in execfile exec(compile(f.read(), filename, 'exec'), namespace)

File "C:/Users/BBNH/Desktop/chatbot2/chat.py", line 10, in from chatbot_model import ChatbotModel

File "C:\Users\BBNH\Desktop\chatbot2\chatbot_model.py", line 5, in import tensorflow as tf

File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\site-packages\tensorflow__init__.py", line 28, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import

File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\site-packages\tensorflow\python__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow

File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in raise ImportError(msg)

ImportError: Traceback (most recent call last): File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 24, in swig_import_helper _mod = imp.load_module('_pywrap_tensorflow_internal', fp, pathname, description) File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\imp.py", line 243, in load_module return load_dynamic(name, filename, file) File "C:\Users\BBNH\Anaconda3\envs\chatbot2\lib\imp.py", line 343, in load_dynamic return _load(spec) ImportError: DLL load failed with error code -1073741795

Failed to load the native TensorFlow runtime.

See https://www.tensorflow.org/install/errors

for some common reasons and solutions. Include the entire stack trace above this error message when asking for help.

AbrahamSanders commented 5 years ago

Hi @lnmishra122, how did you install tensorflow, and which version? Also, how are you launching chat.py? (please provide the command).

It looks like there is some kind of internal issue loading the tensorflow native DLLs when executing import tensorflow as tf

Maybe try re-installing tensorflow?

lnmishra122 commented 5 years ago

Hii @Abraham, I used pip --upgrade command mentioned in your readme file.Previously i had tensorflow version 1.0.0 and it got upgraded to 1.14. I will solve the issue somehow but could would you tell me which version of tensorflow is best suited for this code to run. And I'm running the chat.py using windows command prompt. Thank you

lnmishra122 commented 5 years ago

it worked i just had to install a different version of tensorflow . Thanks for you help.

AbrahamSanders commented 5 years ago

@lnmishra122 great, I'm glad it is working for you now!