>>> import runmetal.MetalKit
2018-12-17 22:09:53.422 python[5250:51067] Cannot find executable for CFBundle 0x7fa913895b10 </Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/Frameworks/MetalKit.framework> (not loaded)
Traceback (most recent call last):
File "/path/to/runmetal/lib/python3.7/site-packages/objc/_bridgesupport.py", line 701, in initFrameworkWrapper
bundle_identifier=frameworkIdentifier)
ImportError: Bundle could not be loaded
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/path/to/runmetal/runmetal/MetalKit.py", line 20, in <module>
frameworkPath=_objc.pathForFramework(p), globals=globals())
File "/path/to/runmetal/lib/python3.7/site-packages/objc/_bridgesupport.py", line 715, in initFrameworkWrapper
bundle_path=frameworkPath)
ImportError: Bundle could not be loaded
runmetal/MetalKit.py の状態でうまくいく環境もあれば、そうでない環境もある。importできないやつは、こんな感じ↓になる