【发布时间】:2023-03-07 05:09:02
【问题描述】:
我是 python 新手。我创建了一个 Django 项目并在本地运行它。 我的 python 项目一直运行良好,直到我从我的 main.py 文件运行一个函数。该函数运行良好,但随后 python 崩溃:
Assertion failed: (NSViewIsCurrentlyBuildingLayerTreeForDisplay() != currentlyBuildingLayerTree), function NSViewSetCurrentlyBuildingLayerTreeForDisplay, file /AppleInternal/BuildRoot/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1894.50.103/AppKit.subproj/NSView.m, line 13568.
但是我不确定为什么会出现这个错误。有人遇到过此类错误吗?
【问题讨论】:
-
你使用的是 Matlib 还是 Matplotlib?
-
我在我的 Mac 上使用 Matplotlib 来生成图表。你认为这是问题所在吗?