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.

Rasa 1.0 ImportError: cannot import name 'EndpointConfig' from 'rasa_core.utils'

See original GitHub issue

Rasa version: rasa 1.0.1

Python version: Python 3.7.3

Operating system (windows, osx, …): OSX

Issue: ImportError: cannot import name ‘EndpointConfig’ from ‘rasa_core.utils’

After upgrading to rasa version 1.0, How can we train using python agent

from rasa_core.utils import EndpointConfig
core_endpoint_config = EndpointConfig(url='http://localhost:5055/webhook')

agent = Agent(domain_file, policies=[MemoizationPolicy(), KerasPolicy(), fallback], action_endpoint = core_endpoint_config, interpreter=interpreter)
#agent = Agent.load(current_project_path+"/models")`

Content of configuration file (config.yml):

# Configuration for Rasa NLU.
# https://rasa.com/docs/rasa/nlu/components/
language: en
pipeline: supervised_embeddings

# Configuration for Rasa Core.
# https://rasa.com/docs/rasa/core/policies/
policies:
  - name: MemoizationPolicy
  - name: KerasPolicy
  - name: MappingPolicy

Content of domain file (domain.yml) (if used & relevant):

intents:
- greet
- goodbye
- thanks
- deny
- joke
- name


entities:
- name


slots:
  name:
    type: text


actions:
- utter_name
- utter_thanks
- utter_greet
- utter_goodbye
- action_joke
- utter_unclear

templates:
  utter_name:
  - text: "Hey there! Tell me your name."

  utter_greet:
  - text: "Nice to you meet you {name}. How can I help?"

  utter_goodbye:
  - text: "Talk to you later!"
  
  utter_thanks:
  - text: "My pleasure."

  utter_unclear:
  - text: "Sorry, I dont know"
  

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

6reactions
anoop2503commented, May 29, 2019

@karthikbalu please try with from rasa.utils.endpoints import EndpointConfig

0reactions
stale[bot]commented, Oct 7, 2019

This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

From rasa.core.utils import EndpointConfig ImportError
I have added the from rasa.core.utils import EndpointConfig and getting the following error. ImportError: cannot import name 'EndpointConfig ...
Read more >
rasa nlu - ImportError: cannot import name 'EndpointConfig'
Looking at the changelog (Link to Changelog) EndpointConfig was added with Rasa Core version 0.10.0 However, you are using 0.8.2 .
Read more >
How to use the rasa.core.channels.channel.UserMessage ...
Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues...
Read more >
rasa Changelog - pyup.io
Not secure. Rasa_Sdk 3.3.0 (2022-10-06) No significant changes. ... Fixed this by using string literal names instead of the module's name via _\_name\_\_...
Read more >
cannot import name 'file_hash' from 'pooch.utils' - YouTube
How to resolve ImportError : cannot import name 'file_hash' from 'pooch. utils '
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