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
5
votes
1 answer

Python code present in app made by py2app

I am making an app in python on mac osx 10.8.5 I converted the python script into an app by using py2app. But, within app, On Show Package Contents-->Contents-->Resources original code is present. I don't want to show my code to others by…
imp
  • 1,967
  • 2
  • 28
  • 40
5
votes
2 answers

Py2app either uses console or gui, but not both?

My program runs perfectly when launched through terminal or the PythonLauncher. My program utilizes both a GUI written through pyside and a terminal console. When I wrap my program using py2app, running the produced .app file yields only the GUI,…
Ian Zane
  • 2,209
  • 5
  • 23
  • 21
5
votes
3 answers

Where does stuff "print" to when not running application from terminal?

So I have a python application that is being bundled into a .app using py2app. I have some debugging print statements in there that would normally print to stdout if I was running the code in the terminal. If I just open the bundled .app, obviously…
vik
  • 300
  • 1
  • 12
5
votes
1 answer

QApplication is not running in main thread when building PySide app bundle with py2app

I am having problems building my PySide Python app using py2app (for OS X). It appears that something funny happens with threads on the app bundle. Here is the minimal example from PySide.QtCore import * from PySide.QtGui import * import sys class…
Tim MB
  • 4,413
  • 4
  • 38
  • 48
5
votes
1 answer

Game runs well from source, but not from py2app

I have made a multiplayer Pong game with TCP, UDP and pygame. the modules i'm using are: pygame, os, logging, threading, random, yaml (PyYAML) and socket When running the game from the commandline with python2.7 it works well, but the compiled…
Johan Bjäreholt
  • 731
  • 1
  • 11
  • 24
5
votes
2 answers

How to add multiple files to py2app?

I have a python script which makes a GUI. When a button 'Run' is pressed in this GUI it runs a function from an imported package (which I made) like this from predictmiP import predictor class MiPFrame(wx.Frame): [...] def runmiP(self,…
Niek de Klein
  • 8,524
  • 20
  • 72
  • 143
5
votes
3 answers

Py2App Can't find standard modules

I've created an app using py2app, which works fine, but if I zip/unzip it, the newly unzipped version can't access standard python modules like traceback, or os. The manpage for zip claims that it preserves resource forks, and I've seen other…
James Davenport
5
votes
2 answers

Has anyone successfully built a PyObjC app in Snow Leopard?

If you did, would you mind sharing how you did the pyobjc install? I was trying to do it by installing PythonMac 2.5 (for the standalone bundle thru py2app), and doing easy_install of PyObjC. I always get those deprecated errors, primarily those…
jopes
  • 245
  • 2
  • 13
5
votes
2 answers

How can I get more information about a py2app error?

I am trying to package up a mixed Python/C++ application using py2app. My setup.py is from setuptools import setup setup(app=['voxpopuli.py'],data_files=[],options= {'py2app'{'argv_emulation':True}},setup_requires=['py2app']) and I invoke py2app…
Geoffrey Irving
  • 6,483
  • 4
  • 32
  • 40
5
votes
2 answers

Mac Mountain Lion Error - "isn't in fPermittedFrontASNs"

I have a python script that has been converted to a bundled application using py2app. When invoked manually, it runs fine. However, under Mountain Lion, when I try to invoke it using launchd, I get the following error in the system log: Aug 8…
W. R. Wing
  • 69
  • 1
  • 4
4
votes
1 answer

Compile 64-bit Mac app with py2app

I've compiled a Python screen saver on my Mac OS X 10.7 using py2app 0.6.3, but when I open the screen saver in System Preferences i get the following message: You cannot use the Silly Balls screen saver on this computer. I've read that this…
Sindre Sorhus
  • 62,972
  • 39
  • 168
  • 232
4
votes
1 answer

Running compiled python (py2app) as administrator in Mac

After looking at Running compiled python (py2exe) as administrator in Vista I was wondering if there's an easy way to get the Mac Authentication dialog in Python (specifically py2app) I know mac has the built in Authentication services too…
Parker
  • 8,539
  • 10
  • 69
  • 98
4
votes
5 answers

How to force py2app to run app in 32-bit mode

I am trying to build an app bundle with py2app on Mac OS X 10.6. The app uses some libraries which are only compiled for 32-bit, so when the app is run there is an ImportError "no appropriate 64-bit architecture". How can I tell py2app to force the…
Luke McCarthy
  • 879
  • 2
  • 9
  • 21
4
votes
1 answer

How to compile Tkinter as an executable for MacOS?

I'm trying to compile a Tkinter app as an executable for MacOs. I tried to use py2app and pyinstaller. I almost succeed using py2app, but it returns the following error: Traceback The Info.plist file must have a PyRuntimeLocations array containing…
Y4RD13
  • 937
  • 1
  • 16
  • 42
4
votes
3 answers

How to create Mac application bundle for Python script via Python

I want to create a simple Mac application bundle which calls a simple Python script. I want to do that in Python. Is there an easy way? I tried to use py2app but that fails somehow, e.g.: from setuptools import setup setup(app=["foo.py"],…
Albert
  • 65,406
  • 61
  • 242
  • 386