Traceback (most recent call last):


 "./manage.py", line 21, in <module>

main()


 "./manage.py", line 17, in main

execute_from_command_line(sys.argv)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django/core/management/__init__.py", line 401, in execute_from_command_line

utility.execute()


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django/core/management/__init__.py", line 395, in execute

self.fetch_command(subcommand).run_from_argv(self.argv)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django_extensions/management/email_notifications.py", line 65, in run_from_argv

super(EmailNotificationCommand, self).run_from_argv(argv)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django/core/management/base.py", line 328, in run_from_argv

self.execute(*args, **cmd_options)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django_extensions/management/email_notifications.py", line 77, in execute

super(EmailNotificationCommand, self).execute(*args, **options)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django/core/management/base.py", line 369, in execute

output = self.handle(*args, **options)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django_extensions/management/utils.py", line 62, in inner

ret = func(self, *args, **kwargs)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django_extensions/management/commands/runscript.py", line 233, in handle

modules = find_modules_for_script(script)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django_extensions/management/commands/runscript.py", line 216, in find_modules_for_script

mod = my_import(parent, mod_name)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/site-packages/django_extensions/management/commands/runscript.py", line 169, in my_import

importlib.import_module(parent_package)


 "/Users/dev/.virtualenvs/server-99338def/lib/python3.8/importlib/__init__.py", line 127, in import_module

return _bootstrap._gcd_import(name[level:], package, level)


 "<frozen importlib._bootstrap>", line 1014, in _gcd_import


 "<frozen importlib._bootstrap>", line 991, in _find_and_load


 "<frozen importlib._bootstrap>", line 975, in _find_and_load_unlocked


 "<frozen importlib._bootstrap>", line 671, in _load_unlocked


 "<frozen importlib._bootstrap_external>", line 783, in exec_module


 "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed


 "/Users/dev/Projects/dara/server/test.py", line 19, in <module>

asyncio.run(main())


 "/Users/dev/.pyenv/versions/3.8.1/lib/python3.8/asyncio/runners.py", line 43, in run

return loop.run_until_complete(main)


 "/Users/dev/.pyenv/versions/3.8.1/lib/python3.8/asyncio/base_events.py", line 612, in run_until_complete

return future.result()


 "/Users/dev/Projects/dara/server/test.py", line 15, in main

async for i in gen():
TypeError: 'async for' requires an object with __aiter__ method, got coroutine

Traceback (most recent call last):


 "red.py", line 614, in <module>

loop.run_until_complete(main(bot))


 "/usr/lib/python3.7/asyncio/base_events.py", line 568, in run_until_complete

return future.result()


 "red.py", line 599, in main

bot=not bot.settings.self_bot)
TypeError: cannot 'yield from' a coroutine object in a non-coroutine generator
