New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TypeError: 'coroutine' object is not iterable #3649
Comments
Thanks for raising this issue, @tabergma will get back to you about it soon. |
same issue here |
We use asyncio internally.
As you are using python3.7 you should be able to replace
by
|
@tabergma, thank you! that solved the problem! |
Hi @tabergma i had tried same but again getting same error. Please let me know what change required async def train_dialogue(domain_file = 'domain.yml',
Error:dialogue_model.py:53: RuntimeWarning: coroutine 'train_dialogue' was never awaited |
@neerajb1 As soon as you put the keyword In your case you can simply remove the keyword Try the following:
|
@tabergma |
Can you please share your code, otherwise it is hard to figure out what is going wrong. Thanks. |
@tabergma here is the code
|
Can you try
|
@tabergma
|
@tabergma But when i try to do interactive learning, it is not happening Error:
|
@ashish1471 Please ask your question in our forum (https://forum.rasa.com/). Also use ``` around your code so that it is more readable. Thanks. |
same problem. Did you able to solve it? |
@tabergma thank you very much, you saved my life :) |
I am getting same issue. THe below code is working with spark 3.0 and below but throwing error with spark version 3.0
Below is error message -
Below code alone is working- |
Rasa version:
rasa 1.0.2
rasa-core-sdk 0.14.0
rasa-sdk 1.0.0
Python version:
Python 3.7.3
Operating system (windows, osx, ...):
Mac osx Mojave
Issue:
When I run the below command:
python dialogue_management_model.py
The error that pops up is this frame below:
WARNING: The TensorFlow contrib module will not be included in TensorFlow 2.0.
For more information, please see:
If you depend on functionality not listed there, please file an issue.
Traceback (most recent call last):
File "dialogue_management_model.py", line 38, in
train_dialogue()
File "dialogue_management_model.py", line 25, in train_dialogue
agent.train(data)
File "/usr/local/lib/python3.7/site-packages/rasa/core/agent.py", line 668, in train
self.policy_ensemble.train(training_trackers, self.domain, **kwargs)
File "/usr/local/lib/python3.7/site-packages/rasa/core/policies/ensemble.py", line 89, in train
policy.train(training_trackers, domain, **kwargs)
File "/usr/local/lib/python3.7/site-packages/rasa/core/policies/memoization.py", line 152, in train
for t in training_trackers
TypeError: 'coroutine' object is not iterable
sys:1: RuntimeWarning: coroutine 'Agent.load_data' was never awaited
I'm unsure of how this is happening, and I saw on another post to add "await" before when i train the agent, but that gave a syntax error. Please help!!
Content of configuration file (config.yml):
Content of domain file (domain.yml):
Content of dialogue_management_model.py:
The text was updated successfully, but these errors were encountered: