mitsuba-renderer / nanogui

Minimalistic C++/Python GUI library for OpenGL, GLES2/3, Metal, and WebAssembly/WebGL
Other
1.57k stars 196 forks source link

cannot import python module #110

Closed wildeyevr closed 2 years ago

wildeyevr commented 2 years ago

installed with setup.py (pip install .) I get the following traceback when trying to import the module

import nanogui Traceback (most recent call last): File "", line 1, in File "/home/proscans/nanogui/nanogui/init.py", line 3, in _import('nanogui.nanogui_ext') File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) ModuleNotFoundError: No module named 'nanogui.nanogui_ext'

wjakob commented 2 years ago

That looks to me like a python version mismatch (extension built for one version of python, then imported in another).

Probably the easiest way to get the library is via pip install.