kcoley / gltf2usd

command-line utility for converting glTF 2.0 models to USD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ModuleNotFoundError: No module named '_usd'

julien-c opened this issue · comments

Probably more of an issue with Apple's prebuilt usd library than with this module, but in case anyone has a fix or an idea how to solve:

Traceback (most recent call last):
  File "gltf2usd.py", line 18, in <module>
    from pxr import Usd, UsdGeom, Sdf, UsdShade, Gf, UsdSkel, Vt, Ar, UsdUtils
  File "/Users/gibbon/Desktop/USDPython/USD/pxr/Usd/__init__.py", line 24, in <module>
    import _usd
ModuleNotFoundError: No module named '_usd'

(I've added the USD/ folder to both $PATH and $PYTHONPATH)

(alternatively, if anyone could just convert the .gltf below to .usdz I'd be super grateful – yes I'm that lazy :)

Arachnix-baked-subdiv.gltf.zip

Thanks so much @yspark90 🤗

commented

I am Using Ubuntu but fate!
Traceback (most recent call last):

File "gltf2usd.py", line 19, in <module>
    from pxr import Usd, UsdGeom, Sdf, UsdShade, Gf, UsdSkel, Vt, Ar, UsdUtils
    File "/home/jk/code/usdpython/USD/lib/python/pxr/Usd/__init__.py", line 24, in <module>
    import _usd
ImportError: /home/jk/code/usdpython/USD/lib/python/pxr/Usd/_usd.so: invalid ELF header