OpenManus试用(终于成功跑通了)

https://github.com/mannaandpoem/OpenManus

本地代码地址:

通过main.py启动:

遇到的问题:

1、deepseek-reasoner不支持函数调用:

2、gpt-4o限速,无法使用:

3、尝试本地部署ollama,加载Qwen模型,成功调通模型:

总结:20250314:但是能力还不如browse-use默认的能力;也达不到Manus的demo演示能力;
具体的问题:能完成浏览器的自动访问,和信息提取,但是下一步任务丢失,像是记忆丢失了;

4、使用ollama运行llama3.3,运行main.py直接报错:Tool 'web_search' encountered a problem: '<' not supported between instances of 'int' and 'str'

5、使用AZURE OPENAI 模型终于跑通了:

使用的AWS云上部署的gpt-4o,地址属于公司业务,所以不公开了;

源码需要做关键字适配修改:

生成在本地的文件:

完整运行日志如下:

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最近一周星数增长最快的项目,并以将信息提取并保存成markdown文件,供我查看
2025-03-17 21:28:07.020 | WARNING  | __main__:main:15 - Processing your request...
2025-03-17 21:28:07.020 | INFO     | app.agent.base:run:137 - Executing step 1/20
2025-03-17 21:28:10.583 | INFO     | app.agent.toolcall:think:54 - ✨ Manus's thoughts: None
2025-03-17 21:28:10.583 | INFO     | app.agent.toolcall:think:55 - 🛠️ Manus selected 1 tools to use
2025-03-17 21:28:10.583 | INFO     | app.agent.toolcall:think:59 - 🧰 Tools being prepared: ['web_search']
2025-03-17 21:28:10.584 | INFO     | app.agent.toolcall:execute_tool:145 - 🔧 Activating tool: 'web_search'...
2025-03-17 21:28:13.221 | INFO     | app.agent.toolcall:act:118 - 🎯 Tool 'web_search' completed its mission! Result: Observed output of cmd `web_search` executed:
['https://github.com/trending', 'https://star-history.com/', 'https://dev.to/leamsigc/top-10-trending-github-repositories-january-2025-1f24', 'https://gitstar-ranking.com/repositories', 'https://gitstar-ranking.com/']
2025-03-17 21:28:13.221 | INFO     | app.agent.base:run:137 - Executing step 2/20
2025-03-17 21:28:14.406 | INFO     | app.agent.toolcall:think:54 - ✨ Manus's thoughts: None
2025-03-17 21:28:14.407 | INFO     | app.agent.toolcall:think:55 - 🛠️ Manus selected 1 tools to use
2025-03-17 21:28:14.408 | INFO     | app.agent.toolcall:think:59 - 🧰 Tools being prepared: ['browser_use']
2025-03-17 21:28:14.408 | INFO     | app.agent.toolcall:execute_tool:145 - 🔧 Activating tool: 'browser_use'...
2025-03-17 21:28:20.955 | INFO     | app.agent.toolcall:act:118 - 🎯 Tool 'browser_use' completed its mission! Result: Observed output of cmd `browser_use` executed:
Navigated to https://github.com/trending
2025-03-17 21:28:20.956 | INFO     | app.agent.base:run:137 - Executing step 3/20
2025-03-17 21:28:22.782 | INFO     | app.agent.toolcall:think:54 - ✨ Manus's thoughts: None
2025-03-17 21:28:22.783 | INFO     | app.agent.toolcall:think:55 - 🛠️ Manus selected 1 tools to use
2025-03-17 21:28:22.783 | INFO     | app.agent.toolcall:think:59 - 🧰 Tools being prepared: ['browser_use']
2025-03-17 21:28:22.784 | INFO     | app.agent.toolcall:execute_tool:145 - 🔧 Activating tool: 'browser_use'...
2025-03-17 21:28:22.803 | INFO     | app.agent.toolcall:act:118 - 🎯 Tool 'browser_use' completed its mission! Result: Observed output of cmd `browser_use` executed:
Skip to content
Navigation Menu
Product
Solutions
Resources
Open Source
Enterprise
Pricing
Sign in
Sign up
Explore
Topics
Trending
Collections
Events
GitHub Sponsors
Trending

See what the GitHub community is most excited about today.

Repositories
Developers
Spoken Language: Any 
Language: Any 
Date range: Today 
 Sponsor
 Star
 glanceapp / glance

A self-hosted dashboard that puts all your feeds in one place

 Go  16,013  561 Built by     
 2,039 stars today
 Star
 langchain-ai / ollama-deep-researcher

Fully local web research and report writing assistant

 Python  3,804  446 Built by     
 464 stars today
 Star
 nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration

 Lua  22,676  29,870 Built by     
 109 stars today
 Star
 microsoft / RD-Agent

Research and development (R&D) is crucial for the enhancement of industrial productivity, especially in the AI era, where the core aspects of R&D are mainly focused on data and models. We are committed to automating these high-value generic R&D processes through our open source R&D automation tool RD-Agent, which lets AI drive data-driven AI.

 Python  2,911  236 Built by     
 370 stars today
 Star
 calcom / cal.com

Scheduling infrastructure for absolutely everyone.

 TypeScript  34,916  8,896 Built by     
 383 stars today
 Sponsor
 Star
 patchy631 / ai-engineering-hub
 Jupyter Notebook  5,029  980 Built by     
 319 stars today
 Star
 RIP-Comm / sossoldi

"Sossoldi" is a wealth management / personal finance / Net Worth tracking app, made with Flutter.

 Dart  835  147 Built by     
 256 stars today
 Sponsor
 Star
 xpipe-io / xpipe

Access your entire server infrastructure from your local desktop

 Java  9,066  304 Built by     
 667 stars today
 Star
 DiceDB / dice

DiceDB is an open-source, fast, reactive, in-memory database optimized for modern hardware.

 Go  8,391  1,215 Built by     
 173 stars today
 Star
 tj-actions / changed-files

 Githu
2025-03-17 21:28:22.803 | INFO     | app.agent.base:run:137 - Executing step 4/20
2025-03-17 21:28:34.501 | INFO     | app.agent.toolcall:think:54 - ✨ Manus's thoughts: None
2025-03-17 21:28:34.501 | INFO     | app.agent.toolcall:think:55 - 🛠️ Manus selected 1 tools to use
2025-03-17 21:28:34.501 | INFO     | app.agent.toolcall:think:59 - 🧰 Tools being prepared: ['file_saver']
2025-03-17 21:28:34.502 | INFO     | app.agent.toolcall:execute_tool:145 - 🔧 Activating tool: 'file_saver'...
2025-03-17 21:28:34.504 | INFO     | app.agent.toolcall:act:118 - 🎯 Tool 'file_saver' completed its mission! Result: Observed output of cmd `file_saver` executed:
Content successfully saved to GitHub_Trending_Repositories.md
2025-03-17 21:28:34.504 | INFO     | app.agent.base:run:137 - Executing step 5/20
2025-03-17 21:28:35.391 | INFO     | app.agent.toolcall:think:54 - ✨ Manus's thoughts: None
2025-03-17 21:28:35.392 | INFO     | app.agent.toolcall:think:55 - 🛠️ Manus selected 1 tools to use
2025-03-17 21:28:35.393 | INFO     | app.agent.toolcall:think:59 - 🧰 Tools being prepared: ['terminate']
2025-03-17 21:28:35.393 | INFO     | app.agent.toolcall:execute_tool:145 - 🔧 Activating tool: 'terminate'...
2025-03-17 21:28:36.228 | INFO     | app.agent.toolcall:_handle_special_tool:177 - 🏁 Special tool 'terminate' has completed the task!
2025-03-17 21:28:36.229 | INFO     | app.agent.toolcall:act:118 - 🎯 Tool 'terminate' completed its mission! Result: Observed output of cmd `terminate` executed:
The interaction has been completed with status: success
2025-03-17 21:28:36.229 | INFO     | __main__:main:17 - Request processing completed.

进程已结束,退出代码为 0
 

TOP问题汇总

Top Issues Dashboard · Issue #720 · mannaandpoem/OpenManus · GitHub

### 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 提供的功能模块以便更好地服务于深度学习框架的需求. #### 方法三:审查日志记录寻找线索 当遇到不明所以的异常状况时, 查看最近产生的日记条目往往能够提供有价值的提示信息帮助定位具体位置上的障碍所在. 最后提醒一下各位朋友注意定期更新软件包列表保持最新状态从而减少不必要的麻烦发生几率! --- ###
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值