samwaugh commited on
Commit
abcbf88
·
1 Parent(s): 8a51c8c

Nw try fix

Browse files
backend/runner/__pycache__/config.cpython-313.pyc ADDED
Binary file (26.2 kB). View file
 
backend/runner/config.py CHANGED
@@ -56,15 +56,17 @@ if not WRITE_ROOT.exists():
56
  WRITE_ROOT.mkdir(parents=True, exist_ok=True)
57
  print(f"✅ Created WRITE_ROOT: {WRITE_ROOT}")
58
  except Exception as e:
59
- print(f"Failed to create {WRITE_ROOT}: {e}")
60
- raise RuntimeError(f"Cannot create writable directory: {e}")
 
61
 
62
- # Check write permissions
63
- if not os.access(WRITE_ROOT, os.W_OK):
64
  print(f"❌ WRITE_ROOT {WRITE_ROOT} is not writable")
65
  print(f"❌ Current permissions: {oct(WRITE_ROOT.stat().st_mode)[-3:]}")
66
  print(f"❌ Owner: {WRITE_ROOT.owner()}")
67
- raise RuntimeError(f"Directory {WRITE_ROOT} is not writable")
 
68
 
69
  print(f"✅ Using WRITE_ROOT: {WRITE_ROOT}")
70
  print(f"✅ Using READ_ROOT: {DATA_READ_ROOT}")
@@ -569,5 +571,5 @@ def get_markdown_dir(force_refresh: bool = False) -> Path:
569
  return DATA_READ_ROOT / "marker_output"
570
 
571
  # Legacy compatibility
572
- JSON_DATASETS = load_json_datasets
573
  EMBEDDINGS_DATASETS = load_embeddings_datasets
 
56
  WRITE_ROOT.mkdir(parents=True, exist_ok=True)
57
  print(f"✅ Created WRITE_ROOT: {WRITE_ROOT}")
58
  except Exception as e:
59
+ print(f"⚠️ Failed to create {WRITE_ROOT}: {e}")
60
+ print(f"⚠️ This may be expected in local development - continuing anyway")
61
+ # Don't raise an error, just continue
62
 
63
+ # Check write permissions (only if directory exists)
64
+ if WRITE_ROOT.exists() and not os.access(WRITE_ROOT, os.W_OK):
65
  print(f"❌ WRITE_ROOT {WRITE_ROOT} is not writable")
66
  print(f"❌ Current permissions: {oct(WRITE_ROOT.stat().st_mode)[-3:]}")
67
  print(f"❌ Owner: {WRITE_ROOT.owner()}")
68
+ print(f"⚠️ This may be expected in local development - continuing anyway")
69
+ # Don't raise an error, just continue
70
 
71
  print(f"✅ Using WRITE_ROOT: {WRITE_ROOT}")
72
  print(f"✅ Using READ_ROOT: {DATA_READ_ROOT}")
 
571
  return DATA_READ_ROOT / "marker_output"
572
 
573
  # Legacy compatibility
574
+ JSON_DATASETS = load_json_datasets()
575
  EMBEDDINGS_DATASETS = load_embeddings_datasets