cpichard / usdtweak

Universal Scene Description standalone editor
Apache License 2.0
232 stars 23 forks source link

Unable to run on Mac (Apple Silicon) #8

Closed guidoq closed 1 year ago

guidoq commented 1 year ago

Got a successful build but then launching usdtweak.app I get this:

ermination Reason: Namespace DYLD, Code 1 Library missing Library not loaded: @rpath/Python3.framework/Versions/3.9/Python3 Referenced from: <40A5A386-3406-37CA-B599-BF613262C53B> /Users/USER/*/usdtweak.app/Contents/MacOS/usdtweak Reason: tried: '/Users/guido/trees/USD_REL/USD-inst/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/guido/trees/USD_REL/USD-inst/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Applications/Xcode.app/Contents/Developer/Library/Frameworks/Python3.framework/Versions/3.9/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/Users/guido/trees/USD_REL/USD-inst/lib/Python3.framework/Versions/3.9/Python3' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/guido/trees/USD_REL/USD-inst/lib/Python3.framework/Versions/3.9/Python3' (no such file) (terminated at launch; ignore backtrace)

cpichard commented 1 year ago

Hi @guidoq, it looks like the application can't find the python library. usdtweak doesn't use python but it links with what usd needs, so I am guessing usd was compiled with a different python library than the system one, and this library may be not in the DYLD_LIBRARY_PATH environment variable. To double check, are you able to launch usdview ? If in a terminal you type python --version which version do you have ? Another possibility could be that usd, usdtweak and python were compiled with different target architecture, arm64 and x86_64.

cpichard commented 1 year ago

Hi @guidoq , did that help solving your issue ?