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

How to call 2to3 before run py2app

I have a setup.py that use py2app, and I want to run 2to3 to convert python script to Python 3 compatible before build the app. I used option setup(use_2to3=True), but it did not call 2to3. So now I use a Makefile to work around this problem. Any…
user326503
0
votes
5 answers

Mac OS X app/service and stdin?

I'm debugging a service I'm developing, which basically will open my .app and pass it some data to stdin. But it doesn't seem like it's possible to something like: open -a myapp.app < foo_in.txt Is it possible to pass stuff to an .app's stdin at…
pojo
  • 5,892
  • 9
  • 35
  • 47
0
votes
1 answer

Deployment issues of Psycopg2 Python App

I have created an application in Python that is tested and runs perfectly on my computer (Mac OSX 10.8.3 Python2.7.3 Postgresql9.2.4 Psycopg2-2.5). The app is compiled using py2app, and I can see that the build successfully included all…
LouisL
  • 3
  • 1
0
votes
1 answer

Embedding an executable within a py2app application

I have a python script that I want to package as a Mac application bundle with py2app. That script calls a CLI executable. How do I embed that executable in the application bundle? I tried to edit setup.py in order to include it as a Resource but in…
mouviciel
  • 66,855
  • 13
  • 106
  • 140
0
votes
1 answer

Py2app with native Python 2.6

I have a python application primarily dependent on matplotlib, tkinter, numpy and scipy I have been distributing for multiple operating systems. I build these on top of the python.org version of python 2.6. For mac, I have had good success in the…
nateS
  • 65
  • 6
0
votes
1 answer

py2app import breaks cython

I'm using the basic "hello world" demo straight out of the Cython documentation. It works fine unless I try to import py2app in the same setup.py file: import py2app from distutils.core import setup from distutils.extension import Extension from…
jab
  • 4,053
  • 3
  • 33
  • 40
0
votes
1 answer

extract pyc from Application bundle

Is there anyway the pyc file can be extracted from an Application bundle? I'm referring to an application bundle that was created by using py2app on python code.
user277465
0
votes
1 answer

App built with py2app terminates at OAuth request line

In short, I have a python module that I'm building into an app with py2app. When I run the app in distribution (not alias), it hangs at this line resp, content = client.request(request_token_url, "GET") It runs fine when using the alias.…
beastliest
  • 21
  • 1
0
votes
2 answers

Add py2app application to OSX login items

I've created a very simple script that parses a webpage, finds an image, and downloads it to the machine. This script also checks every 5 minutes to see if the picture has changed, and if it has, it downloads the new one. So far, I've been…
James Rasmussen
  • 651
  • 1
  • 9
  • 22
0
votes
1 answer

Python py2app standalone application using nibabel

I'm trying to create an OSx app using py2app. I used the py2app script without a problem: py2applet --make-setup UltraProcCMD.py python setup.py py2app This app works fine when I don't use the nibabel package but when I do I get the following…
Ben
  • 11
  • 3
0
votes
1 answer

Bundle wxPython App for Mac App Store without ppc code (binary)

I have delevloped (for the past 7 years) a wxPython App that would like to distribute thru the Mac App Store. I am using Python2.7 and wxPython2.9.4 (cocoa). The App is the bundled using py2app. All looks good so far. The problem is that Application…
0
votes
0 answers

py2app in virtualenv: 'NoneType' object has no attribute '__getitem__'

I'm trying to build an application with py2app using a virtual python environment. I have python 2.7.3. I can build the app fine using python 2.6 (which I have py2app on), but not with my 2.7.3 virtualenv (because I can't install py2app in my 2.7.3…
tkbx
  • 15,602
  • 32
  • 87
  • 122
0
votes
1 answer

Py2app keyflag error CFLAGS

What I'm trying to do is compile a program I've written in Python 2.7, using pygame, into a standalone app for Mac computers. I'm working on a PC running Windows 8 with no access to a mac, so tweaking the process has been difficult. When I run the…
0
votes
1 answer

Error when processing unicode string

I've got a wxPython app that I made into an app using py2app. It's worked fine for a while, and without changing anything that I know of, I suddenly get UnicodeDecodeError: 'ascii' codec can't decode byte 0xcc in position 2: ordinal not in…
tkbx
  • 15,602
  • 32
  • 87
  • 122
0
votes
1 answer

py2app: syntax error when running generated app

I have an app which is running ok when started from Python. I would like to use pyapp for packaging it on MAC OS 10.6.8. The app is a small embedded webapp running with bottle microframework. It has been packages successfully on windows with…
luc
  • 41,928
  • 25
  • 127
  • 172