【问题标题】:Assertion failure on django projectdjango项目的断言失败
【发布时间】: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.

但是我不确定为什么会出现这个错误。有人遇到过此类错误吗?

【问题讨论】:

标签: python django


【解决方案1】:

谢谢,添加plt.close() 关闭我的情节阻止了这个问题。

【讨论】:

    猜你喜欢
    • 2014-09-09
    • 2014-10-22
    • 2011-05-27
    • 2021-03-16
    • 2010-09-26
    • 2018-11-09
    • 2021-01-20
    • 2014-06-10
    相关资源
    最近更新 更多