kcoley / gltf2usd

command-line utility for converting glTF 2.0 models to USD
MIT License
263 stars 39 forks source link

ModuleNotFoundError: No module named '_usd' #156

Closed julien-c closed 5 years ago

julien-c commented 5 years ago

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)

julien-c commented 5 years ago

(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

yspark90 commented 5 years ago

arachnix.usdz.zip

julien-c commented 5 years ago

Thanks so much @yspark90 🤗

jerinisready commented 5 years ago

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