NameError: name 'Agent' is not defined
See original GitHub issueRasa version:1.0.1
Python version: 3.6.8
Operating system (windows, osx, …):windows
Issue: from rasa.jupyter import chat chat(model_path)
NameError Traceback (most recent call last) <ipython-input-13-9b68c86f9192> in <module>() ----> 1 chat(model_path)
1 frames /usr/local/lib/python3.6/dist-packages/rasa/run.py in create_agent(model, endpoints) 82 ) 83 —> 84 return Agent.load( 85 model, 86 generator=_endpoints.nlg,
NameError: name ‘Agent’ is not defined
Content of configuration file (config.yml):
Content of domain file (domain.yml) (if used & relevant):
Issue Analytics
- State:
- Created 4 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
NameError: class name is not defined - python - Stack Overflow
Your code is correct, but I suspect there is something wrong with the indentation. This is how it should be class Agent: def...
Read more >Nameerror: name base is not defined ( Solved )
The main cause of the name base is not defined is that you must be using the basic commands of the Open Gym...
Read more >Error starting up the Python Agent - AppDynamics Community
Hello community, I'm new to AppDynamics and I'm trying to instrument a simple app using the Python agent, but I'm having some issues...
Read more >NameError: name 'u1' is not defined (on parser code Python)
Most have print() in main() function. There are serval other problem if i do a test,u1,u2 will have no output.
Read more >NameError: name 'false' is not defined in Python | bobbyhadz
The Python "NameError: name 'false' is not defined" occurs when we misspell the keyword False . To solve the error, make sure to...
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
in the snippet in your issue description you are missing an import for
Agent
(from rasa.core.agent import Agent
).in the code you posted above, you are missing a variable declaration for the agent
agent
variable.I have the same issue, causing agent error, what is the solution!