title: Failed to load the component rasa
body: <p>I am using rasa as a python library. Here is my directory structure</p>
  <pre><code>chat-bot/
    bots/
      models/
         rasa/
           my-model.tar.gz
      rasa_bot.py
    projects/
       rasa/
         actions/
         components/
           data_processing.py
         data/
           nlu.yml
           stories.yml
         config.yml
         domain.yml
  </code></pre>
  <p>Here is how my <code>config.yml</code></p>
  <pre><code>language: en
  pipeline:
    - name: components.data_processing.DataProcessingComponent
    - name: WhitespaceTokenizer
    - name: CountVectorsFeaturizer
  </code></pre>
  <p>and this is how I train the model</p>
  <pre><code>rasa train --fixed-model-name my-model --out ../../bots/models/rasa/
  </code></pre>
  <p>And in <code>rasa_bot.py</code> This is how I am loading the model</p>
  <pre><code>model = RasaBot.__get_model(&quot;my-model.tar.gz&quot;)
  # get the agent from model and action server
  ACTION_ENDPOINT = os.getenv('ACTION_ENDPOINT')
  agent = Agent.load(
             model,
             action_endpoint=EndpointConfig(ACTION_ENDPOINT)
          )
  </code></pre>
  <p>and <code>__get_model</code> method</p>
  <pre><code>@staticmethod
  def __get_model(modelName):
      MODEL_LOCATION = os.environ.get('MODEL_LOCATION')
      return '{}/{}'.format(MODEL_LOCATION, modelName)
  </code></pre>
  <p>but this is showing this error</p>
  <pre><code>Failed to load the component 'components.data_processing.DataProcessingComponent'. Failed to find module 'components.data_processing'. Either your pipeline configuration contains an error or the module you are trying to import is broken (e.g. the module is trying to import a package that is not installed). Traceback (most recent call last):
    File &quot;c:\chat-bot\env37\lib\site-packages\rasa\nlu\registry.py&quot;, line 121, in get_component_class
      return rasa.shared.utils.common.class_from_module_path(component_name)
    File &quot;c:\chat-bot\env37\lib\site-packages\rasa\shared\utils\common.py&quot;, line 37, in class_from_module_path
      m = importlib.import_module(module_name)
    File &quot;C:\Users\sgarg\AppData\Local\Programs\Python\Python37\lib\importlib\__init__.py&quot;, line 127, in import_module
      return _bootstrap._gcd_import(name[level:], package, level)
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 983, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 953, in _find_and_load_unlocked
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 219, in _call_with_frames_removed
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 1006, in _gcd_import
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 983, in _find_and_load
    File &quot;&lt;frozen importlib._bootstrap&gt;&quot;, line 965, in _find_and_load_unlocked
  ModuleNotFoundError: No module named 'components'
  </code></pre>