I made an app with python py2app, but error message

Asked 2 years ago, Updated 2 years ago, 82 views

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

2022-09-22 16:59

1 Answers

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.


2022-09-22 16:59

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.