GPUOpen-LibrariesAndSDKs / BlenderUSDHydraAddon

This add-on allows you to assemble and compose USD data with Blender data and render it all using various renderers via Hydra.
Apache License 2.0
368 stars 38 forks source link

Cannot enable addon on Windows 10 #108

Closed dreisicht closed 2 years ago

dreisicht commented 3 years ago

I downloaded BlenderUSDHydraAddon_1.0.21_Windows.zip, installed with the Blender add-on UI, and I get the following error:

2021-09-22 10:57:11,539 INFO hdusd.init [16336]:  Loading USD Hydra addon version=(1, 0, 21), build=b0bf57e
Traceback (most recent call last):
  File "C:\Program Files (x86)\Steam\steamapps\common\Blender\2.93\scripts\modules\addon_utils.py", line 351, in enable
    mod = __import__(module_name)
  File "C:\Users\peter\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\hdusd\__init__.py", line 39, in <module>
    from . import engine, properties, ui, usd_nodes, mx_nodes, bl_nodes
  File "C:\Users\peter\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\hdusd\engine\__init__.py", line 39, in <module>
    from . import engine, handlers
  File "C:\Users\peter\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\hdusd\engine\engine.py", line 20, in <module>
    from pxr import UsdGeom
  File "C:\Users\peter\Documents\pixar\lib\python\pxr\UsdGeom\__init__.py", line 24, in <module>
    from . import _usdGeom
ImportError: DLL load failed while importing _usdGeom: Das angegebene Modul wurde nicht gefunden.
bsavery commented 3 years ago

What blender version is this?

dreisicht commented 3 years ago

It's 2.93.4!

bnagirniak commented 3 years ago

Looks like from pxr import UsdGeom tries to load pxr library from C:\Users\peter\Documents\pixar\lib\python\pxr. Addon has its own pxr library inside C:\Users\peter\AppData\Roaming\Blender Foundation\Blender\2.93\scripts\addons\hdusd\libs\usd\python\pxr, such library should be used. Try to remove C:\Users\peter\Documents\pixar\lib\python from PYTHONPATH if it is there.

dreisicht commented 3 years ago

Looks like that resolved one issue. Now I run into the following one:

2021-09-29 14:28:01,949 INFO hdusd.init [20824]:  Loading USD Hydra addon version=(1, 0, 21), build=b0bf57e
Fatal Python error: take_gil: NULL tstate

I think my python installation is a bit off, so feel free to close the ticket in case you don't want to invest time into debugging this.

bnagirniak commented 2 years ago

Not actual anymore.