[Pythonmac-SIG] OS X 10.7 Lion, py2app 0.6.3, argv-emulation, wxPython
In 10.7, some functionality of the Carbon libraries is only available in 32-bit mode, but py2app created binaries run in 64-bit mode on Lion. In my case wx and py2app's argv-emulation feature needed Carbon functionality that isn't available in 64-bit mode, so I did work around this by replacing the binaries with 32-bit ones after the app was created. First, I used the official python.org Python 2.7 x86-64/i386 installer. Then I built my app with the 32-bit python: python2.7-32 setup.py p2app Then I replaced the binaries in the app: cp /Library/Python/2.7/site-packages/py2app-0.6.3-py2.7.egg/py2app/apptemplate/prebuilt/main-i386 /PATH/TO/APP/APPNAME.app/Contents/MacOS/APPNAME cp /Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-32 /PATH/TO/APP/APPNAME.app/Contents/MacOS/python Just thought I'd share my findings. Regards -- Florian Höch ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
[Pythonmac-SIG] Python on iphone for developers
Hi, Sorry if misplaced. I am trying to find some information Is there a port of Python to iPhone? I want to be able to check-out from SVN, edit and run some Python server code now and then. I know iOS is a closed ecosystem, however as Developer one can build and install virtually anything on their iPhone. All you need is source code compatible with iOS (preferably 2.7) Thank you, Alex ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Pythonmac-SIG Digest, Vol 100, Issue 1
Hi Mike, See if this will help: 1. Grab the latest stable release from the repository via svn: % svn checkout http://svn.red-bean.com/pyobjc/trunk This will locate the source tree in the current directory under a new subdirectory 'trunk' 2. cd into trunk/pyobjc 3. Make a backup copy of 02-develop-all.sh 4. Edit 02-develop-all.sh and substitute 'python' for 'python2.5' (or the absolute path to your custom install of python) 5. Run the shell script 02-develop-all.sh (I believe that by default pyobjc is compiled with debugging symbols enabled) 6. When the script has completed, add the path to the pyobjc trunk's subdirectory pyobjc to PYTHONPATH: export PYTHONPATH=$PYTHONPATH:/path/to/pyobjc/trunk/pyobjc (At least this is how I got a downloaded copy of pyobjc to work for me with a custom build of python ...) Andrew On Tue, Aug 2, 2011 at 3:00 AM, pythonmac-sig-requ...@python.org wrote: Send Pythonmac-SIG mailing list submissions to pythonmac-sig@python.org To subscribe or unsubscribe via the World Wide Web, visit http://mail.python.org/mailman/listinfo/pythonmac-sig or, via email, send a message with subject or body 'help' to pythonmac-sig-requ...@python.org You can reach the person managing the list at pythonmac-sig-ow...@python.org When replying, please edit your Subject line so it is more specific than Re: Contents of Pythonmac-SIG digest... Today's Topics: 1. Still Unable to Install PyObjC (Mike) -- Forwarded message -- From: Mike smartmi...@gmail.com To: pythonmac-sig@python.org Date: Mon, 1 Aug 2011 17:23:43 -0400 Subject: [Pythonmac-SIG] Still Unable to Install PyObjC Hi, I posted about a month ago and am giving this another shot. Trying to ultimately get my app built with Py2app on my Mac (built this on a different Mac running Leopard in the past). Due to problems I had with Python 2.6, I installed Python 2.7 from python.org. I am now trying to install PyObjC which is needed for my application. I have tried using both easy_install and checking out the source and running setup.py. Either way, I get the following error: running install running bdist_egg running egg_info writing requirements to pyobjc.egg-info/requires.txt writing pyobjc.egg-info/PKG-INFO writing top-level names to pyobjc.egg-info/top_level.txt writing dependency_links to pyobjc.egg-info/dependency_links.txt writing manifest file 'pyobjc.egg-info/SOURCES.txt' installing library code to build/bdist.macosx-10.3-fat/egg running install_lib warning: install_lib: 'build/lib' does not exist -- no Python modules to install creating build/bdist.macosx-10.3-fat/egg creating build/bdist.macosx-10.3-fat/egg/EGG-INFO copying pyobjc.egg-info/PKG-INFO - build/bdist.macosx-10.3-fat/egg/EGG-INFO copying pyobjc.egg-info/SOURCES.txt - build/bdist.macosx-10.3-fat/egg/EGG-INFO copying pyobjc.egg-info/dependency_links.txt - build/bdist.macosx-10.3-fat/egg/EGG-INFO copying pyobjc.egg-info/requires.txt - build/bdist.macosx-10.3-fat/egg/EGG-INFO copying pyobjc.egg-info/top_level.txt - build/bdist.macosx-10.3-fat/egg/EGG-INFO copying pyobjc.egg-info/zip-safe - build/bdist.macosx-10.3-fat/egg/EGG-INFO creating 'dist/pyobjc-2.4a0-py2.7.egg' and adding 'build/bdist.macosx-10.3-fat/egg' to it removing 'build/bdist.macosx-10.3-fat/egg' (and everything under it) Processing pyobjc-2.4a0-py2.7.egg removing '/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyobjc-2.4a0-py2.7.egg' (and everything under it) creating /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyobjc-2.4a0-py2.7.egg Extracting pyobjc-2.4a0-py2.7.egg to /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages pyobjc 2.4a0 is already the active version in easy-install.pth Installed /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyobjc-2.4a0-py2.7.egg Processing dependencies for pyobjc==2.4a0 Searching for pyobjc-framework-ServiceManagement==2.4a0 Reading http://pypi.python.org/simple/pyobjc-framework-ServiceManagement/ Reading http://pyobjc.sourceforge.net No local packages or download links found for pyobjc-framework-ServiceManagement==2.4a0 error: Could not find suitable distribution for Requirement.parse('pyobjc-framework-ServiceManagement==2.4a0') I'm running Lion, upgraded from Snow Leopard, but I had this same problem on SL as well. Can anyone help with this? Thanks, Mike unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
[Pythonmac-SIG] Python bridgesupport issue on Lion
Hi, I have Mac OS X Lion 10.7 running. I'm trying to use bluetooth with python. I've installed the lightblue library as it seems to be the only way to have easy access to bluetooth through python. However, when I do: import lighblueI get this:Traceback (most recent call last): File stdin, line 1, in module File /Library/Python/2.7/site-packages/lightblue/__init__.py, line 160, in modulefrom _lightblue import * File /Library/Python/2.7/site-packages/lightblue/_lightblue.py, line 27, in moduleimport _IOBluetooth File /Library/Python/2.7/site-packages/lightblue/_IOBluetooth.py, line 47, in moduleglobals=globals()) File /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_bridgesupport.py, line 142, in initFrameworkWrapper_parseBridgeSupport(data, globals, frameworkName) File /System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/PyObjC/objc/_bridgesupport.py, line 42, in _parseBridgeSupportobjc.parseBridgeSupport(data, globals, frameworkName, *args, **kwds)ValueError: cftype for 'IOBluetoothDeviceInquiryRef' must include gettypeid_func, tollfree or bothLooking at: /System/Library/Frameworks/IOBluetooth.framework/Versions/A/Resources/BridgeSupport/IOBluetooth.bridgesupportNo cftypes declared in it have a gettypeid function or a tollfree. Anybody knows what's wrong? I've checked other bridgesupport files and they also have the same pattern (cftypes without gettypeid or tollfree).Thx. ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Python on iphone for developers
Alex Jouravlev al...@businessabstraction.com wrote: Is there a port of Python to iPhone? I want to be able to check-out from SVN, edit and run some Python server code now and then. See https://github.com/cobbal/python-for-iphone/blob/master/iOS-build.sh. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Python on iphone for developers
So how does one use this to make an iOS app then? On Thu, 4 Aug 2011 11:58:58 PDT, Bill Janssen wrote: Alex Jouravlev al...@businessabstraction.com wrote: Is there a port of Python to iPhone? I want to be able to check-out from SVN, edit and run some Python server code now and then. See https://github.com/cobbal/python-for-iphone/blob/master/iOS-build.sh. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG
Re: [Pythonmac-SIG] Python on iphone for developers
Dan Ross d...@rosspixelworks.com wrote: So how does one use this to make an iOS app then? That's an exercise for the reader. Basically, you build an Objective-C iOS app, but implement the callbacks and program logic as thin C wrappers that call into Python to get things done. This is simpler with a working PyObjC for iOS, of course, but I don't know what the status of that is. Bill On Thu, 4 Aug 2011 11:58:58 PDT, Bill Janssen wrote: Alex Jouravlev al...@businessabstraction.com wrote: Is there a port of Python to iPhone? I want to be able to check-out from SVN, edit and run some Python server code now and then. See https://github.com/cobbal/python-for-iphone/blob/master/iOS-build.sh. Bill ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig unsubscribe: http://mail.python.org/mailman/options/Pythonmac-SIG