import ApplicationServices fails

Issue #153 resolved
Riaz Rizvi created an issue

The new ApplicationServices module fails to load.

From an iPython terminal:

In [1]: import ApplicationServices
NameError                                 Traceback (most recent call last)
<ipython-input-1-ba23dfe4c6b6> in <module>()
----> 1 import ApplicationServices

/usr/local/Cellar/python3/3.4.2/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages/pyobjc_framework_ApplicationServices-3.2a1-py3.4.egg/ApplicationServices/ in <module>()
     22     "",
     23     objc.pathForFramework("/System/Library/Frameworks/ApplicationServices.framework"),
---> 24     _metadata.__dict__, None, {
     25        '__doc__': __doc__,
     26        '__path__': __path__,

NameError: name '_metadata' is not defined

Looks like no file was generated for the module's root folder (pyobjc_framework_ApplicationServices/ApplicationServices/). Looks like it needs an ApplicationServices.fwinfo in ApplicationServices/metadata?

I built the libraries from the tip yesterday, so objc.objc.__version__==3.2a1

Comments (5)

  1. Ronald Oussoren repo owner

    Thanks for your report. I'm not sure why I didn't catch this myself, I forgot to generate the file.

  2. Riaz Rizvi reporter

    Hi Ronald,

    I don't see a new pyobjc-framework-ApplicationServices/Lib/ApplicationServices/ file in the tip you've referenced. I only see a comment change to pyobjc-framework-ApplicationServices/Lib/HIServices/

  3. Log in to comment