[Python] How To Fix: py2app standalone application doesn't run on machines without Python installed

preview_player
Показать описание
This (very stupid) error occurs when trying to run a Tkinter app compiled with py2app on a separate MacOS machine that doesn't already have Python installed.

Quick instructions:
3. Find the folders named "tcl8", "tcl8.6" and "tk8.6" in this directory
4. Copy and paste these folders into the new "lib" folder that you created
5. Your standalone app should now work on any MacOS machine whether they have Python installed or not.

I will attempt to reply to any questions in the comments.
Рекомендации по теме
Комментарии
Автор

For anyone getting any error related to this problem, you should place this three files in the lib folder of your virtualenviroment (env/lib/<here>), then you can compile py2app. If this doesnt fix it, then your error is different from this one.

BenjaSerra
Автор

Thank you soo much. This saved my life. I searched for like 3 hours.

adkoda
Автор

Thanks bro, was looking everywhere for thiss !! Life saver🙏🙏🙏

adrienzombie
Автор

0:39 is where things go south for me. I got a quit unexpectedly error message however program runs fine in ide 😢

crause
Автор

Hey my app is building fine but whenever I try to run the application, it says that there was a Launch Error

parthrangarajan
Автор

there is no python.framework under framework directory

nishantsinghchandra
Автор

Hey, I've created an application using Python and Tkinter as well as PyAudio. PyAudio requires access to the microphone and if I start an app using terminal or through Pycharm apple prompts for microphone access permission but when I use py2app to create stand alone .app application, there is no way to access microphone, either through tinkering with osx settings or through the software design. I've tried to change playlist among other things and nothing is working. Any idea how to solve that problem...?

macieks
Автор

Mine still shows the same error even with those folders in the app any suggestions?

robcampbell
welcome to shbcf.ru