'I can't make a python script in mac app. i tried using py2app but can't get it to compile
i am trying to compile an python app to a stand alone app. i looked it up and i found py2app, i tried following a guide but couldn't get it to work. here is my setup file.
from setuptools import setup
setup(
app=["pygui.py"],
setup_requires=["py2app"],
)
here is the error.
python3 setup.py py2app
running py2app
Traceback (most recent call last):
File "/Users/Aphixe/Documents/pygui/setup.py", line 2, in <module>
setup(
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/setuptools/__init__.py", line 153, in setup
return distutils.core.setup(**attrs)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/core.py", line 148, in setup
dist.run_commands()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/dist.py", line 966, in run_commands
self.run_command(cmd)
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/dist.py", line 984, in run_command
cmd_obj.ensure_finalized()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/distutils/cmd.py", line 107, in ensure_finalized
self.finalize_options()
File "/Library/Frameworks/Python.framework/Versions/3.10/lib/python3.10/site-packages/py2app/build_app.py", line 567, in finalize_options
if isinstance(self.plist, plistlib.Dict):
AttributeError: module 'plistlib' has no attribute 'Dict'
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
