Questions tagged [py2app]

py2app can create standalone Mac OS X applications with Python

py2app is a Python setuptools command which will allow you to make standalone application bundles and plugins from Python scripts. py2app is similar in purpose and design to py2exe for Windows.


Resources:

621 questions
3
votes
5 answers

py2applet: command not found

I'm trying to create a GUI Python app using Py2App, but am having trouble running the setup script py2applet. I've installed py2app via pip $ sudo pip install py2app #this works ok Then, I try to build the setup script: $ py2applet --make-setup…
jshawl
  • 3,315
  • 2
  • 22
  • 34
2
votes
0 answers

Problems With py2app on a Mac

I've recently started to code python, and have written my first applications that I would like to give to some of my friends in the form of a single application, NOT a python script. After scouring the internet, I decided that py2app was the best…
user1198805
  • 121
  • 1
  • 1
  • 3
2
votes
0 answers

py2app on OSX-lion

I have a problem/question about building apps on the MacOS 10.7.2 version. Ok so I have succesfully bundled my application on 10.5.8 but now we need a 64-bit distribution too so we are trying to build it on 10.7.2 . This comes from what I see with a…
Bogdan
  • 8,017
  • 6
  • 48
  • 64
2
votes
1 answer

Error when running py2app init_import_site: Failed to import the site module

I am currently dabbling in Python. I have now created a mini project for testing. For this I have installed PySide6 and built a none window: from PySide6.QtWidgets import QApplication, QMainWindow from widgets.main import Ui_frmMain class…
2
votes
0 answers

How do I bundle Playwright for Python into a Py2app MacOS standalone .app?

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,…
2
votes
0 answers

Python py2app setup.py error "ImportError: No module named sip"

I'm using py2app to convert my python program to an .dmg on MacOS. The packages that I used are (Tkinter, Folium, and Pandas) and I have a few dependencies for the application to run. (.json, .cvs and .html) No matter what I do I get an error…
Anna M
  • 65
  • 6
2
votes
2 answers

No such file or directory: '/opt/anaconda3/lib/python3.8/site-packages/rtree/lib'

I am trying to build an app from a python file (Mac OS) using the py2app extension. I have a folder with the python file and the "setup.py" file. I first tested the app by running python setup.py py2app -A in the terminal and the dist and build…
ks08
  • 84
  • 1
  • 9
2
votes
1 answer

How can I run my Python script as a "drag and drop" icon on the dock? (MacOS)

I've got a little Python script here for batch renaming files. Really simple. I'd like to be able to run it simply from the dock, by dragging a folder on to the icon, it will use that folder as the input for the script and run it. Can anyone point…
neff
  • 41
  • 2
2
votes
1 answer

75 MB Helloworld with py2app !

I'm testing different languages to developp a desktop application for Mac&Windows. I thought that Python+Wx worth a try so I wrote a simple hello world. Then, I tried the py2app to package my application as a Mac application. What a surprise to…
user777466
  • 991
  • 2
  • 13
  • 21
2
votes
2 answers

Py2App error: ModuleNotFoundError: No module named 'cmath' when using Pandas

I am trying to build a standalone app that utilises Pandas. This is my setup.py file: from setuptools import setup APP = ['MyApp.py'] DATA_FILES = ['full path to/chromedriver'] PKGS = ['pandas','matplotlib','selenium','xlrd'] OPTIONS = {'packages':…
Pier
  • 133
  • 2
  • 10
2
votes
0 answers

I created an .app file using py2applet but it appears on dock for 1 millisecond and disappears

I compiled my .py file into a distributable .app file using py2app but when I click on the app icon it appears on dock for a millisecond and disappears. Any idea why? I have tried using chmod 777 and 755 to attempt and allow permissions to execute…
Amen
  • 69
  • 8
2
votes
0 answers

py2app "/usr/lib/libstdc++.6.dylib: No such file or directory" error

When I was building LDOCE5 Viewer on macOS Big Sur with the command sudo DISTUTILS_DEBUG=1 python3 setup.py py2app, the output printed this error: copying file /usr/lib/libstdc++.6.dylib ->…
2
votes
0 answers

How can I tell setup.py for py2app to put data folders in the Contents folder instead of the Resources folder?

My Python program has a number of data file folders. In an sdist distribution these folders are all children of the project root folder. In a py2app distribution, these folders wind up as children of the Resources folder. However when tuning the…
mcgregor94086
  • 1,467
  • 3
  • 11
  • 22
2
votes
2 answers

Send py2app application to Mac without python

I have a tkinter application, which I would like to distribute to my colleagues, who do not have python installed. I use py2app with the following setup.py file from setuptools import setup import sys sys.setrecursionlimit(5000) #APP would be the…
2
votes
1 answer

Py2app application not working with tensorflow

I have made a GUI application that uses Tensorflow to load in a model from a .h5 file and get a prediction. The program works fine when running it from a terminal before putting it together into an application. However, when I use py2app to make the…
Tomatto
  • 21
  • 1