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:

582 questions
49
votes
6 answers

Is it possible to deploy a Python application on the Mac App Store?

Does Apple accept Python applications for distribution on the new Mac App Store? If so, how should the application be packaged? Is py2app sufficient? Something else?
FogleBird
  • 65,535
  • 24
  • 118
  • 129
35
votes
11 answers

How to create a Mac OS X app with Python?

I want to create a GUI application which should work on Windows and Mac. For this I've chosen Python. The problem is on Mac OS X. There are 2 tools to generate an ".app" for Mac: py2app and pyinstaller. py2app is pretty good, but it adds the source…
Cristian Ciocău
  • 944
  • 2
  • 9
  • 12
23
votes
8 answers

How to put a tkinter window on top of the others?

I'm using Python 2 with Tkinter and PyObjC, and then I'm using py2app. The program is working fine, but the window starts as hidden whenever I open the program, so it doesn't appear until I click on the icon on the dock to bring it up. Is there…
Dennis
  • 3,104
  • 5
  • 30
  • 42
17
votes
6 answers

How to build an mac os app from a python script having a PySide2 GUI?

Context: I am developping a simple Python application using a PySide2 GUI. It currently works fine in Windows, Linux and Mac. On Windows, I could use PyInstaller and InnoSetup to build a simple installer. Then I tried to do the same thing on Mac. It…
Serge Ballesta
  • 121,548
  • 10
  • 94
  • 199
15
votes
1 answer

Simple license protection for Python app

Although there are quite a few questions like this, please bear with me as I think mine is different... I have a $5 Python app that I distribute using py2exe, py2app, and source for Linux. The app has a one-year license so that people need to…
gaefan
  • 14,322
  • 16
  • 52
  • 100
15
votes
2 answers

Building a Mac and Windows GUI Application

I am planning to build a GUI application for Mac and Windows. I've been doing some research in the technology choices, as in the language, libraries, and build tools, so that I can share as much code as possible between the two platforms. The main…
Yunchi
  • 5,435
  • 2
  • 13
  • 18
13
votes
1 answer

py2app builds ok but app fails with "_tkinter.TclError" (and no error message!)

I am using py2app 0.9 on Mac OSX Yosemite 10.10.1 running Python 3.4 from the anaconda distribution and with Tcl 8.5. In earlier attempts, the build would fail, but quick searches revealed solutions to these problems (i.e. including 'packages':…
Ryan Keenan
  • 261
  • 1
  • 2
  • 7
13
votes
2 answers

Can executables made with py2app include other terminal scripts and run them?

So I have a nice python app for OS X that is working great. It runs an external terminal script and I would like to include that in with my python app. Ideally, I'd be able to run py2app and have this script bundled up with it into the executable…
Mizmor
  • 1,189
  • 5
  • 16
  • 38
12
votes
1 answer

py2app: modulegraph missing scan_code

For some reason I can't explain or google, py2app crashes on me even with the simplest examples. Im using a python 3.4.1 virtual environment created as Projects/Test/virtenv which has py2app installed via pip. Here is the output of $pip…
Michal
  • 1,190
  • 2
  • 12
  • 21
11
votes
2 answers

How to specify py2app icon?

How do I specify the icon file when using py2app? Just now I create the setup file: py2applet --make-setup MyApplication.py and then build the application bundle: python setup.py py2app -A where is it that I specify the icon file.. getting a…
Grahame Thomson
  • 191
  • 1
  • 2
  • 6
11
votes
1 answer

Python: libpython3.5.dylib not found?

I would like to make a Mac executable for my Python code but always got this error message: OSError: Python library not found: .Python, libpython3.5.dylib, Python Both PyInstaller and py2app returned the same error. What should I do to overcome…
mawgumelar
  • 131
  • 1
  • 5
11
votes
3 answers

How to create OS X app with Python on Windows

I need to automate a cross-platform application build. Entire build runs on Windows machine. Part of it is written in Python and compiles for OS X. Currently this part of build is done manually on OS X. I tried pyinstaller but it looks like it only…
IT Hit WebDAV
  • 5,041
  • 12
  • 50
  • 88
10
votes
0 answers

"Python runtime could not be located" for py2app standalone build

I'm attempting to turn a short Python program that I wrote into an easily-distributable application file for OS X, using py2app. I made it through the py2app tutorial, but when I click on my application file the following dialogue is shown: A…
Luke
  • 101
  • 5
10
votes
4 answers

Why Do I get an ImportError when building a .exe with pyinstaller?

I just created a small GUI program that compiles and works fine in IPython, but when I try to export it to a .exe using pyinstaller it gives me an import error. I'm sure it's sklearn because when I comment out the sklearn imports my file open fine…
Chris
  • 131
  • 1
  • 5
10
votes
1 answer

Can I run py2app on Windows?

I recently discovered that an outdated version of Python was causing my Wx app to run into errors. I can't install Python 2.7.3 on my Mac, and when I tried it in a virtual machine, py2app was still "compiling" the app after running overnight (my…
tkbx
  • 13,156
  • 26
  • 77
  • 116
1
2 3
38 39