Hi,
On my mac (with Apple Silicon chip) I have different tools that required Python 3.9. To install Python 3.9 I use Homebrew.
I wanted to install "USDZ Tools". I downloaded USDPython-pkg from https://developer.apple.com/augmented-reality/tools/ and by unzipping it I got the file USDPython-0.65.pkg
If I try to run usdzconvert -h
I get this
~ % usdzconvert -h
env: python3.7: No such file or directory
I tried replacing !/usr/local/bin/python3.7
with !/usr/bin/env python3
in all python scripts
I then tried to relaunch usdzconvert -h
now I get this
% usdzconvert -h
Error: failed to import pxr module. Please add path to USD Python bindings to your PYTHONPATH
I checked PATH
and PYTHONPATH
are good. I then looked in the pxr
folder. Inside there are python files and dynamic libraries with the extension so
.
If run the following command, for example, on _ar.so
% file /Applications/usdpython/USD/lib/python/pxr/Ar/_ar.so
/Applications/usdpython/USD/lib/python/pxr/Ar/_ar.so: Mach-O 64-bit dynamically linked shared library x86_64
This is not a dynamic library for Apple Silicon
On the Internet some say that by launching the terminal in Resetta mode it works. I tried it doesn't work for me.
Will there be a native version for Apple Silicon for USDZ Tools?
Regards
Tof
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"