colmap / pycolmap

Python bindings for COLMAP
BSD 3-Clause "New" or "Revised" License
898 stars 129 forks source link

ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed #288

Open z575 opened 1 week ago

z575 commented 1 week ago

I get an error when I import pycolmap==3.10.0 ImportError: DLL load failed: A dynamic link library (DLL) initialization routine failed

sarlinpe commented 1 week ago

We need more information:

Thank you!

z575 commented 1 week ago
  1. Installed through PyPI wheels(pip install pycolmap );
  2. The operating system is win11, and the processor is Intel(R) Core(TM) i5-1035G1 CPU @ 1.00GHz 1.19 GHz;
  3. I have also used other computers to install pycolmap (3.10.0), all of which have errors when importing (import pycolmap), and the versions of python are 3.8.2 and 3.12.0
  4. The error log is:Traceback (most recent call last): File "d:\Program Files\Python312\Lib\runpy.py", line 198, in _run_module_as_main return _run_code(code, main_globals, None, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "d:\Program Files\Python312\Lib\runpy.py", line 88, in _run_code exec(code, run_globals) File"c:\Users**.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy \launcher/../..\debugpy__main__.py", line 39, in cli.main() File "c:\Users**.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy \launcher/../..\debugpy/..\debugpy\server\cli.py", line 430, in main run() File "c:\Users**.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy \launcher/../..\debugpy/..\debugpy\server\cli.py", line 284, in run_file runpy.run_path(target, run_name="main") File "c:\Users**.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy_vendored\pydevd_pyd evd_bundle\pydevd_runpy.py", line 321, in run_path return _run_module_code(code, init_globals, run_name, ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "c:\Users**.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy_vendored\pydevd_pyd evd_bundle\pydevd_runpy.py", line 135, in _run_module_code _run_code(code, mod_globals, init_globals, File "c:\Users**.vscode\extensions\ms-python.debugpy-2024.10.0-win32-x64\bundled\libs\debugpy_vendored\pydevd_pyd evd_bundle\pydevd_runpy.py", line 124, in _run_code exec(code, run_globals) File "c:\Users**\Desktop**\test.py", line 4, in import pycolmap ImportError: DLL load failed while importing pycolmap: A dynamic link library (DLL) initialization routine failed。 Thank you!