2

I built a simple interface using tkinter that will upload videos to Vimeo using the API, then once done, will refresh the Vimeo video page until the video is done processing and is live. All of this works perfectly when using it through terminal, but how would I go about packaging it into a standalone MacOS app?

It looks like playwright is installed onto the system rather than it being a module that is easily imported. When running playwright install on terminal, it installs it to /local/bin/. This is the only part of my code that fails when run through py2app.

How would I go about packaging playwright into the .app bundle?

I tried modifying the setup.py file to include it as a framework;

from setuptools import setup

APP = ['Uploader.py']
DATA_FILES = [] #this is where images/buttons would go.
OPTIONS = {'iconfile':'Square.icns','plist': {'CFBundleShortVersionString':'0.1.0',},'argv_emulation': False, 'frameworks':['/usr/local/bin/playwright'],}

setup(
    app=APP,
    data_files=DATA_FILES,
    options={'py2app': OPTIONS},
    setup_requires=['py2app','playwright'],
)

However, when running this application it hangs when launching Chromium. When I run the application executor from terminal, it states that it cant find playwright.sh.

Any ideas?

0 Answers0