프로그램은 아나콘다 스파이더 쓰고 있구요 챗gpt에 물어보니 당신 말이 맞아요. asyncio.run() 기존 이벤트 루프 내에서는 호출할 수 없습니다. 이 제한은 예기치 않은 동작으로 이어질 수 있는 중첩된 이벤트 루프를 실수로 생성하는 것을 방지하기 위해 적용됩니다. 이미 이벤트 루프가 실행 중인 환경(예: Jupyter 노트북 또는 대화형 Python 셸)에서 이 코드를 실행하는 경우 이벤트 루프를 수동으로 만들고 실행해야 합니다. 이러한 환경에서 작동하도록 코드를 수정하는 방법은 다음과 같습니다. import asyncio async def main(): await asyncio.sleep(1) print('hello') # If there's an event loop running, get it loop = asyncio.get_event_loop() # Schedule the coroutine to run in the existing event loop loop.run_until_complete(main()) 그래도 에러가 뜹니다 RuntimeError: This event loop is already running