Peter Larnholt commited on
Commit
951c827
·
1 Parent(s): b56faa8

Use py-airports package instead of pyairports and add debugging

Browse files
Files changed (2) hide show
  1. app.py +7 -0
  2. requirements.txt +1 -1
app.py CHANGED
@@ -34,6 +34,13 @@ if "AWQ" in MODEL_ID.upper():
34
 
35
  def launch_vllm():
36
  print(f"[vLLM] Launch: {MODEL_ID}")
 
 
 
 
 
 
 
37
  env = os.environ.copy()
38
  env["VLLM_USE_OUTLINES"] = "0" # disable outlines to avoid pyairports import
39
  subprocess.Popen(VLLM_ARGS, env=env)
 
34
 
35
  def launch_vllm():
36
  print(f"[vLLM] Launch: {MODEL_ID}")
37
+ # Debug: check if pyairports is available
38
+ try:
39
+ import pyairports
40
+ print(f"[DEBUG] pyairports found: {pyairports.__file__}")
41
+ except ImportError as e:
42
+ print(f"[DEBUG] pyairports NOT found: {e}")
43
+
44
  env = os.environ.copy()
45
  env["VLLM_USE_OUTLINES"] = "0" # disable outlines to avoid pyairports import
46
  subprocess.Popen(VLLM_ARGS, env=env)
requirements.txt CHANGED
@@ -14,4 +14,4 @@ accelerate>=0.30
14
  # Note: Even with VLLM_USE_OUTLINES=0, vLLM 0.5.5 imports outlines at module level
15
  outlines==0.0.46
16
  numba==0.59.1
17
- pyairports==0.0.1
 
14
  # Note: Even with VLLM_USE_OUTLINES=0, vLLM 0.5.5 imports outlines at module level
15
  outlines==0.0.46
16
  numba==0.59.1
17
+ py-airports>=2.1.0