Openmanus首次本地运行成功

D:\code\github\OpenManus\.venv\Scripts\python.exe D:\code\github\OpenManus\main.py 
INFO     [browser_use] BrowserUse logging setup complete with level info
INFO     [root] Anonymized telemetry enabled. See https://docs.browser-use.com/development/telemetry for more information.
Enter your prompt: 获取github最近一周的热门项目,以md格式输出
2025-04-03 11:05:17.974 | WARNING  | __main__:main:15 - Processing your request...
2025-04-03 11:05:17.976 | INFO     | app.agent.base:run:140 - Executing step 1/20
2025-04-03 11:05:23.871 | INFO     | app.llm:update_token_count:251 - Token usage: Input=2381, Completion=149, Cumulative Input=2381, Cumulative Completion=149, Total=2530, Cumulative Total=2530
2025-04-03 11:05:23.871 | INFO     | app.agent.toolcall:think:80 - ✨ Manus's thoughts: I'll help you get the trending GitHub projects from the past week and output them in Markdown format. Let's break this down into steps:

1. Visit GitHub's trending page
2. Filter for the past week
3. Extract the trending repositories' information
4. Format the data as Markdown

Let's start:
2025-04-03 11:05:23.873 | INFO     | app.agent.toolcall:think:81 - 🛠️ Manus selected 1 tools to use
2025-04-03 11:05:23.873 | INFO     | app.agent.toolcall:think:85 - 🧰 Tools being prepared: ['browser_use']
2025-04-03 11:05:23.873 | INFO     | app.agent.toolcall:think:88 - 🔧 Tool arguments: {"action":"go_to_url","url":"https://github.com/trending"}
2025-04-03 11:05:23.874 | INFO     | app.agent.toolcall:execute_tool:179 - 🔧 Activating tool: 'browser_use'...
2025-04-03 11:05:31.153 | INFO     | app.agent.toolcall:act:149 - 🎯 Tool 'browser_use' completed its mission! Result: Observed output of cmd `browser_use` executed:
Navigated to https://github.com/trending
2025-04-03 11:05:31.154 | INFO     | app.agent.base:run:140 - Executing step 2/20
2025-04-03 11:05:36.631 | INFO     | app.llm:update_token_count:251 - Token usage: Input=2805, Completion=145, Cumulative Input=5186, Cumulative Completion=294, Total=2950, Cumulative Total=5480
2025-04-03 11:05:36.632 | INFO     | app.agent.toolcall:think:80 - ✨ Manus's thoughts: I can see we're on the GitHub trending page, but currently it's showing today's trending repositories by default. We need to filter it to show the trending repositories for the past week. 

Let's first check the available interactive elements to find the time range filter:
2025-04-03 11:05:36.632 | INFO     | app.agent.toolcall:think:81 - 🛠️ Manus selected 1 tools to use
2025-04-03 11:05:36.632 | INFO     | app.agent.toolcall:think:85 - 🧰 Tools being prepared: ['browser_use']
2025-04-03 11:05:36.632 | INFO     | app.agent.toolcall:think:88 - 🔧 Tool arguments: {"action":"extract_content","goal":"Find the interactive elements for changing the time period filter (today, this week, this month)"}
2025-04-03 11:05:36.632 | INFO     | app.agent.toolcall:execute_tool:179 - 🔧 Activating tool: 'browser_use'...
2025-04-03 11:05:45.266 | INFO     | app.llm:update_token_count:251 - Token usage: Input=17635, Completion=227, Cumulative Input=22821, Cumulative Completion=521, Total=17862, Cumulative Total=23342
2025-04-03 11:05:45.268 | INFO     | app.agent.toolcall:act:149 - 🎯 Tool 'browser_use' completed its mission! Result: Observed output of cmd `browser_use` executed:
Extracted from page:
{
  "metadata": {
    "source": "GitHub Trending page"
  },
  "text": "The interactive elements for changing the time period filter are located in the 'Date range' section of the page. The current selection shows 'Today' and there are links for other time periods:\n\n1. Today - https://github.com/trending?since=daily\n2. This week - https://github.com/trending?since=weekly\n3. This month - https://github.com/trending?since=monthly\n\nThese elements appear under the label 'Adjust time span' and allow users to filter trending repositories based on different time periods."
}

2025-04-03 11:05:45.268 | INFO     | app.agent.base:run:140 - Executing step 3/20
2025-04-03 11:05:50.147 | INFO     | app.llm:update_token_count:251 - Token usage: Input=3375, Completion=121, Cumulative Input=26196, Cumulative Completion=642, Total=3496, Cumulative Total=26838
2025-04-03 11:05:50.148 | INFO     | app.agent.toolcall:think:80 - ✨ Manus's thoughts: I can see we need to navigate to the weekly trending repositories. Based on the extraction results, we have the direct URL for the weekly trending repositories. Let's navigate to it:
2025-04-03 11:05:50.149 | INFO     | app.agent.toolcall:think:81 - 🛠️ Manus selected 1 tools to use
2025-04-03 11:05:50.149 | INFO     | app.agent.toolcall:think:85 - 🧰 Tools being prepared: ['browser_use']
2025-04-03 11:05:50.150 | INFO     | app.agent.toolcall:think:88 - 🔧 Tool arguments: {"action":"go_to_url","url":"https://github.com/trending?since=weekly"}
2025-04-03 11:05:50.150 | INFO     | app.agent.toolcall:execute_tool:179 - 🔧 Activating tool: 'browser_use'...
2025-04-03 11:05:51.284 | INFO     | app.agent.toolcall:act:149 - 🎯 Tool 'browser_use' completed its mission! Result: Observed output of cmd `browser_use` executed:
Navigated to https://github.com/trending?since=weekly
2025-04-03 11:05:51.284 | INFO     | app.agent.base:run:140 - Executing step 4/20
2025-04-03 11:05:57.478 | INFO     | app.llm:update_token_count:251 - Token usage: Input=3780, Completion=133, Cumulative Input=29976, Cumulative Completion=775, Total=3913, Cumulative Total=30751
2025-04-03 11:05:57.479 | INFO     | app.agent.toolcall:think:80 - ✨ Manus's thoughts: Great! Now we're on the GitHub trending repositories for the past week. Let's extract the information about these trending repositories to create our Markdown output.
2025-04-03 11:05:57.479 | INFO     | app.agent.toolcall:think:81 - 🛠️ Manus selected 1 tools to use
2025-04-03 11:05:57.479 | INFO     | app.agent.toolcall:think:85 - 🧰 Tools being prepared: ['browser_use']
2025-04-03 11:05:57.479 | INFO     | app.agent.toolcall:think:88 - 🔧 Tool arguments: {"action":"extract_content","goal":"Extract information about trending repositories including: repository name, owner, description, number of stars, programming language, and star growth for this week for each repository"}
2025-04-03 11:05:57.479 | INFO     | app.agent.toolcall:execute_tool:179 - 🔧 Activating tool: 'browser_use'...
2025-04-03 11:06:07.415 | INFO     | app.llm:update_token_count:251 - Token usage: Input=17156, Completion=304, Cumulative Input=47132, Cumulative Completion=1079, Total=17460, Cumulative Total=48211
2025-04-03 11:06:07.416 | INFO     | app.agent.toolcall:act:149 - 🎯 Tool 'browser_use' completed its mission! Result: Observed output of cmd `browser_use` executed:
Extracted from page:
{
  "metadata": {
    "source": "GitHub Trending Page"
  },
  "text": "The page appears to be the GitHub Trending page showing repositories trending for the week, but the actual repository data isn't fully rendered in the provided content. The page shows the interface for filtering trending repositories by spoken language and programming language, but doesn't contain the actual trending repository listings with their names, owners, descriptions, stars count, programming languages, or star growth data.\n\nThe page content shows:\n1. GitHub navigation menu\n2. Trending page header\n3. Filter options (Repositories/Developers tabs)\n4. Spoken Language filter dropdown (with many language options)\n5. Programming Language filter dropdown (with extensive language options)\n\nHowever, the actual repository cards/content that would display the requested information (repository names, owners, descriptions, star counts, programming languages, and star growth) are not present in the provided HTML content."
}

2025-04-03 11:06:07.416 | INFO     | app.agent.base:run:140 - Executing step 5/20
2025-04-03 11:06:13.205 | INFO     | app.llm:update_token_count:251 - Token usage: Input=4402, Completion=134, Cumulative Input=51534, Cumulative Completion=1213, Total=4536, Cumulative Total=52747
2025-04-03 11:06:13.206 | INFO     | app.agent.toolcall:think:80 - ✨ Manus's thoughts: I can see the trending repositories information is visible on the screen, but it seems the previous extraction didn't capture all the details correctly. Let's try a more specific extraction approach:
2025-04-03 11:06:13.206 | INFO     | app.agent.toolcall:think:81 - 🛠️ Manus selected 1 tools to use
2025-04-03 11:

### OpenManus 依赖运行失败的原因分析 OpenManus 是一种可能涉及复杂计算或模型推理的应用程序,其依赖项运行失败通常由以下几个方面引起: 1. **资源限制配置不当** 如果应用程序需要特定的系统资源设置(如内存限制),而这些设置未被正确调整,则可能导致运行失败。例如,在 Kubernetes 集群中尝试通过 `initContainers` 调整 `ulimit -l` 值通常是不可行的,因为 `initContainers` 和主容器之间的环境是隔离的[^2]。 2. **硬件加速支持缺失** 若 OpenManus 使用 GPU 加速功能,但 CUDA 或其他必要的硬件驱动未启用,可能会导致性能下降甚至完全无法运行。例如,为了启用 CUDA 并优化 GPU 性能,可以按照如下方式启动服务: ```bash OLLAMA_ORIGINS="*" OLLAMA_CUDA=1 ollama serve & ``` 此命令确保了 CUDA 支持并允许跨域请求[^3]。 3. **权限不足或其他系统级约束** 应用程序可能因缺乏足够的文件访问权限、网络端口绑定权限等原因而崩溃。此外,某些安全策略(如 SELinux 或 AppArmor)也可能阻止应用正常工作。 4. **依赖版本不匹配** 开发者使用的库版本与实际部署环境中安装的版本可能存在差异,这会引发兼容性问题。因此建议始终验证所有外部依赖是否满足最低要求。 --- ### 解决方案 针对上述提到的各种潜在错误原因,以下是具体的解决方案: #### 方法一:调整操作系统级别的资源分配参数 如果发现问题是由于超出了默认的核心文件大小限制所造成的话,可以通过编辑 `/etc/security/limits.conf` 文件来永久更改用户的软硬限制值: ```plaintext * soft core unlimited * hard core unlimited ``` #### 方法二:确认 GPU 及相关工具链已正确定位 对于那些高度依赖图形处理器执行任务的工作负载来说,请务必遵循官方文档指示完成显卡初始化过程以及加载相应的 runtime libraries 。比如上面给出的例子就展示了如何利用环境变量激活 NVIDIA 提供的功能模块以便更好地服务于深度学习框架的需求. #### 方法三:审查日志记录寻找线索 当遇到不明所以的异常状况时, 查看最近产生的日记条目往往能够提供有价值的提示信息帮助定位具体位置上的障碍所在. 最后提醒一下各位朋友注意定期更新软件包列表保持最新状态从而减少不必要的麻烦发生几率! --- ###
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值