I am getting an error when running my web app on PythonAnywhere.
The error is as follows:
Error running WSGI application
TypeError: '_UnixSelectorEventLoop' object is not callable
I'm suspecting that it has something to do with me using this in my main.py:
executor = ProcessPoolExecutor(2)
loop = asyncio.new_event_loop()
dc_bot = loop.run_in_executor(executor, run_bot)
server = loop.run_in_executor(executor, run_server)
but I'm not sure how I could fix this as I am pretty new to using aiohttp. Any help would be greatly appreciated, thanks.