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
sys:1: RuntimeWarning: coroutine 'main' was never awaited #16
Comments
The problem is in the [tool.poetry.scripts]
beebot = 'beebot.initiator.cli:main' Which means the async function cli.py last part with the async def async_main():
load_dotenv()
parsed_args = parse_args()
if parsed_args.task:
task = parsed_args.task
else:
print("What would you like me to do?")
print("> ", end="")
task = input()
config = Config.global_config()
config.setup_logging()
await initialize_db(config.database_url)
body = Body(task=task, config=config)
await body.setup()
while output := await body.cycle():
if output.observation:
print("\n=== Cycle Output ===")
print(output.observation.response)
def main():
asyncio.run(async_main())
if __name__ == "__main__":
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The text was updated successfully, but these errors were encountered: