Content-type: multipart/related; boundary="Boundary_(ID_a9NSZ3wq/Kjt5F+ddeFTaw)"; type="text/html" --Boundary_(ID_a9NSZ3wq/Kjt5F+ddeFTaw) Content-type: text/html; CHARSET=US-ASCII Content-transfer-encoding: quoted-printable
Hi,= --Boundary_(ID_a9NSZ3wq/Kjt5F+ddeFTaw)--I was trying to run the sample PyObjc H= otKey example app downloaded from this link: http://pythonhosted.org/pyobjc/_downloads/PyObjCExample-HotKeyPython.z= ip(My environment: Mac OS X 10.8.5, Python 2= .7.5)After I unpacked the file, I tried to:1) run it via:pyt= hon HotKey.pyand got the following er= ror:Traceback (most recent call la= st):File "HotKey.py", line 18, in <= module>from Carbon.CarbonEvt= import RegisterEventHotKey, GetApplicationEventTarget<= /div>
ImportError: cannot import name RegisterEventHotKey2) run it in 32bit mode, as I thought this might = only be supported in 32bit.arch -i386= python HotKey.pyand got another erro= r:2014-01-03 21:57:41.083 Python[2047= :f0b] No Info.plist file in application bundle or no NSPrincipalClass in t= he Info.plist file, exiting3) Then I = thought I might have to package it as an xx.app to run, then I executed th= e following command to package it:pyt= hon setup.py py2app -A(also tried 'ar= ch -i386 python setup.py py2app -A')The app coul= dn't be run, and then ran it from console, I got the following errors:Traceback (most recent call last):&n= bsp; File "/Users/jiakuanwang/opensource/PyObjCExample-HotKeyPython/dist/H= otKey.app/Contents/Resources/__boot__.py", line 69, in <module>_run()File "/Users/jiakuanwang/opens= ource/PyObjCExample-HotKeyPython/dist/HotKey.app/Contents/Resources/__boot= __.py", line 62, in _runexec(compile(source, scri= pt, 'exec'), globals(), globals())File "/Users/jiakuanwa= ng/opensource/PyObjCExample-HotKeyPython/HotKey.py", line 16, in <modul= e>from AppKit import *ImportError: = No module named AppKit2014-01-03 22:00:41.775 HotKey[2126:707] = HotKey ErrorIs it possible to run it in so= me way? Thanks in advance!Thanks,Jake=--------------------------------------= ----------------------------------------
Rapidly troubleshoot problems= before they affect your business. Most IT
organizations don't have a= clear picture of how application performance
affects their revenue. = With AppDynamics, you get 100% visibility into your
Java,.NET, & = PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
Pyobjc-= dev mailing list