Issue:
When I get to the stage where I initiate rasa, I am getting errors regarding the compatibility of tensorflow. I have tried using many different versions of rasa and the pre-requisite apps per rasa version. I am currently trying to use rasa 1.9.1 and I am getting errors. My brain hurts at this point so I am butchering this post, so I apologize.
Some of the errors I have received:
We recommend you use --use-feature=2020-resolver to test your packages with the new resolver before it becomes the default.
AttributeError: module ‘tensorflow.python.keras.api._v1.keras.utils’ has no attribute ‘register_keras_serializable’
rasa.core.policies.ensemble.InvalidPolicyConfig: Module for policy ‘MemoizationPolicy’ could not be loaded. Please make sure the name is a valid policy.
Finally:
Again, I am sorry none of this makes sense. Hopefully, someone can help guide me through this process.
Hi @john.mcquaid, would you be able to post the full stacktrace of the errors you are receiving, as well as the commands you ran that caused these errors?
I cannot post, all at once, the stack trace of errors I have received as most of them occur based on the installed applications’ version. I have hammered out most of the errors and I am now at point where I cannot get passed the compatibility issues tensorflow (at least I believe tensorflow is the problem) has with rasa. I have tried changing rasa’s versions as well as tensorflow’s versions to find versions that are compatible. Currently, I am using Rasa 1.9.1 and I have not been able to find a version of tensorflow that works. Below is the stack trace of the error I am receiving with the current version of rasa. Keep in mind, I have followed step by step as per the Installation Video all the way up to the rasa init command.
Not entirely sure how you ended up with version 2.2.0, but it’s worth re-running either pip install rasa==1.9.1 completely, which should hopefully resolve the issues. Otherwise you can also install the tensorflow versions manually
I tried using multiple different versions of tensorflow and I kept getting the same error, as above, until I downgraded to 1.14. Below is the stack stable of the error from version 1.14:
Tensorflow version 1.14 won’t work, try version 2.1.0. But which version of python are you on actually? Is it possible it’s 3.8 or 3.9? that might be incompatible
@akelad No worries. I tried every version, of Tensorflow, that I could and none of them worked. I gave up on v1.9.1 of Rasa. I just went ahead and installed the latest version, as well as everything else, and I did not have any issues there. Unfortunately, I needed the 1.9.1 version for work purposes, but at least I can still do a few things. Thank you for your help!