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

py2app setup.py usage question

Ok so I'm trying to use py2app to generate a distribution for my project. I'm still not sure I get the hang of it tho. So my setup.py looks like this: """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from…
Bogdan
  • 8,017
  • 6
  • 48
  • 64
4
votes
1 answer

py2app on Lion is creating empty applications without the python framework or resources

I have a python script which I have successfully packages with py2app prior to upgrading to Lion. Now when I run py2app it completes without errors, however the resulting .app is only 216K, and when executed it complains about missing objc (which is…
glob
  • 2,960
  • 17
  • 21
4
votes
2 answers

Py2App Fails MacOS Signing on liblzma.5.dylib

I have been upgrading a project from Python2.7 to Python3.8 while at the same time dealing with deployment/signing issues on MacOS Mojave and Catalina. The Python app is build using Py2app and then signed, but exactly one file is failing when…
Steve
  • 3,957
  • 2
  • 26
  • 50
4
votes
0 answers

py2app Error OSX El Capitan

In Alias mode, this fails. Here's what I'm running: OSX 10.11.1 (El Capitan) Python 3.5 via Anaconda (with the Jupyter 4.1.0 Notebook) py2app is the newest version (0.9) Here's what I'm doing: Create script and save as APP_OSX.py Enter the…
Dance Party
  • 3,459
  • 10
  • 42
  • 67
4
votes
1 answer

py2app app crashes with PyQt5

When I was building my python standalone app with command python setup.py py2app, the output package fails to start. However, if I build with hot link python setup.py py2app -A, it works fine. I used PyQt for my app, maybe that causes the…
BXIA
  • 61
  • 6
4
votes
2 answers

Setting up py2app to run selenium

I am having problems getting py2app to work with my python webscraper program that uses Selenium. I know that I have to include selenium in my packages, but nothing is working. I can't see an error message because the .app won't open. The imports in…
moglido
  • 158
  • 2
  • 13
4
votes
2 answers

Pygame2exe font related runtime error

i have received an error with pygame2exe that i can not resolve. i have looked into the font issue but was not able to resolve it using that method. C:\Users\Quentin\Documents\school\SDD\12\tictactoe\dist\tictactoemain1.exe\zipextimporter.py:82:…
4
votes
1 answer

py2app can't find installed and included package

I'm trying to build a .app with py2app that launches a Flask app, locally (at the moment neither hosting the app, nor using pyinstaller, are options). I'm building my setup.py with: python setup.py py2app --packages=jinja2,flask,message And my…
one_observation
  • 454
  • 5
  • 16
4
votes
3 answers

How to change the app name in OSX menubar in a pure-Python application bundle?

I am trying to create a pure-Python application bundle for a wxPython app. I created the .app directory with the files described in Apple docs, with an Info.plist file etc. The only difference between a "normal" app and this bundle is that the entry…
gyim
  • 8,803
  • 2
  • 19
  • 21
4
votes
1 answer

Compiled program with py2app, now unable to handle sys.argv[1] argument

I have a program that I can run as > python transactions.py file.csv That processes the provided CSV file. I want to compile it to an executable so my friends can use it without having to install all the packages it requres. py2app compiles the…
Tyler Wood
  • 1,947
  • 2
  • 19
  • 29
4
votes
3 answers

(PyQt4, py2app and pyinstaller crash when moving .app to another machine

So I am trying to build a Mac osx app from python using PyQt4 and either py2app or pyinstaller. Both these scripts build apps that work fine on my build machine ( running mavericks 10.9.5 ) but when I try to use it on another machine they both crash…
Andy MGF
  • 133
  • 1
  • 7
4
votes
2 answers

Py2App: Alias mode works, but deployment doesn't

I'm trying to deploy my python application using py2app. I created the setup file using : py2applet --make-setup MyApplication.py Then I did this to test it : python setup.py py2app -A That worked as well. My GUI program runs. When I try the last…
user3288944
  • 81
  • 2
  • 11
4
votes
1 answer

py2app prescripts

The py2app documentation mentions prescripts, being run by __boot__.py prior to the main python script. I couldn't find a way to easily specify any prescript on the setup.py file or build process. I did however manage to 'hack' __boot__.py manually…
gingerlime
  • 5,206
  • 4
  • 37
  • 66
4
votes
2 answers

Does py2app support python3?

I've developed an application in windows using python 3.1.1 with pyqt 4.6.. Just want to know that can i make it as a stand alone application in Mac OS using py2app?? Does py2app support python 3.1.1. I'm posting the question here bcoz. it's not…
Jeba
  • 963
  • 4
  • 12
  • 25
4
votes
1 answer

How to submit a py2app created program to the Mac app store?

I've developed a program named FMiner, it's a web scraping software base on PySide(webkit). I moved it to Mac OS X with Py2App, and made it to a dmg file with the script like this: os.system(r'macdeployqt fminer.app’) os.system(r'hdiutil create…
user2647646
  • 101
  • 5