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
11
votes
2 answers

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
  • 15,602
  • 32
  • 87
  • 122
10
votes
1 answer

py2app is not copying the Python.framework to the new app while using virutalenv

environment: MacOS X 10.7.2, system installed python 2.7.1, virtualenv 1.7.2, pyobjc 2.3, py2app 0.6.4+ I have a newly created virtualenv with pyobc 2.3 and py2app installed. When I run python setup.py py2app to create an app (for example in…
macdhuibh
  • 220
  • 1
  • 2
  • 9
8
votes
4 answers

SSLError in Requests when packaging as OS X .app

I'm developing an application for OS X. The application involves communicating with a server through python-requests, using a secure connection. I am able to run the python file I intend to package, and it succeeds with the SSL connection. However,…
trekkieyk
  • 345
  • 2
  • 12
8
votes
4 answers

How to have Python check if a file exists and create it if it doesn't?

How to have Python look and see if there is a file it needs and if there isn't create one? Basically I want Python to look for my file name KEEP-IMPORTANT.txt, but when I create my app using py2app it doesn't work because it doesn't have the file.…
user2093174
  • 93
  • 1
  • 1
  • 4
7
votes
4 answers

py2app picking up .git subdir of a package during build

We use py2app extensively at our facility to produce self contained .app packages for easy internal deployment without dependency issues. Something I noticed recently, and have no idea how it began, is that when building an .app, py2app started…
jdi
  • 90,542
  • 19
  • 167
  • 203
7
votes
1 answer

Creating a standalone macOS application with Python and py2app

I want to create a standalone app which can be used globally on other Macs other than mine. I followed the tutorial from this page: https://www.metachris.com/2015/11/create-standalone-mac-os-x-applications-with-python-and-py2app/ However after the…
philuix
  • 109
  • 1
  • 7
7
votes
3 answers

how do I use py2app?

Ok - here goes. I am trying to learn how to use py2app, so I created a simple python file; just hello_world.py #! /usr/bin/env python def main(): print "Hello" if __name__=="__main__": main() I followed a tutorial and did the…
Grahame Thomson
  • 201
  • 2
  • 3
  • 6
7
votes
1 answer

How to convert .py to .exe in Mac

I've developed an application in Python with PyQt on Mac OS and I want to make .exe file for windows OS. How can I do this? I've tried in Ubuntu but it doesn't work. I'll be grateful for some useful assistance.
Muhammad Azeem
  • 309
  • 1
  • 2
  • 9
7
votes
2 answers

py2app TypeError: dyld_find() got an unexpected keyword argument 'loader'

I'm having difficulty building my app using py2app. I can build it in alias mode without issue using this command: python3.4 setup.py py2app -A However when I try and build it using: python3.4 setup.py py2app I get the error message as per title…
SGB
  • 225
  • 2
  • 14
7
votes
2 answers

Bundle a Python app as a single file to support add-ons or extensions?

There are several utilities — all with different procedures, limitations, and target operating systems — for getting a Python package and all of its dependencies and turning them into a single binary program that is easy to ship to…
Brandon Rhodes
  • 83,755
  • 16
  • 106
  • 147
7
votes
1 answer

Maximum Recursion Depth Exceeded py2App

I've searched google pretty thoroughly, but can't find an answer to this. When I try to build with py2app I get this error: Would it possibly be caused by using a module such as 'gspread' in the code? Or because I'm using wxpython? The troubling…
user2229838
  • 199
  • 1
  • 12
7
votes
2 answers

py2app- What's the difference between the "includes" and "packages" variables?

I'm trying to package a Linux program for Mac OS X using py2app. My setup.py looks like this: "includes": "sip,numpy,cherrypy,cPickle,md5,logging,shutil,xml.sax,PyQt4,PyQt4.QtCore", "resources": "mnemosyne", "iconfile":…
Patrick Kenny
  • 4,515
  • 7
  • 47
  • 76
6
votes
4 answers

Problem using py2app with the lxml package

I am trying to use 'py2app' to generate a standalone application from some Python scripts. The Python uses the 'lxml' package, and I've found that I have to specify this explicitly in the setup.py file that 'py2app' uses. However, the resulting…
Charles Anderson
  • 19,321
  • 13
  • 57
  • 73
6
votes
2 answers

Python macOS builds run from Terminal but crash on Finder launch

My py2app build displays an error message with a Terminate button when the app is launched with a double-click. However, if I open it directly in Terminal then it works perfectly well. All of the following Terminal commands launch the app…
Cirrocumulus
  • 520
  • 3
  • 15
6
votes
0 answers

py2app tkinter 'Detected missing constraints' error

I am trying to package an existing python script that uses tk to choose a file and ask for a value into an app that includes all the dependencies. I am using MacOS 10.12.5, homebrew python 3.6.1 and py2app 0.14. The following works fine as a script,…
genomematt
  • 61
  • 4
1
2
3
41 42