这是控制台输出。我无法理解它。
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 :(得分:1)
尝试重新安装版本0.13的py2app
pip install py2app==0.13
这对我有用。
似乎版本0.14有一个错误