咳咳咳,忘更新依赖了
This commit is contained in:
@@ -74,7 +74,7 @@ dependencies = [
|
|||||||
"websockets>=15.0.1",
|
"websockets>=15.0.1",
|
||||||
"aiomysql>=0.2.0",
|
"aiomysql>=0.2.0",
|
||||||
"aiosqlite>=0.21.0",
|
"aiosqlite>=0.21.0",
|
||||||
"inkfox>=0.1.0",
|
"inkfox>=0.1.1",
|
||||||
"rrjieba>=0.1.13",
|
"rrjieba>=0.1.13",
|
||||||
"mcp>=0.9.0",
|
"mcp>=0.9.0",
|
||||||
"sse-starlette>=2.2.1",
|
"sse-starlette>=2.2.1",
|
||||||
|
|||||||
@@ -10,17 +10,7 @@ from src.common.logger import get_logger
|
|||||||
|
|
||||||
logger = get_logger(__name__)
|
logger = get_logger(__name__)
|
||||||
|
|
||||||
# 仅允许规范导入路径:from inkfox.memory import PyMetadataIndex
|
from inkfox.memory import PyMetadataIndex as _RustIndex # type: ignore
|
||||||
try: # pragma: no cover
|
|
||||||
from inkfox.memory import PyMetadataIndex as _RustIndex # type: ignore
|
|
||||||
logger.debug("已从 inkfox.memory 成功导入 PyMetadataIndex")
|
|
||||||
except Exception as ex: # noqa: BLE001
|
|
||||||
# 不再做任何回退;强制要求正确的 Rust 模块子模块注册
|
|
||||||
raise RuntimeError(
|
|
||||||
"无法导入 inkfox.memory.PyMetadataIndex: %s\n"
|
|
||||||
"请确认: 1) 已在当前虚拟环境下执行 'maturin develop --release' 安装扩展; "
|
|
||||||
"2) 运行进程使用同一个 venv; 3) 没有旧的 'inkfox' 目录遮蔽 so/pyd; 4) Python 版本与编译匹配" % ex
|
|
||||||
) from ex
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class MemoryMetadataIndexEntry:
|
class MemoryMetadataIndexEntry:
|
||||||
|
|||||||
Reference in New Issue
Block a user