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
Hi folks,
This version of USD Python tools uses Python 3.7 as indicated by the error message. You can download and install Python 3.7.9 (recommended) from https://www.python.org/downloads/release/python-379/.
Installation with brew may not be successful.
Note: After installing Python 3.7 be sure to execute "Install Certificates.command” as mentioned in the installer's instructions.