[英]Can't Run py2app on Mac big sur : Launch error See the py2app website for debugging launch issues
So im just trying to run a filemanager code and i want it to run as an application.所以我只是想运行一个文件管理器代码,我希望它作为一个应用程序运行。
from setuptools import setup
APP = ['FileManager.py']
OPTIONS = {
'argv_emulation':True,
}
setup(
app = APP,
options = {'py2app':OPTIONS},
setup_requires = ['py2app']
)
But i am running into this error :但我遇到了这个错误:
Launch error
See the py2app website for debugging launch issues
I am running this app on the same mac that i used to write the script.我在用来编写脚本的同一台 Mac 上运行这个应用程序。 I tried to check the given website ( https://py2app.readthedocs.io/en/latest/debugging.html#debugging-application-building ) but i Don't understand as i am not very experienced in python and py2app.
我试图检查给定的网站( https://py2app.readthedocs.io/en/latest/debugging.html#debugging-application-building )但我不明白,因为我对 python 和 py2app 不是很有经验。 Any help would be greatly appreciated.
任何帮助将不胜感激。 Thanks.
谢谢。
I got the same error.我得到了同样的错误。 The command provided in the website where it says "launch the application as follows", is equivalent to the following:
网站上提供的“按如下方式启动应用程序”的命令等效于以下内容:
In my case I had no problem running the executable in step 3. Then my workaround is right click on the executable and select "Make Alias".在我的情况下,我在步骤 3 中运行可执行文件没有问题。然后我的解决方法是右键单击可执行文件并选择“制作别名”。 Simply drag the alias to Desktop or any other places you want.
只需将别名拖到桌面或您想要的任何其他地方。 Boom.
繁荣。 You could double click and run your app.
您可以双击并运行您的应用程序。
PS: I really appreciate it if the py2app team could fix this problem. PS:如果 py2app 团队能解决这个问题,我真的很感激。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.