【问题标题】:Jupyter notebook and macOS High Sierra: "osascript: can't open default scripting component"Jupyter notebook 和 macOS High Sierra:“osascript:无法打开默认脚本组件”
【发布时间】:2017-10-09 20:00:00
【问题描述】:

在我升级到 macOS High Sierra 之前,jupyter-notebook 工作正常。任何人都知道如何解决“oscript:无法打开默认脚本组件”问题?搜索这个网站和谷歌没有得到任何答案。我在 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.

【问题讨论】:

  • 我在 High Sierra 上运行 Anaconda 时遇到了确切的问题。你已经解决问题了吗?

标签: jupyter-notebook macos-high-sierra


【解决方案1】:

我在诊断 Emacs Applescript 集成问题时遇到了与osascript 完全相同的问题(Emacs 将错误报告为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!”对话框。

【讨论】:

  • 我重启了,但是还是有错误:osascript: can't open default scripting component
猜你喜欢
  • 2018-03-27
  • 2021-08-25
  • 2018-04-01
  • 2019-05-15
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多