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

Problemo running py2app

I'm trying to create a standalone test.app with py2app. When running python setup.py py2app I get the following messages: Modules not found (unconditional imports): * __builtin__.open (repr) * __main__.__requires__ (pdb) * _imp (pkg_resources) …
Eduardo
  • 1,235
  • 16
  • 27
2
votes
1 answer

Py2app - Add "from x import y" to setup.py

I am using py2app to create a standalone APP from a python script however I have run into a problem which I am hoping you could help with. The script relies heavily on tkinter, primarily the tkinter messagebox module, which is not imported with…
Ruthus99
  • 492
  • 2
  • 10
  • 25
2
votes
3 answers

How to find the directory of the .app that a python script is running from

I recently made a python script that goes through files in whatever directory it is placed in and renames them based on certain criteria. The script works perfectly, and I compiled the script into an OS X .app using py2app. This worked fine as well.…
Ruthus99
  • 492
  • 2
  • 10
  • 25
2
votes
0 answers

Py2app - error: [Errno 2] i: 'No such file or directory'

So before I faced this error, py2App was trolling about not finding a module named 'pygame' so I imported pygame inside setup.py and then recompiled it. It worked until i faced errno 2 which is about a file called ' i ' but there's no file with such…
user6256879
2
votes
0 answers

Identifying specific modules files used by Python script

I have a couple of general questions regarding Python and packaging scripts into installable applications. I have written a script that uses matplotlib, numpy, and scipy, the sizes of which near 160 MB altogether. The script is relatively simple,…
Nick C
  • 73
  • 1
  • 8
2
votes
1 answer

Use py2app with Matplotlib and its Tex formatting? Dvipng not found

I have an application put together in py2app on OS X 10.6 which uses Matplotlib to generate graphs. (Using py2app version 0.5.3 and matplotlib version 0.99.3, if it matters.) I have the Tex formatting option enabled: ... from matplotlib import…
Brad
  • 21
  • 2
2
votes
4 answers

Steps for how to install QT, PyQT, and PySide on OS X Snow Leopard

I've had some problems installing QT on Snow Leopard and I'm hoping that I can benefit from someone else who's been in this position. :) I'm assuming that I'll need to use a version of python that's not included with SL... be it from homebrew,…
Jeremy Cantrell
  • 26,392
  • 13
  • 55
  • 78
2
votes
0 answers

py2app and pandas giving RecursionError

I am trying to build a simple app using py2app and pandas, below are my app.py and setup.py files used to create the app using python setup.py py2app app.py import pandas as pd x = pd.Series([0, 1, 2]) print(x) setup.py from setuptools import…
sidpat
  • 735
  • 10
  • 26
2
votes
1 answer

py2app: how to include modules that will be loaded by __import__?

I have a Python application that loads python modules dynamically at run time (using __import__). The modules to load are in a package called 'plugins' (i.e. subfolder called plugins with __init__.py etc). All works fine running from the python…
Rabarberski
  • 23,854
  • 21
  • 74
  • 96
2
votes
2 answers

Relative imports and py2app?

Here's how my files are laid out: | setup.py + myapp | __init__.py | myapp.py | version.py (Hope that's clear... not too complicated, I don't think.) Here's what myapp.py contains: from fingui import Label from .version import…
ArtOfWarfare
  • 20,617
  • 19
  • 137
  • 193
2
votes
2 answers

Abort crash with .app made by py2app

TL/DR: My python app bundled with py2app keep crashing. I've coded a python3.5 app with pyqt5. It's working perfectly with python3 foo.py, and even when i'm making an app of it with py2app in alias mode. Btw python, pyqt... Have been installed with…
BoBibelo
  • 43
  • 4
2
votes
4 answers

Evt.TickCount() not found with Python2.6 on OSX 10.6.3

With Python2.6, the Evt module (from Carbon import Evt) does not have seem to respond to TickCount() on OSX. But Python2.5 is fine: from Carbon import Evt s = Evt.TickCount() On Python2.5 I get a returned integer. On Python2.6 I…
cybertoast
  • 1,343
  • 13
  • 19
2
votes
0 answers

Python - OSX - How to send a signal from an App bundled program?

I discovered that when I bundle my program with py2app I am not longer able to send signals to other apps. I want to send a signal to "myself" to tell my process to perform something when user clicks my app after it is already running. Here is some…
Dalen
  • 4,128
  • 1
  • 17
  • 35
2
votes
0 answers

Bizarre py2app issue: works as Python script and as app in alias mode, but not as frozen/bundled/deployment app

Basic problem: I have a Python script that's supposed to write a list of servers to an Excel file. When running it as a Python script, it works. When I run it in py2app's alias mode, it also works. However, when I build a redistributable…
JesseG
  • 238
  • 1
  • 9
2
votes
1 answer

Allowing python mac app to run sudo script

I'm making a small app that allows me through a status bar toggle to connect to a vpn and to run a small routing shell script. To build this app I used a library called rumps and py2app to generate the mac app. I made the following python script…
mandok
  • 492
  • 1
  • 5
  • 20