USD Mac上運行失敗
Python crashed. FATAL ERROR: Failed axiom: ' Py_IsInitialized()?
原因分析:
使用Conda python,而不是直接使用本機的的Python環(huán)境編譯的USD。
解決方案:
在使用Conda python編譯USD的時候加入額外的參數(shù)
python build_scripts/build_usd.py /opt/local/USD --build-args USD,"-DPXR_PY_UNDEFINED_DYNAMIC_LOOKUP=ON"
參考文檔:
https://rhonabwy.com/2022/08/16/native-support-for-usd-tools-on-an-m1-mac/
Conda distributed Pythons are statically linked as a way to reduce unexpected system and installation coupling, but Python isn’t, to my knowledge, built in such a way that an external build system can robustly discover whether you are targeting a static or dynamically linked Python so we are forced to deal with it manually.
https://github.com/PixarAnimationStudios/USD/issues/1996#issuecomment-1217039438
標簽: