There are no Frameworks in /System/Library/Frameworks to be loaded with Pyobjc

Originator:lctrkid
Number:rdar://FB7755688 Date Originated:2020-06-23
Status:Open Resolved:
Product:macOS Product Version:10.16
Classification: Reproducible:Yes
 
In Python (2 and 3) when I try to import CoreServices framework it won't load because /System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (and no other Framework) exist.
Please fix that.
Thank you.

```
>>> import CoreServices
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/munki/Python.framework/Versions/3.7/lib/python3.7/site-packages/CoreServices/__init__.py", line 15, in <module>
    from CoreServices import LaunchServices
  File "/usr/local/munki/Python.framework/Versions/3.7/lib/python3.7/site-packages/CoreServices/LaunchServices/__init__.py", line 17, in <module>
    objc.pathForFramework('/System/Library/Frameworks/CoreServices.framework/CoreServices'),
  File "/usr/local/munki/Python.framework/Versions/3.7/lib/python3.7/site-packages/objc/_dyld.py", line 122, in pathForFramework
    fpath, name, version = infoForFramework(dyld_find(path))
  File "/usr/local/munki/Python.framework/Versions/3.7/lib/python3.7/site-packages/objc/_dyld.py", line 117, in dyld_find
    return dyld_framework(filename, framework_name, version)
  File "/usr/local/munki/Python.framework/Versions/3.7/lib/python3.7/site-packages/objc/_dyld.py", line 88, in dyld_framework
    raise ImportError("Framework %s could not be found" % (framework_name,))
ImportError: Framework CoreServices could not be found
```

Comments

Per the Whats new in Big Sur article this is expected behavior.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!