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
0 answers

Exclude specific module files in py2app

I am creating an app and I'm using py2app so I can create a package I can distribute. Because I will be distributing my app as a download, I am trying to get its size down. My app uses matplotlib, a rather large module. I noticed that py2app…
Camon
  • 1,003
  • 1
  • 10
  • 22
3
votes
0 answers

py2app 'macholib' distribution not found

I am trying to package a python 2.7, tkinter app as a mac standalone using py2app. The app runs properly in alias mode, but generates the following error after building for deployment: Console output: "pkg_resources.DistributionNotFound: The…
Alizaybak
  • 327
  • 3
  • 8
3
votes
1 answer

Bundled Python app might fail when starting

I distributed a Python app for OSX machines thanks to py2app. Anytime I build the application, I use virtualenv. It manages all my dependencies too. Running the application on my laptop works fine. I tried on a couple of other machines too,…
Adrien Cadet
  • 1,311
  • 2
  • 15
  • 21
3
votes
2 answers

py2app with user packages

I am working on a little cross-platform python project. I want to associate file extensions with the program, so for OSX it seems the script must become an Application. py2app seems like the perfect tool for the job, but I am having a lot of trouble…
bytesized
  • 1,502
  • 13
  • 22
3
votes
1 answer

py2app crashes with PIL errors on earlier versions of OS X

A similar question was asked before by someone else: https://stackoverflow.com/questions/23600028/py2app-app-crashes-on-earlier-mac-os-x-versions I have an app that runs fine on my machine (OSX 10.9.4), but when I move it to another machine running…
joe
  • 31
  • 2
3
votes
1 answer

Launch multiple process of an app on mac osx

I am using python 2.7 on mac osx 10.9 for creating an app. This app takes file name as argument, and then opens the file, and keep monitoring the file for changes till file is closed. It is working fine for a single file. I used, py2app and platypus…
imp
  • 1,967
  • 2
  • 28
  • 40
3
votes
1 answer

py2app error:is a directory

When i execute the following command in terminal: python setup.py py2app it ends with : byte-compiling /Users/gebruiker/Documents/build/bdist.macosx-10.6-universal/python2.6- semi_standalone/app/temp/aem/ae.py to aem/ae.pyc error: Is a…
Lenlux
  • 41
  • 5
3
votes
1 answer

Python+OpenCV+py2app: numpy.core.multiarray failed to import

Environment: mac os x 10.7.5, xcode 4.2.1, python 2.7.5, opencv 2.4.7, py2app 0.7.3 I am trying to package a simple opencv based python script using py2app but the built app crashes with an error that says ImportError: numpy.core.multiarray failed…
samkhan13
  • 3,315
  • 2
  • 33
  • 54
3
votes
1 answer

Using py2app with tkinter and openpyxl and multiple files?

From searching around this is what my setup.py is right now. When I build my application using the -A mode (alias) then try to run it I get this error: In the console I find this error: 8/21/13 10:09:46.203 PM com.apple.launchd.peruser.501[249]:…
tylerjw
  • 802
  • 4
  • 14
  • 28
3
votes
2 answers

Is there any way to make a Python program that has the user use the terminal (NO GUI) into a stand-alone for Mac?

I finally got py2app to work, and my program was made. However, it won't open because it relies on the terminal and raw_input. I just found out py2app is more for GUI interfaces. All I want, is to turn the program into an application my users can…
user1159454
  • 3,267
  • 3
  • 19
  • 25
3
votes
1 answer

py2app isn't creating a standalone version of my app

I am using buildout to create a local python environment, and then using the local python to create my app with py2app. But, when I go into the .app file, specifically into Contents/MacOS/, there is just a shortcut to the system python. I want…
vik
  • 300
  • 1
  • 12
3
votes
0 answers

python pygame py2app application does not open

I am using py2app to convert a simple python pygame file into an app I have two files, the setup file and a python window file and I enter "python /path py2app" and get no errors, but when I open window.app I get the error box below: When I click…
will.fiset
  • 1,524
  • 1
  • 19
  • 29
3
votes
1 answer

py2app error: in find_needed_modules TypeError: 'NoneType' object has no attribute '__getitem__'

I have some troubles with py2app; for some reason I have always the same error for all scripts that I developed. At the moment I am using last MacPorts version and after two days of testing I cannot figure out what is wrong. One of the setup.py file…
opensw
  • 427
  • 5
  • 15
3
votes
1 answer

Packaging wxpython app with py2app changes GUI behavior

I'm getting some really strange behavior with a wxpython app I'm working on. When I run the application directly (e.g. python ./main.py), everything works fine. However, when I run the packaged version of the app (made with py2app), I get some odd…
Dane Larsen
  • 1,534
  • 2
  • 18
  • 27
3
votes
2 answers

Script to open in 32-bit mode?

I'm making a mac app with wxpython, and when I bundle it with py2app, I get the "no appropriate 64-bit architecture" message. This can be fixed by checking "open in 32-bit mode" in the Get Info panel, but this isn't very convenient for people using…
tkbx
  • 15,602
  • 32
  • 87
  • 122