2017-10-04 2 views
1

jupyter-notebook은 macOS High Sierra로 업그레이드 할 때까지 잘 작동했습니다. 누구든지 "osacript : 기본 스크립트 구성 요소를 열 수 없습니다"문제를 해결하는 방법을 알고 있습니까? 이 사이트와 Google을 검색하면 답변이 없습니다. 나는 아나콘다에있다 4.3.24. 감사.Jupyter 노트북 및 macOS High Sierra : "osascript : 기본 스크립팅 구성 요소를 열 수 없습니다."

$ jupyter notebook 
[I 08:12:13.340 NotebookApp] The port 8888 is already in use, trying another port. 
[I 08:12:13.360 NotebookApp] Serving notebooks from local directory: /Users/Greenhorn/Local/projects 
[I 08:12:13.360 NotebookApp] 0 active kernels 
[I 08:12:13.360 NotebookApp] The Jupyter Notebook is running at: http://localhost:8889/?token=9d8bde3a675f28b3cbc4c87b7eb0c36788b4d28260d9ed39 
[I 08:12:13.360 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). 
[C 08:12:13.361 NotebookApp] 

    Copy/paste this URL into your browser when you connect for the first time, 
    to login with a token: 
     http://localhost:8889/?token=9d8bde3a675f28b3cbc4c87b7eb0c36788b4d28260d9ed39 
osascript: can't open default scripting component. 
+0

High Sierra에서 Anaconda를 실행하면 정확한 문제가 발생합니다. 이미 문제를 해결 했습니까? – constra

답변

1

난 그냥 이맥스 AppleScript로 통합 문제를 진단하는 동안 osascript와 정확히 같은 문제로 실행 (이맥스 do-applescript: OSA language not available 같은 오류를보고하지만 더 디버깅 osascript하고 can't open default scripting component를 알려준). 나는 또한 최근 High Sierra로 업그레이드했다.

온라인 사용자는 불행히도 OSX 재설치가 필요하다는 조언을 많이 찾습니다.

제 경우 재부팅으로 문제가 해결되었습니다.

당신은 테스트 명령을 실행하여 진단 할 수 있습니다 : 재부팅 후

osascript -e 'tell app "Finder" to display dialog "Hello, World!"'

를, 이것은 "Hello, world!"를 팝업한다 대화.

관련 문제