pender / chatbot-rnn

A toy chatbot powered by deep learning and trained on data from Reddit
MIT License
900 stars 371 forks source link

Unable to run chatbot.py. Throwing error on tensorflow #54

Open vinodk333 opened 5 years ago

vinodk333 commented 5 years ago

C:\chatbot-rnn-master>python chatbot.py Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\ProgramData\Anaconda3\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:\ProgramData\Anaconda3\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\ProgramData\Anaconda3\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found.

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "chatbot.py", line 4, in import tensorflow as tf File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow__init__.py", line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python__init__.py", line 49, in from tensorflow.python import pywrap_tensorflow File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow.py", line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File "C:\ProgramData\Anaconda3\lib\site-packages\tensorflow\python\pywrap_tensorflow_internal.py", line 28, in _pywrap_tensorflow_internal = swig_import_helper() File "C:\ProgramData\Anaconda3\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:\ProgramData\Anaconda3\lib\imp.py", line 242, in load_module return load_dynamic(name, filename, file) File "C:\ProgramData\Anaconda3\lib\imp.py", line 342, in load_dynamic return _load(spec) ImportError: DLL load failed: The specified module could not be found.

Failed to load the native TensorFlow runtime.

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

DSMJR commented 5 years ago

What tensorflow and python version do you have?

vinodk333 commented 5 years ago

Python 3.7.1 (anaconda 2018.12) tensorflow-gpu-1.13.0rc2

DSMJR commented 5 years ago

tensorflow is not compatible with python 3.7. I recommend you switch to python 3.6.

vinodk333 commented 5 years ago

Downgraded to Python 3.6.8. Still same error.

vinodk333 commented 5 years ago

Pls igore. Issue is resolved when I uninstalled tensorflow-gpu and replaced with the CPU version. My system have GPU though.

DSMJR commented 5 years ago

I personally do not have that much experience with the gpu version. Did you follow the steps here? https://www.tensorflow.org/install/gpu

DSMJR commented 5 years ago

Did you add it to your path?

DSMJR commented 5 years ago

And if that doesn't help then you might want to uninstall and reinstall everything to make sure you don't have any conflicting packages.

vinodk333 commented 5 years ago

Yes, tried all those, still no luck. It was working fine earlier, need to troubleshoot further.

DSMJR commented 5 years ago

Ok, good luck to you.

ColderCube commented 5 years ago

getting the same error idk what to do help me thank you!

saran-gangster commented 4 years ago

you should uninstall your current tensorflow version "pip uninstall tensorflow" then install tensorflow version 1.4.0 "pip install tensorflow==1.4.0"

saran-gangster commented 4 years ago

you don't have CUDA see here