prabhuramachandran/mayavi-tutorial

ModuleNotFoundError: No module named 'traitsui.null'

Opened this issue · 0 comments

hola me gusta mucho mayavi y estoy tratando de utilizarla y aprender todo lo que pueda sobre ella. Estoy realizando un proyecto que al convertirlo en un ejecutable para Windows me genera el siguiente error. Por favor si alguien pudiera ayudarme a resolverlo:

Traceback (most recent call last):
File "pyface\base_toolkit.py", line 219, in import_toolkit
File "importlib\metadata_init_.py", line 162, in load
File "importlib_init_.py", line 126, in import_module
File "", line 1050, in _gcd_import
File "", line 1027, in _find_and_load
File "", line 1004, in _find_and_load_unlocked
ModuleNotFoundError: No module named 'traitsui.null'

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "Caver_Mapping3.py", line 14, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "mayavi\mlab.py", line 16, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "mayavi\tools\camera.py", line 24, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "mayavi\tools\engine_manager.py", line 13, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "mayavi\preferences\api.py", line 4, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "mayavi\preferences\preference_manager.py", line 29, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "traitsui\api.py", line 257, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "traitsui\editors_init
.py", line 16, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "traitsui\editors\api.py", line 96, in
File "", line 1027, in _find_and_load
File "", line 1006, in _find_and_load_unlocked
File "", line 688, in _load_unlocked
File "PyInstaller\loader\pyimod02_importers.py", line 352, in exec_module
File "traitsui\editors\code_editor.py", line 21, in
File "traitsui\editors\code_editor.py", line 32, in CodeEditor
File "traits\trait_factory.py", line 40, in call
File "traitsui\toolkit_traits.py", line 43, in ColorTrait
File "traitsui\toolkit.py", line 110, in toolkit
File "pyface\base_toolkit.py", line 294, in find_toolkit
File "pyface\base_toolkit.py", line 231, in import_toolkit
RuntimeError: No traitsui.toolkits plugin could be loaded for null