Repository: vllm-project/vllm
Issue category: Bug Report

Issue:
[Bug]: from vllm.platforms import current_platform infinite loop error with OpenVino Build. 
### Your current environment

Unrelated

### Model Input Dumps

Unrelated

### 🐛 Describe the bug

In OpenVino Build, from vllm.platforms import current_platform for OpenVino will...
 * reference openvino.py in vllm.platforms.openvino.py as OpenVino is identified as current platform
 * openvino.py line 4 will reference from vllm.utils import print_warning_once
 * vllm.utils line 40 will reference from vllm.platforms import current_platform
 * Due to circular self-reference, will throw error

This impacts any vllm functionality on the openvino build due to vllm requiring detection of the current_platform.

Resolution: **removing print_warning_once dependency from openvino.py will fix, either by defining print function locally or removing logging altogether from openvino.py**



### Before submitting a new issue...

- [X] Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the [documentation page](https://docs.vllm.ai/en/latest/), which can answer lots of frequently asked questions.


Hints:
cc @wangshuai09 

Patch:
diff --git a/vllm/platforms/openvino.py b/vllm/platforms/openvino.py
index 35dbe22abf7ff..31fe3f1fcbfe4 100644
--- a/vllm/platforms/openvino.py
+++ b/vllm/platforms/openvino.py
@@ -1,10 +1,12 @@
 import torch
 
 import vllm.envs as envs
-from vllm.utils import print_warning_once
+from vllm.logger import init_logger
 
 from .interface import Platform, PlatformEnum
 
+logger = init_logger(__name__)
+
 
 class OpenVinoPlatform(Platform):
     _enum = PlatformEnum.OPENVINO
@@ -27,5 +29,5 @@ def is_openvino_gpu(self) -> bool:
 
     @classmethod
     def is_pin_memory_available(self) -> bool:
-        print_warning_once("Pin memory is not supported on OpenViNO.")
+        logger.warning("Pin memory is not supported on OpenViNO.")
         return False


Test patch: