gpt4 book ai didi

python - 缺少 com.apple.xbs 文件夹,如何获取它?

转载 作者:太空宇宙 更新时间:2023-11-03 15:29:24 34 4
gpt4 key购买 nike

/Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.81.100/AppKit.subproj/NSBitmapImageRep.m:1296

在 Mac OS 上的简单 PyQt5 Python 3 程序中导致错误。我怎样才能下载这个文件?

2017-03-23 22:50:20.703 Python[94924:2805073] *** Assertion failure in - [NSBitmapImageRep initWithCGImage:], /Library/Caches/com.apple.xbs/Sources/AppKit/AppKit-1504.81.100/AppKit.subproj/NSBitmapImageRep.m:1296
2017-03-23 22:50:20.734 Python[94924:2805073] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Invalid parameter not satisfying: cgImage != NULL'

程序代码: http://pastebin.com/2HNqwY2C

最佳答案

听起来您遇到了 QT 中的错误:https://bugreports.qt.io/browse/QTBUG-58344

根据报告,它应该在 QT 5.8.1 中修复

<小时/>

回答字面上的问题:NSBitmapImageRep 是 AppKit 框架中的一个类,当应用程序在 Mac 上运行时,QT 使用它。正如引用的 reddit 用户提到的:您的系统上没有源文件,即使是暂时的。如果您将报告提交给 QT 或 Apple,这些崩溃报告中包含的行号旨在用于诊断问题。

关于python - 缺少 com.apple.xbs 文件夹,如何获取它?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43007661/

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