Closed arpan-kusari closed 6 months ago
Hello @arpan-kusari,
Are you sure that the Python interpreter that you tried to import mitsuba
with is the same that was used to pip-install the package?
Please try creating a virtual environment and importing it there:
mkdir test_dir
cd test_dir
python3 -m venv .venv
source ./.venv/bin/activate
pip install mitsuba
python
>>> import mitsuba as mi
>>> mi.set_variant("cuda_ad_rgb")
>>> scene = mi.load_dict(mi.cornell_box())
Hi, We have managed to recreate the issue. It is due to Python version. It works for 3.8 but not for 3.10.12.
I am trying to run the hello world example of mitsuba and getting the error in the title. I am using Ubuntu 22.04 with Python version 3.10.12 and installed mitsuba (and dr.jit) without error using 'pip mitsuba'. I confirm that mitsuba version 3.5.0 and drjit version 0.4.4 has been installed. But when I import and run mi.set_variant('scalar_rgb'), it gives me the AttributeError. From nvidia-smi, this is the output -