Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

import ApplicationServices fails #153

Closed
ronaldoussoren opened this issue May 20, 2016 · 4 comments
Closed

import ApplicationServices fails #153

ronaldoussoren opened this issue May 20, 2016 · 4 comments
Labels
bug Something isn't working

Comments

@ronaldoussoren
Copy link
Owner

Original report by Riaz Rizvi (Bitbucket: riazrizvi, GitHub: riazrizvi).


The new ApplicationServices module fails to load.

From an iPython terminal:

#!python

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/__init__.py in <module>()
     22     "com.apple.ApplicationServices",
     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 _metadata.py 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

@ronaldoussoren
Copy link
Owner Author

Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren).


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

@ronaldoussoren
Copy link
Owner Author

Original comment by Ronald Oussoren (Bitbucket: ronaldoussoren, GitHub: ronaldoussoren).


Add missing metadata file for ApplicationServices.

Fixes #153

@ronaldoussoren
Copy link
Owner Author

Original comment by Riaz Rizvi (Bitbucket: riazrizvi, GitHub: riazrizvi).


Hi Ronald,

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

@ronaldoussoren
Copy link
Owner Author

Original comment by Riaz Rizvi (Bitbucket: riazrizvi, GitHub: riazrizvi).


Looks like it's been fixed with → <<cset 1ed61e170f89>>. Thanks!

@ronaldoussoren ronaldoussoren added major bug Something isn't working labels Feb 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant