Rasa 1.0 ImportError: cannot import name 'EndpointConfig' from 'rasa_core.utils'
See original GitHub issueRasa 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:
- Created 4 years ago
- Comments:9 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@karthikbalu please try with from rasa.utils.endpoints import EndpointConfig
This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.