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
6
votes
3 answers

Executable path to Mac App

In a py2app/Mac Application Bundle, is there a way to spawn another instance of same app from within the app, by passing different command line arguments? or given a mac app bundle, how can I run it from command line and pass some arguments…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
6
votes
1 answer

PIL ImageTK not loading image in py2app application bundle

I'm testing out an app that I've made which, amongst other things, loads a couple of .png images when opened. The images are displayed correctly on my Mac (10.7.5) and my mother's (10.8.5); however when my sister opens it on hers (10.9.5) the images…
SGB
  • 225
  • 2
  • 14
6
votes
1 answer

How to directly access a resource in a Py2app (or Py2exe) program?

This is mostly for Py2app, but I plan to also port to Windows so Py2exe is also applicable. For Mac: How can I access the Resources folder of my app bundle from Python code? The ideal way for me would be to get the path to this folder into a…
fdmillion
  • 4,823
  • 7
  • 45
  • 82
6
votes
3 answers

How to trigger post-build using setuptools/distutils

I am building an application using py2app/setuptools, so once it creates application bundle I want to take some action on dist folder e.g. create a installer/upload it. Is there a way? I have found some post-install solution but no…
Anurag Uniyal
  • 85,954
  • 40
  • 175
  • 219
6
votes
3 answers

Compiling a py2app working build for both Leopard and Snow Leopard?

I currently am making my PyObjC application work for Snow Leopard and I successfully compiled a standalone app. My question would be, how do I make the build to be also Leopard-compatible, given these errors? dyld: lazy symbol binding failed: Symbol…
jopes
  • 245
  • 2
  • 13
6
votes
1 answer

tkinter/py2app created application doesn't show window on initial launch

I'm running into an issue where launching a python app created with Tkinter and packaged by py2app doesn't show the application window immediately. The only way I've gotten the window to show after launch is to click on the application icon in the…
vpaterno
  • 442
  • 3
  • 14
6
votes
1 answer

Scripting Bridge vs PyObjC vs py2app

I am just starting to learn about integrating Python and Mac OS apps. (I want to call some methods from Cocoa to Python.) I've ran into these terminologies -- Scripting Bridge, PyObjC, and py2app. What's the difference? Is PyObjC an example of a…
janeh
  • 3,734
  • 7
  • 26
  • 43
5
votes
2 answers

py2app IOError: [Errno 63] File name too long:

Im trying to package a PySide app with py2app on OS X 10.6 with python 2.6. The problem i'm getting it that it seems like py2app is getting stuck in a loop and recursively appending the same directory path onto its self, and then it eventually hits…
Mark Lakewood
  • 1,980
  • 4
  • 22
  • 44
5
votes
1 answer

Python: Making a standalone executable file on MacOS with py2app

I have an application in a python script my_app.py and want to make a standalone executable out of it on a MacOS (10.14). Following the video-tutorial here, I entered sequentially the following commmands: pip install virtualenv virtualenv venv…
ecjb
  • 5,169
  • 12
  • 43
  • 79
5
votes
0 answers

python 3: py2app "Modules not found (unconditional imports)"

I am building a standalone python3 app for a friend that has no knowledge about code whatsoever. For this app I use multiple modules including tkinter and openpyxl. I use py2app to make my app. Even though the GUI part of the program works, the…
Nootaku
  • 217
  • 3
  • 14
5
votes
1 answer

How do I use py2app with Anaconda python?

I am using Python 3 from the Anaconda distribution, and trying to convert a simple python program into an OS X app (running on El Capitan). Following the instructions in the tutorial, I ran py2applet --make-setup my-script.py python setup.py py2app…
alexis
  • 48,685
  • 16
  • 101
  • 161
5
votes
1 answer

wxPython via py2app: "no appropriate 64-bit architecture" ERROR even though 32-bit preference set

With wxPython (latest) installed on OS X Lion, an attempt to import wx in the interpreter results in: File "wx/__init__.pyc", line 45, in File "wx/_core.pyc", line 4, in File "wx/_core_.pyc", line 18, in File…
Pyderman
  • 14,809
  • 13
  • 61
  • 106
5
votes
0 answers

How to fix dylib linking errors in an osx app generated with py2app?

Hello sage keepers of the arcane art of dylib linking, I am trying to build an osx application using python, pygame, and py2app. The game works just fun when I run it from the source, but when I pack it together with py2app it fails to find the…
jrowe_fl
  • 53
  • 4
5
votes
0 answers

How to fix a dynamic link editor error in py2app?

I am having trouble with py2app. I keep getting the following error code after running python setupSimpleGUI.py py2app in terminal: TypeError: dyld_find() got an unexpected keyword argument 'loader' I have tried various main.py programs (many of…
Jeff Mandell
  • 863
  • 7
  • 16
5
votes
3 answers

OSX app built with python quits immediately if app bundle is executed from finder but runs fine from command line

So I have this pyqt project and I want to build a osx.app dmg using pyinstaller pyinstaller created the output in dist/MyApplication.app I can run it directly from terminal cd dist ./MyApplication.app/Contents/MacOS/MyApplication However, if I try…
user178047
  • 1,264
  • 15
  • 20
1 2
3
41 42