Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeError: Failed to load shared library 'D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama.dll #82

Open
w84itngetit opened this issue May 3, 2024 · 1 comment

Comments

@w84itngetit
Copy link

Successfully installed tokenizers-0.19.1 transformers-4.40.1
llama-cpp installed
All packages from requirements.txt are installed and up to date.
AutoGPTQ installed
Traceback (most recent call last):
File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama_cpp.py", line 74, in _load_shared_library
return ctypes.CDLL(str(lib_path), **cdll_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "ctypes_init
.py", line 376, in init
OSError: [WinError 1114] Произошел сбой в программе инициализации библиотеки динамической компоновки (DLL)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\AI\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1864, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes_init
.py", line 70, in
imported_module = importlib.import_module(f".nodes.{module_name}", name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init_.py", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes\nodes\llavaloader.py", line 4, in from llama_cpp import Llama
File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp_init
.py", line 1, in
from .llama_cpp import *
File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama_cpp.py", line 87, in
_lib = _load_shared_library(_lib_base_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama_cpp.py", line 76, in _load_shared_library
raise RuntimeError(f"Failed to load shared library '{_lib_path}': {e}")
RuntimeError: Failed to load shared library 'D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama.dll': [WinError 1114] Произошел сбой в программе инициализации библиотеки динамической компоновки (DLL)

Cannot import D:\AI\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes module for custom nodes: Failed to load shared library 'D:\AI\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama.dll': [WinError 1114] Произошел сбой в программе инициализации библиотеки динамической компоновки (DLL)

D:\AI\ComfyUI_windows_portable>pause

Hello) How can i fix that?

@Xenodimensional
Copy link

Xenodimensional commented May 31, 2024

Looks like I have the same issue and I just spent a night trying to get this to work. On the upside, deleting it didn't seem to tank my Comfy install.

Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama_cpp.py", line 74, in _load_shared_library
return ctypes.CDLL(str(lib_path), **cdll_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "ctypes_init
.py", line 376, in init
OSError: [WinError 1114] A dynamic link library (DLL) initialization routine failed

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\ComfyUI_windows_portable\ComfyUI\nodes.py", line 1879, in load_custom_node
module_spec.loader.exec_module(module)
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes_init
.py", line 70, in
imported_module = importlib.import_module(f".nodes.{module_name}", name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "importlib_init_.py", line 126, in import_module
File "", line 1204, in _gcd_import
File "", line 1176, in _find_and_load
File "", line 1147, in _find_and_load_unlocked
File "", line 690, in _load_unlocked
File "", line 940, in exec_module
File "", line 241, in call_with_frames_removed
File "C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes\nodes\llavaloader.py", line 4, in
from llama_cpp import Llama
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp_init
.py", line 1, in
from .llama_cpp import *
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama_cpp.py", line 87, in
_lib = _load_shared_library(_lib_base_name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama_cpp.py", line 76, in _load_shared_library
raise RuntimeError(f"Failed to load shared library '{_lib_path}': {e}")
RuntimeError: Failed to load shared library 'C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama.dll': [WinError 1114] A dynamic link library (DLL) initialization routine failed

Cannot import C:\ComfyUI_windows_portable\ComfyUI\custom_nodes\ComfyUI_VLM_nodes module for custom nodes: Failed to load shared library 'C:\ComfyUI_windows_portable\python_embeded\Lib\site-packages\llama_cpp\llama.dll': [WinError 1114] A dynamic link library (DLL) initialization routine failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants