Closed PopRang closed 3 months ago
Please double-check if the sphinx packages are well installed.
请仔细检查 sphinx 包是否已正确安装。
我使用pip install sphinx安装的,需要指定哪个版本吗 正在运行 Sphinx v7.3.7
Extension error: 无法导入扩展 sphinxcontrib.mermaid (exception: No module named 'sphinxcontrib.mermaid') 后续还是上面那个报错
sphinx 7.7.3 should work. Regarding your issue, please try "pip install sphinxcontrib-mermaid"
sphinx 7.7.3 should work. Regarding your issue, please try "pip install sphinxcontrib-mermaid" sphinx最新是v7.3.7吧?升级7.7.3告知我没有这个版本 关于sphinx的依赖都安装好了,现在启动没有关于无法导入扩展之类的错误。但是还是出现了 python rag_example.py 2024-06-21 18:02:46.599 | INFO | agentscope.models:read_model_configs:186 - Load configs for model wrapper: qwen_emb_config, qwen_config 2024-06-21 18:02:46.604 | INFO | agentscope.models.model:init:201 - Initialize model by configuration [qwen_config] 2024-06-21 18:02:46.605 | INFO | agentscope.utils.monitor:register:417 - Register metric [qwen-max.call_counter] to SqliteMonitor with unit [times] and quota [None] 2024-06-21 18:02:46.607 | INFO | agentscope.utils.monitor:register:417 - Register metric [qwen-max.prompt_tokens] to SqliteMonitor with unit [token] and quota [None] 2024-06-21 18:02:46.609 | INFO | agentscope.utils.monitor:register:417 - Register metric [qwen-max.completion_tokens] to SqliteMonitor with unit [token] and quota [None] 2024-06-21 18:02:46.610 | INFO | agentscope.utils.monitor:register:417 - Register metric [qwen-max.total_tokens] to SqliteMonitor with unit [token] and quota [None] 2024-06-21 18:02:46.612 | INFO | agentscope.models.model:init:201 - Initialize model by configuration [qwen_config] 2024-06-21 18:02:46.613 | INFO | agentscope.models.model:init:201 - Initialize model by configuration [qwen_config] 2024-06-21 18:02:46.615 | INFO | agentscope.models.model:init:201 - Initialize model by configuration [qwen_config] 2024-06-21 18:02:46.616 | INFO | agentscope.models.model:init:201 - Initialize model by configuration [qwen_config] 2024-06-21 18:02:46.617 | INFO | agentscope.rag.knowledge_bank:init:48 - Loading configs from configs/knowledge_config.json bank {'knowledge_id': 'agentscope_code_rag', 'emb_model_config_name': 'qwen_emb_config', 'chunk_size': 2048, 'chunk_overlap': 40, 'data_processing': [{'load_data': {'loader': {'create_object': True, 'module': 'llama_index.core', 'class': 'SimpleDirectoryReader', 'init_args': {'input_dir': '../../src/agentscope', 'recursive': True, 'required_exts': ['.py']}}}, 'store_and_index': {'transformations': [{'create_object': True, 'module': 'llama_index.core.node_parser', 'class': 'CodeSplitter', 'init_args': {'language': 'python', 'chunk_lines': 100}}]}}]} 2024-06-21 18:02:46.618 | INFO | agentscope.models.model:init:201 - Initialize model by configuration [qwen_emb_config] 2024-06-21 18:02:46.618 | INFO | agentscope.utils.monitor:register:417 - Register metric [text-embedding-v2.call_counter] to SqliteMonitor with unit [times] and quota [None] 2024-06-21 18:02:46.620 | INFO | agentscope.utils.monitor:register:417 - Register metric [text-embedding-v2.total_tokens] to SqliteMonitor with unit [token] and quota [None] bank {'knowledge_id': 'agentscope_api_rag', 'emb_model_config_name': 'qwen_emb_config', 'chunk_size': 1024, 'chunk_overlap': 40, 'data_processing': [{'load_data': {'loader': {'create_object': True, 'module': 'llama_index.core', 'class': 'SimpleDirectoryReader', 'init_args': {'input_dir': '../../docs/docstring_html/', 'required_exts': ['.html']}}}}]} 2024-06-21 18:02:58.610 | INFO | agentscope.rag.llama_index_knowledge:_load_index:263 - index loaded from /Users/wr/Documents/字节/agentscope/examples/conversation_with_RAG_agents/runs/agentscope_code_rag 2024-06-21 18:02:58.610 | INFO | agentscope.rag.llama_index_knowledge:_get_retriever:445 - similarity_top_k=5 2024-06-21 18:02:58.610 | INFO | agentscope.rag.llama_index_knowledge:_get_retriever:453 - retriever is ready. 2024-06-21 18:02:58.611 | INFO | agentscope.rag.llama_index_knowledge:_init_rag:245 - RAG with knowledge ids: agentscope_code_rag initialization completed!
2024-06-21 18:02:58.611 | INFO | agentscope.rag.knowledge_bank:add_data_as_knowledge:131 - data loaded for knowledge_id = agentscope_code_rag.
2024-06-21 18:02:58.620 | INFO | agentscope.models.model:init:201 - Initialize model by configuration [qwen_emb_config]
2024-06-21 18:02:58.622 | INFO | agentscope.rag.knowledge:_prepare_args_from_config:131 - load and build object: SimpleDirectoryReader
Traceback (most recent call last):
File "/Users/wr/Documents/字节/agentscope/examples/conversation_with_RAG_agents/rag_example.py", line 148, in
conda list | grep sphinx
sphinx 7.3.7 pypi_0 pypi sphinx-rtd-theme 2.0.0 pypi_0 pypi sphinxcontrib-applehelp 1.0.8 pypi_0 pypi sphinxcontrib-devhelp 1.0.6 pypi_0 pypi sphinxcontrib-htmlhelp 2.0.5 pypi_0 pypi sphinxcontrib-jquery 4.1 pypi_0 pypi sphinxcontrib-jsmath 1.0.1 pypi_0 pypi sphinxcontrib-mermaid 0.9.2 pypi_0 pypi sphinxcontrib-qthelp 1.0.7 pypi_0 pypi sphinxcontrib-serializinghtml 1.1.10 pypi_0 pypi
两种可能的解决方案:
pip install -e .[full]
形式重新安装 agentscope感谢,解决了这个问题,谢谢两位老师
请问怎么解决呢