Jason Wiener
10/10/2023, 9:15 PM(venv-py310-prefect) PS C:\Users\jason.weiner\PycharmProjects\prefect-scripts> prefect profile use eks
15:14:29.946 | DEBUG | prefect.profiles - Using profile 'local'
⠧ Checking API connectivity...
Connected to Prefect server using profile 'eks'
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002638DDF1990>
Traceback (most recent call last):
File "C:\Users\jason.weiner\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\jason.weiner\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\jason.weiner\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 745, in call_soon
self._check_closed()
File "C:\Users\jason.weiner\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Exception ignored in: <function _ProactorBasePipeTransport.__del__ at 0x000002638DDF1990>
Traceback (most recent call last):
File "C:\Users\jason.weiner\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 116, in __del__
self.close()
File "C:\Users\jason.weiner\AppData\Local\Programs\Python\Python310\lib\asyncio\proactor_events.py", line 108, in close
self._loop.call_soon(self._call_connection_lost, None)
File "C:\Users\jason.weiner\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 745, in call_soon
self._check_closed()
File "C:\Users\jason.weiner\AppData\Local\Programs\Python\Python310\lib\asyncio\base_events.py", line 510, in _check_closed
raise RuntimeError('Event loop is closed')
RuntimeError: Event loop is closed
Marvin
10/10/2023, 9:16 PMpython
import asyncio
if sys.platform == 'win32':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
Remember, this is just one possible solution. The exact solution will depend on the specifics of your code and environment. You might need to experiment a bit to find what works for you. Good luck, not that luck has ever helped anyone.