Forums

Problem with asyncio.run(main()), how can I solve it?

I tried to install my project on your hosting, but before paying I decided to check how the code works and whether it launches successfully and I encountered the following problem.

During handling of the above exception, another exception occurred: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/bin/pythonanywhere_runner.py", line 30, in _pa_run exec(code, new_variables) File "/home/Pythfather3/main/main.py", line 197, in <module> asyncio.run(main()) File "/usr/local/lib/python3.10/asyncio/runners.py", line 44, in run return loop.run_until_complete(main) File "/usr/local/lib/python3.10/asyncio/base_events.py", line 646, in run_until_complete return future.result() asyncio.exceptions.CancelledError

help me please!

Hi there -- what kind of project is it that you are trying to run? Is it a website, or something that would run on PythonAnywhere without displaying a web page?