에러tlqkf!!!!!

[python] Canceled future for execute_request message before replies were doneThe Kernel.... 에러를 해결해보자

소곡이 2023. 1. 31. 15:08
728x90

 

 

나와쪄. 

 


 구글링을 해보니까 tensorflow 설치할 때 많이 나는 에러 같다. 

 

Canceled future for execute_request message before replies were done The Kernel crashed while executing code in the the current cell or a previous cell. Please review the code in the cell(s) to identify a possible cause of the failure. Click here for more info. View Jupyter log for further details.

 

나는 텐서플로우 설치 안 했는데 이 에러가 났다? 이거 보세요.

 

 저는 재귀함수를 잘못써서 자기 자신을 무한히 호출하는 코드를 짜버렸습니다. 그래서 vscode 환경에서는 커널이 죽는 에러가 발생을 했죠. 그래서 뭐가 문제지 하면서 컴퓨터 껐다켰다 하다가. 구글 코랩으로 실행 해봤는데 에러가 보이더라고요. 

 

 

 

 함수를 호출하면 함수 호출 스택이라는 곳에 호출한 함수가 쌓이게 되는데. 그렇게 쌓일 수 있는 최대 깊이를 넘었다는 뜻. 

 

결론, 재귀함수를 써서 위와 같은 에러가 났다면. 재귀 함수 코드를 수정해야 합니다.