You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<coroutine object main at 0x1034b0f40>
sys:1: RuntimeWarning: coroutine 'main' was never awaited
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
The text was updated successfully, but these errors were encountered:
Which means the async function main from cli.py gets executed when running the command poetry run beebot. To fix it for now, you can make main sync and let it call async_main async like this:
cli.py last part with the main function to this:
asyncdefasync_main():
load_dotenv()
parsed_args=parse_args()
ifparsed_args.task:
task=parsed_args.taskelse:
print("What would you like me to do?")
print("> ", end="")
task=input()
config=Config.global_config()
config.setup_logging()
awaitinitialize_db(config.database_url)
body=Body(task=task, config=config)
awaitbody.setup()
whileoutput:=awaitbody.cycle():
ifoutput.observation:
print("\n=== Cycle Output ===")
print(output.observation.response)
defmain():
asyncio.run(async_main())
if__name__=="__main__":
main()
The text was updated successfully, but these errors were encountered: