USDZ Tools on Apple Silicon

  • Have you solved this problem? space_moon's method does not seem to work.

  • btw, I am trying to run usdzconvert in rosetta terminal.

    I started having this problem since I upgraded the macOS to 12.3 and installed usdz tool version 0.65. Prior to that, I was able to run usdz tools within rosetta terminal.

  • how did you do this? "I tried replacing !/usr/local/bin/python3.7 with !/usr/bin/env python3 in all python scripts"

Add a Comment

Apple Recommended

Replies

If you run brew info python it will show something akin to:

Unversioned symlinks `python`, `python-config`, `pip` etc. pointing to
`python3`, `python3-config`, `pip3` etc., respectively, have been installed into
  /usr/local/opt/python@3.9/libexec/bin

So adding /usr/local/opt/python@3.9/libexec/bin to your PATH will allow for python calls to work.

To be exact python 3.7 installation via brew is not successful. You need to use the above installer. In addition you need to run Terminal in Rosetta as the compiled libraries are only for x86_64.

  • Tried installing this today, I have a question. When I right click open USD.command, and try usdzconvert, I get the following error: (base) sebi@lazarus ~ % usdzconvert zsh: /Applications/usdpython/usdzconvert/usdzconvert: bad interpreter: /usr/bin/python: no such file or directory

    I installed python 3.7 via the link discussed here and (I tried brew install python3.7 before finding this forum but got an error that it didn't exist probably for the better).

    I will look into what Rosetta is and hopefully this works because I want to get animated models from blender into my XCode project.

Add a Comment

Got it working without Rosetta, I was using usdpython version 0.63 which was compiled on older Mac OS (before Monterey) and this relied on python2 which is no longer on Monterey. I tried getting python2 back but this seemed impossible. version 0.65 of usdpython worked for me instead. But I realized this may not even be necessary for my purposes since Blender now exports the .usdc binary. usdc shows the animation correctly in quickview, so should this work in a Metal implemented project? If so, what is usdpython useful for?