Can't be Imported Policies and Agent Because of Error

Hello, I am trying to implement my own chatbot. I researched a lot of issues about that. But I couldn’t find exact answer.

Error is:

/usr/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: invalid ELF header

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File “”, line 1, in File “/home/midwfapao/Documents/TradeBot/train_interactive.py”, line 4, in from rasa_core.policies.keras_policy import KerasPolicy File “/usr/lib/python3.7/site-packages/rasa_core/policies/init.py”, line 4, in from rasa_core.policies.keras_policy import KerasPolicy File “/usr/lib/python3.7/site-packages/rasa_core/policies/keras_policy.py”, line 5, in import tensorflow as tf File “/usr/lib/python3.7/site-packages/tensorflow/init.py”, line 24, in from tensorflow.python import pywrap_tensorflow # pylint: disable=unused-import File “/usr/lib/python3.7/site-packages/tensorflow/python/init.py”, line 49, in from tensorflow.python import pywrap_tensorflow File “/usr/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py”, line 74, in raise ImportError(msg) ImportError: Traceback (most recent call last): File “/usr/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow.py”, line 58, in from tensorflow.python.pywrap_tensorflow_internal import * File “/usr/lib/python3.7/site-packages/tensorflow/python/pywrap_tensorflow_internal.py”, line 28, in _pywrap_tensorflow_internal = swig_import_helper() File “/usr/lib/python3.7/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 “/usr/lib/python3.7/imp.py”, line 242, in load_module return load_dynamic(name, filename, file) File “/usr/lib/python3.7/imp.py”, line 342, in load_dynamic return _load(spec) ImportError: /usr/lib/python3.7/site-packages/tensorflow/python/_pywrap_tensorflow_internal.so: invalid ELF header

Failed to load the native TensorFlow runtime.

See Build and install error messages  |  TensorFlow

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

I installed everything correctly. But I don’t know what the really problem is.

Hey @controlmachine. Can you tell at what stage do you get this error?

Also, I can see that you are using python 3.7. I would suggest you to use Rasa with Python 3.6 as some of the dependencies sitll need to be upgraded for 3.7 and might cause some issues.