py2app

Py2App PIL Image error when launching app

偶尔善良 提交于 2020-08-24 01:47:07
问题 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 _recipes_pil_prescript import Image ModuleNotFoundError: No module named 'Image' During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/Users/MYUSER/PycharmProjects/webstuff/BotTest/dist/ws1.app

Py2App Placing PIL Dylibs in Zip file

五迷三道 提交于 2020-08-09 13:32:12
问题 I have an python application that uses the Python Imaging Library (PIL) and is packaged using Py2app. Numpy dylibs are found in the app contents directory: demo.app/Contents/Resources/lib/python3.8/numpy/.dylibs/libgcc_s.1.dylib where they can be searched for and signed but PIP dylibs are inside a python3.8.zip file demo.app/Contents/Resources/lib/python3.zip -> ./PIL/.dylibs/libfreetype.6.dylib where one would have to unzip, sign, and rezip them. Why does this happen and how do I prevent it

I'm trying to build an stand alone application of my python code by using py2app but there's a error when I open the app

爱⌒轻易说出口 提交于 2020-08-05 12:06:28
问题 I've not yet converted the app to standalone. so I've made my dist and built and my app is showing in the finder but when i open it and error comes error the error says: survey(name of application) has encountered a fatal error, and will now terminate. I created a virtual environment in python3 in my iterm2 and it built the app. I followed this link to convert my python script to MacOS application this is what i did in my iterm2 terminal python3 -m venv final source final/bin/activate after

I'm trying to build an stand alone application of my python code by using py2app but there's a error when I open the app

感情迁移 提交于 2020-08-05 12:06:06
问题 I've not yet converted the app to standalone. so I've made my dist and built and my app is showing in the finder but when i open it and error comes error the error says: survey(name of application) has encountered a fatal error, and will now terminate. I created a virtual environment in python3 in my iterm2 and it built the app. I followed this link to convert my python script to MacOS application this is what i did in my iterm2 terminal python3 -m venv final source final/bin/activate after

How to convert python code (.py) to an app on mac osx

孤者浪人 提交于 2020-07-22 15:00:34
问题 I am making an app in python, which is able to open different file types. This code is running fine on eclipse while passing filename which I want to open and configuration file as arguments respectively selectedFileName=(sys.argv)[1] cfgFile=(sys.argv)[2] . Now I converted this into application by using py2app. So, the issue is how to deal with arguments, as different file types need to be open through app and this app also needs configuration file while processing. Through py2app, in

How to convert python code (.py) to an app on mac osx

泪湿孤枕 提交于 2020-07-22 14:56:48
问题 I am making an app in python, which is able to open different file types. This code is running fine on eclipse while passing filename which I want to open and configuration file as arguments respectively selectedFileName=(sys.argv)[1] cfgFile=(sys.argv)[2] . Now I converted this into application by using py2app. So, the issue is how to deal with arguments, as different file types need to be open through app and this app also needs configuration file while processing. Through py2app, in

There is something wrong with my building app with py2app

一世执手 提交于 2020-05-16 03:00:07
问题 It works well with $ python setup.py py2app -A , but not with $ python setup.py py2app . What should I do to solve the problem? Could you help me? The following is what's in my terminal: (/Users/zhaotong/anaconda) zhaotongdeMacBook-Pro-2:function zhaotong$ python setup.py py2app running py2app creating /Users/zhaotong/Desktop/function/build/bdist.macosx-10.7-x86_64/python2.7-standalone/app creating /Users/zhaotong/Desktop/function/build/bdist.macosx-10.7-x86_64/python2.7-standalone/app

py2app ImportError with watchdog

生来就可爱ヽ(ⅴ<●) 提交于 2020-04-30 09:19:47
问题 I am attempting to use py2app to bundle a small Python app that I've made in Python 2.7 on Mac. My app uses the Watchdog library, which is imported at the top of my main file: from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler When running my program, these import statements work just fine, and the program works as expected. However, after running py2app, launching the bundled application generates the following error: ImportError: No module named

py2app ImportError with watchdog

蹲街弑〆低调 提交于 2020-04-30 09:17:12
问题 I am attempting to use py2app to bundle a small Python app that I've made in Python 2.7 on Mac. My app uses the Watchdog library, which is imported at the top of my main file: from watchdog.observers import Observer from watchdog.events import FileSystemEventHandler When running my program, these import statements work just fine, and the program works as expected. However, after running py2app, launching the bundled application generates the following error: ImportError: No module named

Failed making a standalone python/Qt application with cx_freeze (or Py2App) on Mac

▼魔方 西西 提交于 2020-02-07 04:23:04
问题 I am having trouble making a standalone application for Mac from a python Qt-based program, both when using cx_freeze and Py2App. (note that i did it successfully on Windows with cx_freeze). Actually, the 'PyQt4' example provided with cx_freeze does not run properly on Mac . Is anyone able to "build" and run this example on a Mac?! I couldn't find any information on this seemingly basic problem on forums. Indeed, let us build first: ~$ cd cx_Freeze-4.3.3/cx_Freeze/samples/PyQt4/ PyQt4$ ls