os x Yosemite The virtual environment in pyenv is python 3.5.1
Install py2app with pip
# -*- coding: utf-8 -*-
from setuptools import setup
# Information such as name, description, version, etc. is the same as the general setup.py.
setup(name="test_py2xxx",
description="py2app test application",
version="0.0.1",
# Add dependency on installation
setup_requires=["py2app"],
app=["byulcom.py"],
options={
"py2app": {
# Includes modules required for PySide operation.
"includes": ["PySide.QtCore",
"PySide.QtGui",
"PySide.QtWebKit",
"PySide.QtNetwork",
"PySide.QtXml"]
}
})
Then run test_py2xxx on dist and
This error message appears.
Could you give me some help?
python py2app error
Why don't you check the Info.plist file as shown in the error message?
I ran the code you posted and entered the app, and it was designated like the picture below.
Make sure Python is installed in PyRuntimeLocations.
© 2024 OneMinuteCode. All rights reserved.