[fix]document:pandas.read_excel error: Missing optional dependency 'python-calamine'.

This commit is contained in:
lixiangcheng1
2025-12-30 17:44:37 +08:00
parent 724eb4f801
commit 82b9925448
4 changed files with 12 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ class Document(Base):
"html4excel": False, "html4excel": False,
"graphrag": { "graphrag": {
"use_graphrag": False, "use_graphrag": False,
"scene_name": "",
"entity_types": [ "entity_types": [
"organization", "organization",
"person", "person",
@@ -33,7 +34,9 @@ class Document(Base):
"event", "event",
"category" "category"
], ],
"method": "general" "method": "general",
"resolution": True,
"community": True
} }
}, comment="default parser config") }, comment="default parser config")
chunk_num = Column(Integer, default=0, comment="chunk num") chunk_num = Column(Integer, default=0, comment="chunk num")

View File

@@ -65,6 +65,7 @@ class Knowledge(Base):
"html4excel": False, "html4excel": False,
"graphrag": { "graphrag": {
"use_graphrag": False, "use_graphrag": False,
"scene_name": "",
"entity_types": [ "entity_types": [
"organization", "organization",
"person", "person",
@@ -72,7 +73,9 @@ class Knowledge(Base):
"event", "event",
"category" "category"
], ],
"method": "general" "method": "general",
"resolution": True,
"community": True
} }
}, },
comment="default parser config") comment="default parser config")

View File

@@ -135,6 +135,8 @@ dependencies = [
"graspologic==3.4.5.dev2", "graspologic==3.4.5.dev2",
"markdown-to-json==2.1.1", "markdown-to-json==2.1.1",
"valkey==6.0.2", "valkey==6.0.2",
"python-calamine>=0.4.0",
"xlrd==2.0.2"
] ]
[tool.pytest.ini_options] [tool.pytest.ini_options]

View File

@@ -129,3 +129,5 @@ editdistance==0.8.1
graspologic==3.4.5.dev2 graspologic==3.4.5.dev2
markdown-to-json==2.1.1 markdown-to-json==2.1.1
valkey==6.0.2 valkey==6.0.2
python-calamine>=0.4.0
xlrd==2.0.2