py2app

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

泪湿孤枕 提交于 2019-12-12 20:20:02
问题 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 get: AttributeError: 'module' object has no attribute 'TickCount' This is on Snow Leopard. Is there some library that needs to be updated on OSX to allow for TickCount() to work? I'm actually having this problem due to using py2app. Update for Barry's answer: The

Slim down Python wxPython OS X app built with py2app?

一世执手 提交于 2019-12-12 09:16:06
问题 I have just made a small little app of a Python wxPython script with py2app. Everything worked as advertised, but the app is pretty big in size. Is there any way to optimize py2app to make the app smaller in size? 回答1: This is a workaround. It will depend on which OS you want to target. Python and wxPython are bundled with every Mac OS X installation (at least starting with Leopard, if I recall correctly) What you might try, is to add the --alias compilation option. According to the py2app

Py2app with native Python 2.6

你说的曾经没有我的故事 提交于 2019-12-12 05:00:09
问题 I have a python application primarily dependent on matplotlib, tkinter, numpy and scipy I have been distributing for multiple operating systems. I build these on top of the python.org version of python 2.6. For mac, I have had good success in the past with py2app and pyinstaller to build standalone versions of my application. Recently, however, I have included functions that require patsy, pandas and igraph and have had to move to the mac distributed version of python 2.6 in order to get

Py2app fails with scrapy

◇◆丶佛笑我妖孽 提交于 2019-12-11 19:02:10
问题 If been trying to create a standalone version of my project. I've been able to create the setup file and the alias app with py2app with no problems. Running the alias app works without problems. However, when creating the independent file the app does not run any more. First of all the error i receive upon opening the app is as follows: File "scrapy/__init__.pyc", line 10, in <module> File "pkgutil.pyc", line 616, in get_data File "importlib/util.pyc", line 83, in find_spec AttributeError:

How to pass data to a file while Package installation on mac

自古美人都是妖i 提交于 2019-12-11 13:19:07
问题 I am making an app in python. Using python 2.7 on mac osx 10.8.5. I converted python code into an app using py2app. Then I converted myapp.app into package myapp.pkg using Packages. I am using a configuration file which I kept in Contents-->Resources-->config.cfg. config.cfg file contains data which is necessary for running of app. My issue is how to pass serverIP and serverPort to config.cfg file while installing myapp through myapp.pkg i.e. through Packages . My config.cfg file is like key

py2app throws [errno 35] Resource Not Available during unconditional imports

試著忘記壹切 提交于 2019-12-11 13:15:29
问题 I'm using python 2.7 installed via macports, pyobjc, cocoa and notably scipy (via FlowCytometryTools) with py2app to create a small mac application. Py2app's setup.py run with sudo python setup.py py2app completes nicely with -A for testing, but is unable to complete when running without that parameter to create a full .app build. The build process will get a variable distance through the unconditional imports and then give error: [Errno 35] Resource temporarily unavailable and immediately

pygame.error: File is not a Windows BMP file

≡放荡痞女 提交于 2019-12-11 11:33:23
问题 Running: Mac OSX mountain Lion 10.8.3 Python 2.7.2 Pygame 1.9.2 I have a simple python pygame program that displays an image on the screen, this works great when I run it in my IDE. The problem comes when try to make it a standalone program using py2app I get the Error: pygame.error: File is not a Windows BMP file I did some research and found out that it is probably an error with pygame or SDL_image.framework so I reinstalled both and I get the same error. However, when I do use a BMP image

python 3: py2app “Modules not found (unconditional imports)”

China☆狼群 提交于 2019-12-11 03:33:00
问题 I am building a standalone python3 app for a friend that has no knowledge about code whatsoever. For this app I use multiple modules including tkinter and openpyxl . I use py2app to make my app. Even though the GUI part of the program works, the methods using the openpyxl module do not. As my terminal indicates: Modules not found (unconditional imports): * StringIO.StringIO (pkg_resources._vendor.six) * _gdbm (dbm.gnu) * cjkwrap (texttable) * com (com.sun.jna) * com.jna (com.sun) * com.sun

Using py2app with tkinter and openpyxl and multiple files?

雨燕双飞 提交于 2019-12-11 01:09:08
问题 From searching around this is what my setup.py is right now. When I build my application using the -A mode (alias) then try to run it I get this error: In the console I find this error: 8/21/13 10:09:46.203 PM com.apple.launchd.peruser.501[249]: ([0x0-0x150d50c].org.pythonmac.unspecified.notebook_tracker[24469]) Exited with code: 255 My setup.py code: """ This is a setup.py script generated by py2applet Usage: python setup.py py2app """ from setuptools import setup APP = ['notebook_tracker

Python+OpenCV+py2app: numpy.core.multiarray failed to import

不羁的心 提交于 2019-12-10 20:16:00
问题 Environment: mac os x 10.7.5, xcode 4.2.1, python 2.7.5, opencv 2.4.7, py2app 0.7.3 I am trying to package a simple opencv based python script using py2app but the built app crashes with an error that says ImportError: numpy.core.multiarray failed to import here is the python script called demoApp.py import cv2 capture = cv2.VideoCapture(0) winName = 'eyeDetection' cv2.namedWindow(winName) # Press esc key to exit keyPressed = -1 while(keyPressed != 27): # ord('esc') is 27 unused_retval, img0