gpt4 book ai didi

python - py2app 在打开 *.app 时出错,但在显示包内容时出错

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

这是控制台输出。我无法理解它。

error   10:10:07.527514 +0700   Console Detected missing constraints for <private>.  It cannot be placed because there are not enough constraints to fully define the size and origin. Add the missing constraints, or set translatesAutoresizingMaskIntoConstraints=YES and constraints will be generated for you. If this view is laid out manually on macOS 10.12 and later, you may choose to not call [super layout] from your override. Set a breakpoint on DETECTED_MISSING_CONSTRAINTS to debug. This error will only be logged once.

这是setup.py

APP = ['main.py']
DATA_FILES = [
('database',['database/HSK.xlsx', 'database/JLPT.xlsx']), 'config.txt'
]
OPTIONS = {
'includes': 'openpyxl',
'plist': {
'CFBundleName': 'Duendecat'
}
}

setup(
app=APP,
data_files=DATA_FILES,
options={'py2app': OPTIONS},
setup_requires=['py2app','PyQt5','openpyxl'],
)

最佳答案

尝试重新安装0.13版本的py2app

pip install py2app==0.13

这对我有用。
0.14 版本似乎有一个 bug

关于python - py2app 在打开 *.app 时出错,但在显示包内容时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48482818/

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