question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot load custom component / custom IO channel by class name

See original GitHub issue

I have a custom tokenizer and synonym mapper. It works fine on rasa core 0.14x and rasa nlu 0.15x.

I upgraded to rasa 1.0.8 and its not working anymore. It gives the followring error:

Exception: Failed to find component class for ‘custom_components.synonym.DukaEntitySynonymMapper’. Unknown component name. Check your configured pipeline and make sure the mentioned component is not misspelled. If you are creating your own component, make sure it is either listed as part of the component_classes in rasa.nlu.registry.py or is a proper name of a class in a module.

Here is the pipeline that i’m using:

language: pt pipeline:

  • name: “custom_components.tokenizer.DukaTokenizer”
  • name: CRFEntityExtractor
  • name: CountVectorsFeaturizer
  • name: EmbeddingIntentClassifier
  • name: “custom_components.synonym.DukaEntitySynonymMapper”
  • dimensions:
    • time
    • number
    • amount-of-money
    • distance
    • email locale: pt_BR name: DucklingHTTPExtractor timezone: “America/Bras\xEDlia” url: http://localhost:8000 policies:
  • batch_size: 50 epochs: 200 max_training_samples: 300 name: KerasPolicy
  • fallback_action_name: action_default_fallback name: FallbackPolicy
  • max_history: 5 name: MemoizationPolicy
  • name: FormPolicy
  • name: MappingPolicy

I’ve already tried adding the custom component folder with PYTHONPATH in ~/.bashrc, as suggested in https://github.com/RasaHQ/rasa/issues/3673

export PYTHONPATH=“/home/bruno.roth/Documents/duka-data/nlu-data/custom_components”

But still no sucess.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
BrunoRoth95commented, Jun 21, 2019

It worked!!

Thank you very much guys! Apparently everything is working correctly now.

2reactions
JustinaPetrcommented, Jun 19, 2019

I think you also have to source the bashrc for the changes to take affect on your system:

source ~/.bashrc

You can also just quickly test it by simply running the following in your command line:

export PYTHONPATH=/home/bruno.roth/Documents/duka-data/duka-new/:$PYTHONPATH

Can try it and let me know if that works?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot load the custom component in my page - Stack Overflow
You seem to have 2 different names for the same page. I am referring to the page module where you are importing common.module.ts...
Read more >
How To Create Custom Components in React - DigitalOcean
To make the image smaller, you'll need to add some CSS and a className to your custom component. Save and close the file....
Read more >
Building Fully Custom Components | TFX - TensorFlow
Fully custom components let you build components by defining the component specification, executor, and component interface classes.
Read more >
Create and Style Custom Components - Twilio Flex
You can then use displayName to load a stock Flex component (like the SidePanel) and dynamically set its CSS class name based on...
Read more >
Components - Rasa
If that does not suffice, you can add a custom component that resolves conflicts in entity extraction according to your own logic. MitieEntityExtractor#....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found