gpt4 book ai didi

jupyter-notebook - Jupyter 笔记本和 macOS High Sierra : "osascript: can' t open default scripting component"

转载 作者:行者123 更新时间:2023-12-05 04:09:06 28 4
gpt4 key购买 nike

在我升级到 macOS High Sierra 之前,jupyter-notebook 工作正常。任何人都知道如何解决“osacript:无法打开默认脚本组件”问题?搜索这个网站和谷歌没有得到任何答案。我在使用 Anaconda 4.3.24。谢谢。

$ 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.

最佳答案

我刚刚在诊断 Emacs Applescript 集成问题时遇到了与 osascript 完全相同的问题(Emacs 将错误报告为 do-applescript:OSA 语言不可用,但进一步的调试让我找到了 osascript 并且它的 can't open default scripting component)。我最近还升级到了 High Sierra。

不幸的是,网上有太多建议需要重新安装 OSX。

就我而言,重启解决了问题。

可以通过运行测试命令进行诊断:

osascript -e '告诉应用“Finder”显示对话框“Hello, World!”

重启后,应该会弹出一个“Hello, World!”对话框。

关于jupyter-notebook - Jupyter 笔记本和 macOS High Sierra : "osascript: can' t open default scripting component",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46555308/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com