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

how to include NSUserNotificationCenter in py2app

I am making an app in python 2.7 on mac osx 10.8.5 I want to show notification number of times, therefore using NSUserNotificationCenter. Notifications are coming while running code on eclipse. But, the issue is when I made app using py2app,…
imp
  • 1,967
  • 2
  • 28
  • 40
4
votes
0 answers

PY2APP- How to convert semi-standalone app to 100% standalone

I am developing an app using py2app. In app deveoped by py2app, Its Frameworks is empty, and in MacOS gives the shortcut to python of /user/bin. So, it does not contains python of itself. When I run this app on other system in which python is not…
nanda4
  • 75
  • 1
  • 6
4
votes
0 answers

Using py2app to deploy an application using opencv for Mac

I finished scripting a a computer vision algorithm in python that rely heavily on opencv. I want to be able to deploy a standalone application to work under Mac OS that you don't have to preinstall any dependencies for. After hours of searching the…
4
votes
1 answer

py2app dropping wxpython (Snow Leopard)

After upgrading to Snow Leopard, I'm having trouble building my application. It looks like py2app is building and copying over wxPython, but when I run from the buld app, it can't find wx.
Norman
  • 581
  • 1
  • 5
  • 10
4
votes
2 answers

Why does a py2app .app take longer to launch than the same python program?

I'm not sure my question / title is phrased quite right. I'm working on OSX 10.6 and python 2.7.1. I've used setuptools and py2app to create a .app, which I can run from the finder or from the terminal using open. One of my goals for the program…
Shavais
  • 2,476
  • 1
  • 27
  • 25
4
votes
2 answers

py2app error for opencv/macports app. How to compile opencv with headerpad_max_install_names flag?

I am trying to build an app using opencv and pygame. These two libs have been installed with macports. I also installed py2app in the macports python. I am running a simple py2app script from setuptools import setup setup( app = [ …
luc
  • 41,928
  • 25
  • 127
  • 172
3
votes
1 answer

py2app'ed application runs properly in alias mode but not when bundled

I have a pyobjc app running in a 32-bit only python build that makes use of the gevent library. Everything works great in py2app'ed alias mode, but once I build an app bundle, the gevent module can't find the httplib library, even if it was bundled…
maranas
  • 1,396
  • 1
  • 12
  • 21
3
votes
0 answers

py2app with pyenv - A Python runtime not could be located

Problem I use pyenv. I have a virtual environment activated in my working directory (with Python version 3.10.0). Following the tutorial here, after doing the command python setup.py py2app -A and trying to run my application for the first time…
Vladimir Fokow
  • 3,728
  • 2
  • 5
  • 27
3
votes
0 answers

How to use fitz (PyMuPDF) with py2app or pyinstaller [ModuleNotFoundError]?

I want to convert my python script which contains a pdf to image converter to a .app file on MacOS, and be able to run this on a different machine. I have tried both pyinstaller and py2app and get the following error message: Traceback (most recent…
Bryan_Koh
  • 31
  • 1
3
votes
0 answers

Displaying tooltip in standalone program

I have a tkinter window that displays a tooltip, when i am over a button with the mouse. Below is the code for that: import tkinter as tk from tkmacosx import Button class ToolTip(object): def __init__(self, widget, text, x, y, dx, dy): …
Mazze
  • 383
  • 3
  • 13
3
votes
0 answers

Error running python 3.9 Cython p2app PyQt6 Hello World on macOS 11.4

I'm using python 3.9 to compile a simple Qt6 "Hello World" application in Cython and py2app. It works perfectly fine under CPython 3.9. It compiles properly but fails to run in Cython. Here are the project files: testLoad.pyx : import sys from…
3
votes
1 answer

Python standalone application failing when launched (macOS)

So I have made this simple Password Manager in Python 3.8 using PyQt5, and I have been using the 'py2app' module to create a standalone application of this program. However, when I execute my app (both from the terminal and the finder), I get a…
Dugbug
  • 454
  • 2
  • 11
3
votes
1 answer

How do I add an entire directory to py2app setup file?

Right now I have some example files included in the setup.py file, but what do I do if I want to add the entire directory to DATA_FILES? And my script creates files aswell, so they have to be accessible and be stored together with the others. (I…
kriwet
  • 43
  • 3
3
votes
1 answer

py2app dependency problem

i will create a OS X Package using py2app. It is a Game using the FIFE-Engine. If i launch the resulting .app Bundle on another Mac i get this error Message: Failed to load FIFE: dlopen([...]/Contents/Resources/fife/engine/python/fife/_fife.so, 2):…
H0ff1
  • 31
  • 3
3
votes
0 answers

Recognizing nested files within packages using Py2app

I have a large Python project that I am working to make to an app, using Py2app. However, my main file includes a large number of imports, which cannot all be recognized by Py2app. Here is an example of the scale of this: from…