http://127.0.0.1:5000/ 显示:“{
"error": "\u8d44\u6e90\u672a\u627e\u5230",
"message": "404 Not Found: The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again."
}”
小黑窗显示:“ File "E:\Python310\lib\logging\__init__.py", line 1103, in emit
stream.write(msg + self.terminator)
UnicodeEncodeError: 'gbk' codec can't encode character '\U0001f3e2' in position 46: illegal multibyte sequence
Call stack:
File "E:\AI_System\agent\agent_core.py", line 24, in <module>
from agent.cognitive_architecture import CognitiveArchitecture
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 992, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "E:\AI_System\agent\__init__.py", line 5, in <module>
from .autonomous_agent import AutonomousAgent # 修改此处
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "E:\AI_System\agent\autonomous_agent.py", line 19, in <module>
from core.config import system_config
File "<frozen importlib._bootstrap>", line 1027, in _find_and_load
File "<frozen importlib._bootstrap>", line 1006, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 688, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 883, in exec_module
File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed
File "E:\AI_System\core\config.py", line 329, in <module>
system_config = CoreConfig()
File "E:\AI_System\core\config.py", line 81, in __init__
self.log_config()
File "E:\AI_System\core\config.py", line 316, in log_config
logger.info("🏢 核心配置摘要:")
Message: '🏢 核心配置摘要:'
Arguments: ()
2025-08-11 21:49:50,262 - CoreConfig - INFO - 🏢 核心配置摘要:
2025-08-11 21:49:50,264 - CoreConfig - INFO - AI系统路径: E:\AI_Workspace
2025-08-11 21:49:50,264 - CoreConfig - INFO - AI系统路径: E:\AI_Workspace
2025-08-11 21:49:50,264 - CoreConfig - INFO - 临时文件路径: E:\AI_Workspace\ai_temp
2025-08-11 21:49:50,264 - CoreConfig - INFO - 临时文件路径: E:\AI_Workspace\ai_temp
2025-08-11 21:49:50,264 - CoreConfig - INFO - 代理路径: E:\AI_System\agent
2025-08-11 21:49:50,264 - CoreConfig - INFO - 代理路径: E:\AI_System\agent
2025-08-11 21:49:50,264 - CoreConfig - INFO - Web UI路径: E:\AI_System\web_ui
2025-08-11 21:49:50,264 - CoreConfig - INFO - Web UI路径: E:\AI_System\web_ui
2025-08-11 21:49:50,264 - CoreConfig - INFO - 模型目录: E:\ai_temp\models
2025-08-11 21:49:50,264 - CoreConfig - INFO - 模型目录: E:\ai_temp\models
2025-08-11 21:49:50,264 - CoreConfig - INFO - 默认模型: qwen2-7b (设备: cpu, 使用GPU: True)
2025-08-11 21:49:50,264 - CoreConfig - INFO - 默认模型: qwen2-7b (设备: cpu, 使用GPU: True)
2025-08-11 21:49:50,264 - CoreConfig - INFO - 日志级别: 20 (日志目录: E:\AI_System\logs)
2025-08-11 21:49:50,264 - CoreConfig - INFO - 日志级别: 20 (日志目录: E:\AI_System\logs)
2025-08-11 21:49:50,265 - CoreConfig - INFO - 熔断阈值: 5
2025-08-11 21:49:50,265 - CoreConfig - INFO - 熔断阈值: 5
2025-08-11 21:49:50,265 - CoreConfig - INFO - ============================================================
2025-08-11 21:49:50,265 - CoreConfig - INFO - ============================================================
Traceback (most recent call last):
File "E:\AI_System\agent\agent_core.py", line 24, in <module>
from agent.cognitive_architecture import CognitiveArchitecture
File "E:\AI_System\agent\__init__.py", line 5, in <module>
from .autonomous_agent import AutonomousAgent # 修改此处
File "E:\AI_System\agent\autonomous_agent.py", line 20, in <module>
from core.exceptions import DependencyError, SubsystemFailure
ImportError: cannot import name 'SubsystemFailure' from 'core.exceptions' (E:\AI_System\core\exceptions.py)
[3/3] 启动用户界面...
系统启动完成!自动打开监控页面...
✅ Eventlet monkey patch applied at startup
2025-08-11 21:49:53 [INFO] WebServer: ==================================================
2025-08-11 21:49:53 [INFO] WebServer: 🚀 开始初始化AI系统
2025-08-11 21:49:53 [INFO] WebServer: ==================================================
2025-08-11 21:49:53 [INFO] WebServer: 项目根目录: E:\AI_System
2025-08-11 21:49:53 [INFO] WebServer: 添加路径: E:\AI_System\agent
2025-08-11 21:49:53 [INFO] WebServer: 添加路径: E:\AI_System\core
2025-08-11 21:49:53 [INFO] WebServer: 添加路径: E:\AI_System\utils
2025-08-11 21:49:53 [INFO] WebServer: 添加路径: E:\AI_System\config
2025-08-11 21:49:53 [INFO] WebServer: 添加路径: E:\AI_System\cognitive_arch
2025-08-11 21:49:53 [INFO] WebServer: 添加路径: E:\AI_System\environment
2025-08-11 21:49:53 [INFO] WebServer: ✅ 模拟AI核心初始化
2025-08-11 21:49:53 [INFO] WebServer: ✅ 模拟硬件管理器初始化
2025-08-11 21:49:53 [INFO] WebServer: ✅ 模拟生活调度器初始化
2025-08-11 21:49:53 [INFO] WebServer: ✅ 模拟AI智能体初始化
2025-08-11 21:49:53 [INFO] WebServer: 环境管理器已启动
2025-08-11 21:49:53 [INFO] WebServer: ✅ 环境管理器初始化成功
2025-08-11 21:49:53 [INFO] WebServer: ✅ 模拟进化监视器启动
2025-08-11 21:49:53 [INFO] WebServer: ✅ 所有系统组件初始化完成
2025-08-11 21:49:53 [INFO] WebServer: ✅ 使用eventlet异步模式
Server initialized for eventlet.
2025-08-11 21:49:53 [INFO] WebServer: 开发服务器运行在 http://0.0.0.0:5000
(14832) wsgi starting up on http://0.0.0.0:5000
================================================
运行中进程:
python.exe 8532 Console 1 211,552 K
python.exe 14832 Console 1 50,572 K
================================================
按任意键退出此窗口(服务将继续在后台运行)...
(14832) accepted ('127.0.0.1', 50710)
127.0.0.1 - - [11/Aug/2025 22:04:34] "GET / HTTP/1.1" 404 340 0.000997
(14832) accepted ('127.0.0.1', 50713)
127.0.0.1 - - [11/Aug/2025 22:04:34] "GET /favicon.ico HTTP/1.1" 404 212 0.001000
127.0.0.1 - - [11/Aug/2025 22:08:27] "GET / HTTP/1.1" 404 340 0.000997
(14832) accepted ('127.0.0.1', 50750)”我应该做什么
最新发布