Skip to content

Commit

Permalink
Merge pull request #516 from ShanGor/main
Browse files Browse the repository at this point in the history
Fix the async issue while running on Windows
  • Loading branch information
LarFii authored Dec 27, 2024
2 parents 35e8c76 + 42b3690 commit c022db4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lightrag/kg/age_impl.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import asyncio
import inspect
import json
import os
import os, sys
from contextlib import asynccontextmanager
from dataclasses import dataclass
from typing import Any, Dict, List, NamedTuple, Optional, Tuple, Union
Expand All @@ -20,6 +20,9 @@

from ..base import BaseGraphStorage

if sys.platform.startswith("win"):
import asyncio.windows_events
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())

class AGEQueryException(Exception):
"""Exception for the AGE queries."""
Expand Down

0 comments on commit c022db4

Please sign in to comment.