ImportError : __import__("gltbx_glu_ext"): DLL load failed while importing gltbx_glu_ext: A dynamic link library (DLL) initialization routine failed.
  sys.path:
    C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\libsvm
    C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\phenix\wxGUI2\command_line
    C:\ProgramData\phenix-1.21.2-5419\python39.zip
    C:\ProgramData\phenix-1.21.2-5419\DLLs
    C:\ProgramData\phenix-1.21.2-5419\lib
    C:\ProgramData\phenix-1.21.2-5419
    C:\ProgramData\phenix-1.21.2-5419\lib\site-packages
    C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\mmtbx\suitename

Traceback (most recent call last):
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\boost_adaptbx\boost\python.py", line 22, in import_ext
    try: mod = __import__(name)
ImportError: DLL load failed while importing gltbx_glu_ext: A dynamic link library (DLL) initialization routine failed.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\wxGUI2\MainWindow.py", line 745, in <lambda>
    menu.add_command("Run now", lambda evt: self.run())
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\wxGUI2\Programs\Refine\Main.py", line 426, in run
    self.start_process(config_file, output_dir, process_type)
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\wxGUI2\Templates.py", line 701, in start_process
    run_notebook = self.create_run_notebook()
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\wxGUI2\Programs\Refine\Main.py", line 532, in create_run_notebook
    from wxGUI2.Programs.Refine import Output
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\wxGUI2\Programs\Refine\Output.py", line 5, in <module>
    from wxGUI2 import GLViewer, AdvancedWidgets, Buttons
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\wxGUI2\GLViewer.py", line 10, in <module>
    from crys3d.wx_combined_viewer import viewer_phil
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\crys3d\wx_combined_viewer.py", line 4, in <module>
    from crys3d.wx_selection_editor import selection_editor_mixin
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\crys3d\wx_selection_editor.py", line 6, in <module>
    from crys3d.wx_model_viewer import model_scene, model_viewer_mixin
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\crys3d\wx_model_viewer.py", line 10, in <module>
    from gltbx.wx_viewer import wxGLWindow
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\gltbx\wx_viewer.py", line 8, in <module>
    from gltbx.glu import *
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\gltbx\glu.py", line 3, in <module>
    ext = bp.import_ext("gltbx_glu_ext")
  File "C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\boost_adaptbx\boost\python.py", line 31, in import_ext
    raise ImportError(
Dear All,
I am getting this error when trying to run Phenix-refine. Any idea how to fix this?
Thank you.
Jobi


ImportError: __import__("gltbx_glu_ext"): DLL load failed while importing gltbx_glu_ext: A dynamic link library (DLL) initialization routine failed.
  sys.path:
    C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\libsvm
    C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\phenix\wxGUI2\command_line
    C:\ProgramData\phenix-1.21.2-5419\python39.zip
    C:\ProgramData\phenix-1.21.2-5419\DLLs
    C:\ProgramData\phenix-1.21.2-5419\lib
    C:\ProgramData\phenix-1.21.2-5419
    C:\ProgramData\phenix-1.21.2-5419\lib\site-packages
    C:\ProgramData\phenix-1.21.2-5419\lib\site-packages\mmtbx\suitename