ApplicationServices tracebacks on import

Issue #157 resolved
Glyph
created an issue

Here's a transcript of me trying to get it to work in a fresh virtualenv:

glyph@elfa:~  gary:🐻  
★ mktmpenv 
 ↩ Mon Jul 11 17:29:19 PDT 2016
Using real prefix '/Homebrew/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7'
Cannot find file /Users/glyph/.local/venvs/virtualenv/bin/../lib/python2.7/distutils (bad symlink)
New python executable in /Users/glyph/.virtualenvs/tmp-dcba3e2d7bb48a42/bin/python
Installing setuptools, pip, wheel...done.
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-dcba3e2d7bb48a42/bin/predeactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-dcba3e2d7bb48a42/bin/postdeactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-dcba3e2d7bb48a42/bin/preactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-dcba3e2d7bb48a42/bin/postactivate
virtualenvwrapper.user_scripts creating /Users/glyph/.virtualenvs/tmp-dcba3e2d7bb48a42/bin/get_env_details
This is a temporary environment. It will be deleted when you run 'deactivate'.
 ↪ Mon Jul 11 17:29:23 PDT 2016 (★ mktmpenv ) (4 seconds elapsed)
glyph@elfa:...ualenvs/tmp-dcba3e2d7bb48a42  VE:tmp-dcba3e2d7bb48a42  gary:🐻  
★ pip install pyobjc-framework-ApplicationServices
 ↩ Mon Jul 11 17:29:28 PDT 2016
Collecting pyobjc-framework-ApplicationServices
Collecting pyobjc-framework-Cocoa>=3.1.1 (from pyobjc-framework-ApplicationServices)
Collecting pyobjc-core>=3.1.1 (from pyobjc-framework-ApplicationServices)
Collecting pyobjc-framework-Quartz>=3.1.1 (from pyobjc-framework-ApplicationServices)
Installing collected packages: pyobjc-core, pyobjc-framework-Cocoa, pyobjc-framework-Quartz, pyobjc-framework-ApplicationServices
Successfully installed pyobjc-core-3.1.1 pyobjc-framework-ApplicationServices-3.1.1 pyobjc-framework-Cocoa-3.1.1 pyobjc-framework-Quartz-3.1.1
 ↪ Mon Jul 11 17:29:29 PDT 2016 (★ pip install pyobjc-framework-ApplicationServices) (1 seconds elapsed)
glyph@elfa:...ualenvs/tmp-dcba3e2d7bb48a42  VE:tmp-dcba3e2d7bb48a42  gary:🐻  
★ python -c 'import ApplicationServices'
 ↩ Mon Jul 11 17:29:34 PDT 2016
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/glyph/.virtualenvs/tmp-dcba3e2d7bb48a42/lib/python2.7/site-packages/ApplicationServices/__init__.py", line 11, in <module>
    import CoreText
ImportError: No module named CoreText
 ↪ Mon Jul 11 17:29:35 PDT 2016 (★ python -c 'import ApplicationServices') (1 seconds elapsed)
glyph@elfa:...mp-dcba3e2d7bb48a42  VE:tmp-dcba3e2d7bb48a42  ERROR:1  gary:🐻  
★ pip install pyobjc-framework-CoreText
 ↩ Mon Jul 11 17:29:39 PDT 2016
Collecting pyobjc-framework-CoreText
Requirement already satisfied (use --upgrade to upgrade): pyobjc-framework-Cocoa>=3.1.1 in ./lib/python2.7/site-packages (from pyobjc-framework-CoreText)
Requirement already satisfied (use --upgrade to upgrade): pyobjc-core>=3.1.1 in ./lib/python2.7/site-packages (from pyobjc-framework-CoreText)
Requirement already satisfied (use --upgrade to upgrade): pyobjc-framework-Quartz>=3.1.1 in ./lib/python2.7/site-packages (from pyobjc-framework-CoreText)
Installing collected packages: pyobjc-framework-CoreText
Successfully installed pyobjc-framework-CoreText-3.1.1
 ↪ Mon Jul 11 17:29:40 PDT 2016 (★ pip install pyobjc-framework-CoreText) (1 seconds elapsed)
glyph@elfa:...ualenvs/tmp-dcba3e2d7bb48a42  VE:tmp-dcba3e2d7bb48a42  gary:🐻  
★ python -c 'import ApplicationServices'
 ↩ Mon Jul 11 17:29:41 PDT 2016
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/Users/glyph/.virtualenvs/tmp-dcba3e2d7bb48a42/lib/python2.7/site-packages/ApplicationServices/__init__.py", line 23, in <module>
    _metadata.__dict__, None, {
NameError: name '_metadata' is not defined
 ↪ Mon Jul 11 17:29:41 PDT 2016 (★ python -c 'import ApplicationServices')
glyph@elfa:...mp-dcba3e2d7bb48a42  VE:tmp-dcba3e2d7bb48a42  ERROR:1  gary:🐻  
★ 

Comments (4)

  1. Log in to comment