py2app

Launch multiple process of an app on mac osx

六月ゝ 毕业季﹏ 提交于 2019-12-10 19:47:44
问题 I am using python 2.7 on mac osx 10.9 for creating an app. This app takes file name as argument, and then opens the file, and keep monitoring the file for changes till file is closed. It is working fine for a single file. I used, py2app and platypus for converting python code .py file to an app. Limitation of it is, once an instance(process) of an app is started(by clicking on any file to open), file opens. But, simultaneously, I am not able to open two files at a time i.e. to launch to

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

南楼画角 提交于 2019-12-10 17:45:35
问题 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 point (CFBundleExecutable) is a script which starts with the following line: #!/usr/bin/env python2.5 Everything works fine except that the application name in the OSX menubar is still "Python" although I have set the CFBundleName in Info.plist (I

how to include NSUserNotificationCenter in py2app

有些话、适合烂在心里 提交于 2019-12-10 17:29:05
问题 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, Notifications are not coming . Moreover, the default page of error of open console and Terminate is coming. Please suggest some way, how to include Notification in dist generated by py2app, so that It will work on any other machine. My setup.py is from

py2app problems, getting errors

跟風遠走 提交于 2019-12-10 12:23:56
问题 I'm trying to test out the functionality of py2app, for creating standalone mac applications. I generated a setup file for my test code, called 'hello.py'. """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['hello.py'] DATA_FILES = [] OPTIONS = {'argv_emulation': True} setup( app=APP, data_files=DATA_FILES, options={'py2app': OPTIONS}, setup_requires=['py2app'], ) And I'm trying to make a simple app that just says hello

Where does stuff “print” to when not running application from terminal?

 ̄綄美尐妖づ 提交于 2019-12-10 11:16:42
问题 So I have a python application that is being bundled into a .app using py2app. I have some debugging print statements in there that would normally print to stdout if I was running the code in the terminal. If I just open the bundled .app, obviously I don't see any of this output. Is any of this actually being printed somewhere even though I don't see it? 回答1: It goes to standard output (so in the command line, if you are opening it in command line, or eg. to the log, if you are running it

ValueError: character U+6573552f… Py2aap

主宰稳场 提交于 2019-12-07 15:24:42
问题 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( app = ['hello.py'], options = { 'py2app': OPTIONS}, setup_requires = ['py2app'] ) and then in the terminal I enter: python3 hello_setup.py py2app After some seconds it creates the dist folder and in it there is the hello.app, the problem is when I

Python: Making a standalone executable file on MacOS with py2app

早过忘川 提交于 2019-12-07 07:14:54
问题 I have an application in a python script my_app.py and want to make a standalone executable out of it on a MacOS (10.14). Following the video-tutorial here, I entered sequentially the following commmands: pip install virtualenv virtualenv venv --system-site-packages source venv/bin/activate pip install py2app cd /path/to/my_app.py python setup.py py2app -A with the following setup.py file: from setuptools import setup APP = ["my_app.py"] DATA_FILES = [] OPTIONS = { "argv_emulation": True,

py2app picking up .git subdir of a package during build

China☆狼群 提交于 2019-12-07 01:23:07
问题 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 including the .git directory of our main library. commonLib, for instance, is our root python library package, which is a git repo. Under this package are the various subpackages such as database, utility, etc. commonLib/ |- .git/ # because commonLib

Py2App Can't find standard modules

≡放荡痞女 提交于 2019-12-06 10:00:21
问题 I've created an app using py2app, which works fine, but if I zip/unzip it, the newly unzipped version can't access standard python modules like traceback, or os. The manpage for zip claims that it preserves resource forks, and I've seen other applications packaged this way (I need to be able to put this in a .zip file). How do I fix this? 回答1: This is caused by building a semi-standalone version that contains symlinks to the natively installed files and as you say, the links are lost when

ValueError: character U+6573552f… Py2aap

狂风中的少年 提交于 2019-12-06 02:27:22
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( app = ['hello.py'], options = { 'py2app': OPTIONS}, setup_requires = ['py2app'] ) and then in the terminal I enter: python3 hello_setup.py py2app After some seconds it creates the dist folder and in it there is the hello.app, the problem is when I run it, it appears a window that says " hello error " then I open the .exec file inside the application