简体   繁体   English

"无法在 Mac big sur 上运行 py2app:启动错误 有关调试启动问题,请参阅 py2app 网站"

[英]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:网站上提供的“按如下方式启动应用程序”的命令等效于以下内容:

  1. Right click on the application package created by py2app in "dist" folder, in your case it should be named FileManager<\/em> .右键单击 py2app 在“dist”文件夹中创建的应用程序包,在您的情况下,它应该命名为FileManager<\/em> 。<\/li>
  2. Click on "Show Package Contents".单击“显示包内容”。<\/li>
  3. Go to contents -> MacOS.转到内容-> MacOS。 You should see a Unix executable named FileManager<\/em> .您应该会看到一个名为FileManager<\/em>的 Unix 可执行文件。 Double click to see if it could run.双击查看是否可以运行。<\/li><\/ol>

    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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM