Installation: Failed to enable the Mitsuba Blender Add-on
OmegaZhou opened this issue · 2 comments
Failed to enable the Mitsuba Blender Add-on
Failed to enable the Mitsuba Blender Add-on
Bug Description
I use pip to install the Mitsuba and specify version 3.0.1
When I enable the Mitsuba Blender Add-on, the report shows that AttributeError: module 'mitsuba' has no attribute 'set_variant'
And when I import mitsuba
and call the same code in cmd and, it works well
To Reproduce
Steps to reproduce the behavior:
- Download the latest release from the release section.
- In Blender, go to Edit -> Preferences -> Add-ons -> Install.
- Select the downloaded ZIP archive.
- Find the add-on using the search bar and enable it.
Expected behavior
Traceback (most recent call last):
File "C:\Program Files\Blender Foundation\Blender 3.3\3.3\scripts\modules\addon_utils.py", line 369, in enable
mod.register()
File "C:\Users\dgsd\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\mitsuba-blender\__init__.py", line 260, in register
if try_register_mitsuba(context):
File "C:\Users\dgsd\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\mitsuba-blender\__init__.py", line 60, in try_register_mitsuba
could_init_mitsuba = init_mitsuba(context)
File "C:\Users\dgsd\AppData\Roaming\Blender Foundation\Blender\3.3\scripts\addons\mitsuba-blender\__init__.py", line 37, in init_mitsuba
mitsuba.set_variant('scalar_rgb')
AttributeError: module 'mitsuba' has no attribute 'set_variant'
Environment (please complete the following information):
- OS: Windows
- Blender Version: 3.3
- Add-on Version: latest
Hello,
Mitsuba needs to be installed in Blender's python environment (blender/3.3/python/bin/python.exe
). Can you try installing Mitsuba there (python -m pip install mitsuba==3.0.1 --force-reinstall
) ?
In any case, I would suggest waiting for #44 to be merged as it fixes some problems due to dependency installation versions.
Cheers!
Closing for inactivity.