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

Python py2app and pillow error: Mach-O header is too large

I'm unable to use py2app to build a python application which contains the pillow package. I'm using: Mac OSX El Capitan (10.11.16) Python 3.7.3 (Installed via Homebrew) Pillow 6.0.0 py2app 0.19 macholib 1.11 The script works fine when called from…
jmrq
  • 63
  • 7
2
votes
0 answers

Lots of system errors when trying to make tkinter script into app

I used tkinter to create a GUI for some scripts in python. I would like to turn my scripts into a single app file, but I have run into multiple problems. I am new to .app development, and would appreciate any help! I followed the steps in the…
Melinda
  • 21
  • 1
2
votes
1 answer

stuck with first steps with py2app on os x with ActivePython

I have a simple python program I want to turn into an app. py2app is what I need, according to my research. I'm using ActivePython 2.7 on OS X (snow leopard). via the PyPM tool (package manager) I have installed a package called py2app. The…
Tim Richardson
  • 6,608
  • 6
  • 44
  • 71
2
votes
0 answers

ValueError: '/anaconda3/lib/libpython3.6.dylib' does not exist

I'm working on creating an app from Python code using py2app. Everything goes well until I run setup.py, then at the very end of it running I get this message: "ValueError: ValueError: '/anaconda3/lib/libpython3.6.dylib' does not exist It turns out…
2
votes
1 answer

Python virtual Env, Py2app build, error with wxpython

I have created a virtual env on MacOS 10.14, with python 2.7, pip installed py2app, wxpython, etc, ran the Py2app command: sudo python setup.py py2app Upon running the app, I see the below error: (ENV) kevins-MacBook-Pro:Audio_Export_App kevin$…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
2
votes
1 answer

Tkinter GUI buttons become invisible after creating app using Py2App

I built a small GUI using Tkinter. The GUI features, among some other elements, three buttons. These buttons serve to open a dystem dialog and select certain data-files etc. One of the three buttons is a 'Go' button that runs the underlying…
Kaz Vermeer
  • 145
  • 1
  • 9
2
votes
1 answer

Py2app build runs perfectly when run from command line or the executable in the pkg, but not when the app is double clicked

I have a program that I'm trying to distribute with py2app. When I run the program from the command line, it works without any problems. It also works if I go into the package that py2app creates and find the exec inside the package contents and run…
justin
  • 1,147
  • 1
  • 8
  • 17
2
votes
1 answer

py2App working in alias mode and not working in the final distribution file

So I finally have an app working while in py2app alias mode. I can open the file and it works well. After I remove the build & dist files and run python setup.py py2app, the package receives an error. Why would it be doing this? magnolia.py: …
2
votes
0 answers

brewed python application bundled with py2app crashes with Illegal Instruction 4

I want to build and deploy a hello world using a homebrewed python + py2app. Build machine: MacOS X 10.12.6 Target machine: MacOS X 10.11 Following many posts I modified the python.rb formula by setting inside MACOSX_DEPLOYMENT_TARGET=10.10 to…
Eurydice
  • 8,001
  • 4
  • 24
  • 37
2
votes
1 answer

Python raw_input causing EOFError after creating app with py2app

I have written a small script that helps me solve scrabble and word-warp problems. It works fine when I run it from Mac OS X terminal. I would like to share the script with my friends as a standalone Mac app. Hence I used py2app for this, but the…
2
votes
2 answers

how to fix distutils.errors.DistutilsError on py2app?

I recently tried to use py2app and I have a simple app named test.py. everything is fine, until I type 'python3 setup.py py2app'. here is the error message: Download error on https://pypi.python.org/simple/py2app/: [SSL: …
user8434946
2
votes
2 answers

What is the proper way to make a Python frozen binaries for OSX that can accept arguments?

I've made a .app bundle from a python script using py2app. The issue is twofold: Argument emulation doesn't appear to work correctly because it doesn't accept the arguments that work on the original python script. The .app bundle format needs to be…
Ian M.
  • 31
  • 1
  • 3
2
votes
0 answers

Py2app ignoring local packages

I currently have the following setup.py: https://github.com/Pext/Pext/blob/30384647024ad3474d2c955d642ad6f7f745ffb5/setup.py I am trying to build a .app of this, but I py2app seems to ignore the listed packages. Noticeably incorrect is the following…
2
votes
0 answers

py2app app works only if launched from terminal

I have just packaged my app (OSX 10.12.15 - python3.6 - py2app 0.12) and my application works only if launched from the terminal with MyApp.app/Contents/MacOS/MyApp. If I click on the app in the GUI, it doesn't start. This is my setup.py: from…
Fabio Marzocca
  • 1,573
  • 16
  • 36
2
votes
1 answer

Help building a mac application from python using py2app?

I have a Tkinter app written in python, and I want to make "native" (easy to run) mac and windows executables of it. I've successfully built a windows .exe using py2exe, but the equivalent process with py2app isn't working. Here's my setup.py: from…
jefdaj
  • 2,025
  • 2
  • 21
  • 33