You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried this on two different machines, both fail in the same manner. During install of the LlamaChat module, the following error occurs. Is there a fix for it?
(In addition, it's interesting to note that both Success and Failure is logged at the end... which is it? :)
11:51:47:LlamaChat: Traceback (most recent call last):
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp_ctypes_extensions.py", line 67, in load_shared_library
11:51:47:LlamaChat: return ctypes.CDLL(str(lib_path), **cdll_args) # type: ignore
11:51:47:LlamaChat: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python311\Lib\ctypes_init_.py", line 376, in init
11:51:47:LlamaChat: self._handle = _dlopen(self.name, mode)
11:51:47:LlamaChat: ^^^^^^^^^^^^^^^^^^^^^^^^^
11:51:47:LlamaChat: FileNotFoundError: Could not find module 'C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp\lib\llama.dll' (or one of its dependencies). Try using the full path with constructor syntax.
11:51:47:LlamaChat: During handling of the above exception, another exception occurred:
11:51:47:LlamaChat: Traceback (most recent call last):
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\llama_chat_adapter.py", line 12, in
11:51:47:LlamaChat: from llama_chat import LlamaChat
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\llama_chat.py", line 7, in
11:51:47:LlamaChat: from llama_cpp import ChatCompletionRequestSystemMessage,
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp_init.py", line 1, in
11:51:47:LlamaChat: from .llama_cpp import *
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp\llama_cpp.py", line 38, in
11:51:47:LlamaChat: _lib = load_shared_library(_lib_base_name, _base_path)
11:51:47:LlamaChat: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp_ctypes_extensions.py", line 69, in load_shared_library
11:51:47:LlamaChat: raise RuntimeError(f"Failed to load shared library '{lib_path}': {e}")
11:51:47:LlamaChat: RuntimeError: Failed to load shared library 'C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp\lib\llama.dll': Could not find module 'C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp\lib\llama.dll' (or one of its dependencies). Try using the full path with constructor syntax.
11:51:48:LlamaChat: Self test: Self-test failed
11:51:48:LlamaChat: Module setup time 00:04:08.44
11:51:48:LlamaChat: Setup complete
11:51:48:LlamaChat: Total setup time 00:04:14.77
11:51:48:LlamaChat: SETUP FAILED:
11:51:48:LlamaChat: - [LlamaChat] Self test failed
11:51:48:Module LlamaChat installed successfully.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've tried this on two different machines, both fail in the same manner. During install of the LlamaChat module, the following error occurs. Is there a fix for it?
(In addition, it's interesting to note that both Success and Failure is logged at the end... which is it? :)
11:51:47:LlamaChat: Traceback (most recent call last):
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp_ctypes_extensions.py", line 67, in load_shared_library
11:51:47:LlamaChat: return ctypes.CDLL(str(lib_path), **cdll_args) # type: ignore
11:51:47:LlamaChat: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\runtimes\bin\windows\python311\Lib\ctypes_init_.py", line 376, in init
11:51:47:LlamaChat: self._handle = _dlopen(self.name, mode)
11:51:47:LlamaChat: ^^^^^^^^^^^^^^^^^^^^^^^^^
11:51:47:LlamaChat: FileNotFoundError: Could not find module 'C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp\lib\llama.dll' (or one of its dependencies). Try using the full path with constructor syntax.
11:51:47:LlamaChat: During handling of the above exception, another exception occurred:
11:51:47:LlamaChat: Traceback (most recent call last):
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\llama_chat_adapter.py", line 12, in
11:51:47:LlamaChat: from llama_chat import LlamaChat
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\llama_chat.py", line 7, in
11:51:47:LlamaChat: from llama_cpp import ChatCompletionRequestSystemMessage,
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp_init.py", line 1, in
11:51:47:LlamaChat: from .llama_cpp import *
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp\llama_cpp.py", line 38, in
11:51:47:LlamaChat: _lib = load_shared_library(_lib_base_name, _base_path)
11:51:47:LlamaChat: ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
11:51:47:LlamaChat: File "C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp_ctypes_extensions.py", line 69, in load_shared_library
11:51:47:LlamaChat: raise RuntimeError(f"Failed to load shared library '{lib_path}': {e}")
11:51:47:LlamaChat: RuntimeError: Failed to load shared library 'C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp\lib\llama.dll': Could not find module 'C:\Program Files\CodeProject\AI\modules\LlamaChat\bin\windows\python311\venv\lib\site-packages\llama_cpp\lib\llama.dll' (or one of its dependencies). Try using the full path with constructor syntax.
11:51:48:LlamaChat: Self test: Self-test failed
11:51:48:LlamaChat: Module setup time 00:04:08.44
11:51:48:LlamaChat: Setup complete
11:51:48:LlamaChat: Total setup time 00:04:14.77
11:51:48:LlamaChat: SETUP FAILED:
11:51:48:LlamaChat: - [LlamaChat] Self test failed
11:51:48:Module LlamaChat installed successfully.
Beta Was this translation helpful? Give feedback.
All reactions