GaryMBloom
GaryMBloom

Reputation: 5700

PyInstaller Build from MacOS Ventura Failing on High Sierra due to Missing Symbol '_OBJC_CLASS_$_MLModelConfiguration'

I have developed a cross-platform app which runs on MacOS and Windows. I have packaged the app on MacOS Ventura (i7 Intel-based) with PyInstaller. When I try to run the packaged app on MacOS High Sierra, I get the below error. Can anyone provide insight how I can fix or work around this issue? I'm assuming it's related to OS version.

> Exception in thread Thread-1 (transcribe): Traceback (most recent call
> last):   File "threading.py", line 1075, in _bootstrap_inner   File
> "threading.py", line 1012, in run   File "RT_STT.py", line 61, in
> transcribe   File "PyInstaller/loader/pyimod02_importers.py", line
> 384, in exec_module   File "RealtimeSTT/__init__.py", line 1, in
> <module>   File "PyInstaller/loader/pyimod02_importers.py", line 384,
> in exec_module   File "RealtimeSTT/audio_recorder.py", line 33, in
> <module>   File "PyInstaller/loader/pyimod02_importers.py", line 384,
> in exec_module   File "openwakeword/__init__.py", line 3, in <module> 
> File "PyInstaller/loader/pyimod02_importers.py", line 384, in
> exec_module   File "openwakeword/vad.py", line 48, in <module>   File
> "PyInstaller/loader/pyimod02_importers.py", line 384, in exec_module  
> File "onnxruntime/__init__.py", line 58, in <module>   File
> "onnxruntime/__init__.py", line 23, in <module>   File
> "PyInstaller/loader/pyimod02_importers.py", line 384, in exec_module  
> File "onnxruntime/capi/_pybind_state.py", line 32, in <module>
> ImportError: dlopen(/Applications/Virtual
> Reader.app/Contents/MacOS/Virtual_Reader/_internal/onnxruntime/capi/onnxruntime_pybind11_state.so,
> 2): Symbol not found: _OBJC_CLASS_$_MLModelConfiguration   Referenced
> from: /Applications/Virtual
> Reader.app/Contents/MacOS/Virtual_Reader/_internal/onnxruntime/capi/onnxruntime_pybind11_state.so
> (which was built for Mac OS X 13.3)   Expected in:
> /System/Library/Frameworks/CoreML.framework/Versions/A/CoreML  in
> /Applications/Virtual
> Reader.app/Contents/MacOS/Virtual_Reader/_internal/onnxruntime/capi/onnxruntime_pybind11_state.so
> ImportError: dlopen(/Applications/Virtual
> Reader.app/Contents/MacOS/Virtual_Reader/_internal/onnxruntime/capi/onnxruntime_pybind11_state.so,
> 2): Symbol not found: _OBJC_CLASS_$_MLModelConfiguration

Upvotes: 1

Views: 19

Answers (0)

Related Questions