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
3
votes
0 answers

Mac OSX py2app multprocessing error: Unknown option --multiprocessing-fork

I am trying to generate a .app file from a Python-based GUI application developed in kivy. I am using multiprocessing to start separate processes or windows. It works well when i run it using python command but gives me the error below after…
3
votes
0 answers

py2app : AttributeError: module 'string' has no attribute 'maketrans'

I am trying to use py2app to generate a App. it constantly throws out this error "module 'string' has no attribute 'maketrans'. Python version: 3.54 File…
Kevin T
  • 43
  • 1
  • 5
3
votes
1 answer

Python SyntaxError: Non-UTF-8

I converted my Python script to a Mac.app (via py2app). I try to run it and get the following error: SyntaxError: Non-UTF-8 code starting with '\xcf' in file py2app/dist/myapp.app/Contents/MacOS/myapp on line 1, but no encoding declared; see…
DDiran
  • 533
  • 1
  • 6
  • 23
3
votes
1 answer

releasing Mac apps with wxPython and py2app that work on multiple versions of OS X

I periodically release a dmg for a Python/wxPython app with py2app, and it has been working great. I only have access to a Snow Leopard machine and I would like to ensure that my app works on as many versions of OS X as possible. In the past, I…
new name
  • 15,861
  • 19
  • 68
  • 114
3
votes
2 answers

Py2App PIL Image error when launching app

I am using py2app to convert a python file into an application and am running into this error: Traceback (most recent call last): File "/Users/MYUSER/PycharmProjects/webstuff/BotTest/dist/ws1.app/Contents/Resources/__boot__.py", line 87, in…
torhara
  • 101
  • 6
3
votes
2 answers

py2app built app displays `ERROR: pygame.macosx import FAILED` on other machines

Trying to build an app on the Mac using py2app. Got everything working fine on my machine, but when moving the app to another, it crashes and the console displays this error. ERROR: pygame.macosx import FAILED Anybody have a solution to this?
scum
  • 3,202
  • 1
  • 29
  • 27
3
votes
1 answer

An import error when using Py2app

I'm using py2app to pack up my python script as an .app document on mac but find an import error: Traceback (most recent call last): File "/Library/Frameworks/Python.framework/Versions/3.7/bin/py2applet", line 7, in from…
BEntos
  • 31
  • 1
  • 2
3
votes
3 answers

py2app error running app

macOS 10.12 I'm trying to package a python script (called getUrls_douyu.py) as a standalone application/executable without dependencies, so I'm using py2app. The problem is that when I try to run my app after building (from terminal with: open…
A__
  • 1,616
  • 2
  • 19
  • 33
3
votes
0 answers

py2app can't import pandas

I am trying to create a standalone app from a python 2.7 script I have run many times and so I followed a tutorial and created the setup file that looks like this: from setuptools import setup APP = ['scrapeMaps.py'] DATA_FILES =…
VincFort
  • 1,150
  • 12
  • 29
3
votes
0 answers

Where is libpython3.6.dylib?

I'm Mac user and I wanted to use py2app, but it couldn't find libpython3.6.dylib. I know that's because of anaconda because it use libpython3.6m.dylib. I want to fix it but I don't know where to find libpython3.6.dylib. Can you help me?
PsychoAce
  • 29
  • 1
  • 5
3
votes
1 answer

ValueError: character U+6573552f... Py2aap

I made a very simple program and I'm trying to export it to an app file. I'm currently using Python 3.6 and py2app to convert the py file into app. So I created the setup file: from setuptools import setup OPTIONS = {'iconfile':'sc.icns',} setup( …
Arturo.Mart
  • 63
  • 1
  • 6
3
votes
2 answers

OSX 10.11 with py2app?

I'm trying to build a standalone osx app with py2app that runs a gui I wrote. Since I wasn't able to do so I decided to check whether I was able to build a standalone osx app at all (a really basic one). So I used this tutorial:…
titusAdam
  • 779
  • 1
  • 16
  • 35
3
votes
2 answers

py2app on some Macs "Quit unexpectedly" on open

I have a python application which I am building using the latest py2app on OSX 10.11.3. The compiled application runs correctly on my Mac and on another Mac 10.10.5, but instantly crashes with "Quit unexpectedly" when opening on another Mac 10.11.3.…
speedyrazor
  • 3,127
  • 7
  • 33
  • 51
3
votes
0 answers

Py2app Error When Opening .app file

I've been trying to create an executable on Mac this morning. I have been following the instructions on the Py2app website and have successfully created the setup.py file and a .app file for my program named "Density.app" When I try to open the…
Rouxgrr
  • 35
  • 1
  • 7
3
votes
1 answer

App built with non-system Python using py2app in pyenv not runnable on other machines

My understanding was that as long as a non-Apple-default Python is employed to build, that the end-user need not install Python him/herself to execute a py2app-built app. In developing and testing the app in my own environment, I obviously have…
Pyderman
  • 14,809
  • 13
  • 61
  • 106