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.

NameError: name 'Agent' is not defined

See original GitHub issue

Rasa 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:closed
  • Created 4 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
tmbocommented, May 27, 2019

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.

0reactions
yeshwanth-mandlacommented, Nov 11, 2019

I have the same issue, causing agent error, what is the solution!

Read more comments on GitHub >

github_iconTop 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 >

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