Rasa not working after upgrade and installation of spacy

I was using rasa == 3.0.6 without spacy, without any issues.

After installing latest and spacy using this command - pip3 install rasa[spacy]==3.0.8, I now get the following error, when trianing:

RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
Traceback (most recent call last):
  File "C:\Users\eitan\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "C:\Users\eitan\AppData\Local\Programs\Python\Python38\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "C:\Users\eitan\rasa_env\Scripts\rasa.exe\__main__.py", line 7, in <module>
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\__main__.py", line 121, in main
    cmdline_arguments.func(cmdline_arguments)
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\cli\train.py", line 59, in <lambda>
    train_parser.set_defaults(func=lambda args: run_training(args, can_exit=True))
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\cli\train.py", line 91, in run_training
    training_result = train_all(
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\api.py", line 103, in train
    from rasa.model_training import train
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\model_training.py", line 8, in <module>
    import rasa.engine.validation
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\engine\validation.py", line 20, in <module>
    from rasa.core.policies.policy import PolicyPrediction
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\core\policies\policy.py", line 26, in <module>
    from rasa.core.featurizers.tracker_featurizers import TrackerFeaturizer
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\core\featurizers\tracker_featurizers.py", line 12, in <module>
    from rasa.core.featurizers.single_state_featurizer import SingleStateFeaturizer
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\core\featurizers\single_state_featurizer.py", line 7, in <module>
    from rasa.nlu.extractors.extractor import EntityTagSpec
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\nlu\extractors\extractor.py", line 30, in <module>
    import rasa.utils.train_utils
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\utils\train_utils.py", line 31, in <module>
    from rasa.utils.tensorflow.callback import RasaTrainingLogger, RasaModelCheckpoint
  File "c:\users\eitan\rasa_env\lib\site-packages\rasa\utils\tensorflow\callback.py", line 5, in <module>
    import tensorflow as tf
  File "c:\users\eitan\rasa_env\lib\site-packages\tensorflow\__init__.py", line 37, in <module>
    from tensorflow.python.tools import module_util as _module_util
  File "c:\users\eitan\rasa_env\lib\site-packages\tensorflow\python\__init__.py", line 37, in <module>
    from tensorflow.python.eager import context
  File "c:\users\eitan\rasa_env\lib\site-packages\tensorflow\python\eager\context.py", line 35, in <module>
    from tensorflow.python.client import pywrap_tf_session
  File "c:\users\eitan\rasa_env\lib\site-packages\tensorflow\python\client\pywrap_tf_session.py", line 19, in <module>
    from tensorflow.python.client._pywrap_tf_session import *
ImportError: SystemError: <built-in method __contains__ of dict object at 0x000001F30F2BBAC0> returned a result with an error set

Hello, @eitant Did you create the conda based environment and install rasa with spacy and meet all the compatibilities issue?

I was able to solve this, so if anyone encounters this in the future - The issue seemed to be that spacy installed Tensorflow-gpu 2.8 which is incompatible with the rasa numpy version. Downgrading Tensorflow-gpu to 2.6.1 did the trick.

a mark above post as a solution.