UltraRAG icon indicating copy to clipboard operation
UltraRAG copied to clipboard

ModuleNotFoundError: No module named "vllm._C"

Open NebulaIC1805 opened this issue 1 year ago • 2 comments

Deploy via Conda met the open issue as below:

warnings.warn("failed to load MilvusIndex beacause not available qdrant_client, ignored it if you do not need it") 2025-02-20 16:10:05.242 Uncaught app execution Traceback (most recent call last): File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\streamlit\runtime\scriptrunner\exec_code.py", line 121, in exec_func_with_error_handling result = func() File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\streamlit\runtime\scriptrunner\script_runner.py", line 591, in code_to_exec exec(code, module.dict) File "D:\UltraRAG\ultrarag\webui\webui.py", line 4, in from components.global_config import global_config File "D:\UltraRAG\ultrarag/webui\components\global_config.py", line 7, in from ultrarag.webui.components.load_btn import load_btn File "D:\UltraRAG\ultrarag\webui\components\load_btn.py", line 7, in from ultrarag.modules.llm import OpenaiLLM, HuggingfaceClient, HuggingFaceServer, VllmServer File "D:\UltraRAG\ultrarag\modules\llm_init_.py", line 4, in from .vllm_like import VllmServer File "D:\UltraRAG\ultrarag\modules\llm\vllm_like.py", line 6, in from vllm import LLM, SamplingParams File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm_init_.py", line 3, in from vllm.engine.arg_utils import AsyncEngineArgs, EngineArgs File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\engine\arg_utils.py", line 11, in from vllm.config import (CacheConfig, CompilationConfig, ConfigFormat, File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\config.py", line 22, in from vllm.model_executor.layers.quantization import (QUANTIZATION_METHODS, File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\model_executor_init_.py", line 1, in from vllm.model_executor.parameter import (BasevLLMParameter, File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\model_executor\parameter.py", line 7, in from vllm.distributed import get_tensor_model_parallel_rank File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\distributed_init_.py", line 1, in from .communication_op import * File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\distributed\communication_op.py", line 6, in from .parallel_state import get_tp_group File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\distributed\parallel_state.py", line 38, in import vllm.distributed.kv_transfer.kv_transfer_agent as kv_transfer File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\distributed\kv_transfer\kv_transfer_agent.py", line 15, in from vllm.distributed.kv_transfer.kv_connector.factory import ( File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\distributed\kv_transfer\kv_connector\factory.py", line 3, in from .base import KVConnectorBase File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\distributed\kv_transfer\kv_connector\base.py", line 14, in from vllm.sequence import IntermediateTensors File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\sequence.py", line 16, in from vllm.inputs import SingletonInputs, SingletonInputsAdapter File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\inputs_init_.py", line 7, in from .registry import (DummyData, InputContext, InputProcessingContext, File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\inputs\registry.py", line 13, in from vllm.transformers_utils.tokenizer import AnyTokenizer File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\transformers_utils\tokenizer.py", line 16, in from vllm.utils import make_async File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\utils.py", line 48, in from vllm.platforms import current_platform File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\platforms_init_.py", line 100, in from .cuda import CudaPlatform File "C:\Users\nebula23.conda\envs\ultrarag\lib\site-packages\vllm\platforms\cuda.py", line 15, in import vllm._C # noqa ModuleNotFoundError: No module named 'vllm._C'

NebulaIC1805 avatar Feb 20 '25 08:02 NebulaIC1805

Please confirm that your vllm version is >=0.6.4. If the issue persists, try recreating the virtual environment and reinstalling the dependencies.

ChenYX24 avatar Feb 21 '25 05:02 ChenYX24

Please confirm that your vllm version is >=0.6.4. If the issue persists, try recreating the virtual environment and reinstalling the dependencies.

I also encountered the same problem. I deployed it on Windows 10 via Conda. May I ask if it can be deployed on the Windows system or does it need to be deployed on Linux?

KoorinoRuri avatar Feb 25 '25 06:02 KoorinoRuri