binary-husky / binary-husky/gpt_academic
[Bug]: protobuf版本的依赖库冲突
- Dominant language
- Python
- Stars
- 71.3k
- Forks
- 8.3k
- PR merge metrics
- No merged PRs in 30d
Description
### Installation Method | 安装方法与平台
OneKeyInstall (一键安装脚本-windows)
### Version | 版本
Others | 非最新版
### OS | 操作系统
Windows
### Describe the bug | 简述
requirements.txt 文件中 protobuf==3.20 和 autogen-core 0.6.4 需要的 protobuf~=5.29.3 之间存在冲突。若直接修改protobuf~=5.29.3,则会导致新的问题,即ResolutionTooDeep: 200000,表明依赖解析器在尝试解决依赖关系时达到了最大轮数限制。
### Screen Shot | 有帮助的截图
1.
INFO: pip is looking at multiple versions of autogen-core to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install autogen-agentchat and protobuf==3.20 because these package versions have conflicting dependencies.
The conflict is caused by:
The user requested protobuf==3.20
autogen-core 0.6.4 depends on protobuf~=5.29.3
To fix this you could try to:
1. loosen the range of package versions you've specified
2. remove package versions to allow pip to attempt to solve the dependency conflict
ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts
Command '"D:\gpt_academic-master\GPTAC\installer_files\conda\condabin\conda.bat" activate "D:\gpt_academic-master\GPTAC\installer_files\env" >nul && python -m pip install -r requirements.txt --upgrade -i https://pypi.org/simple/' failed with exit status code '1'. Exiting...
Done!
请按任意键继续. . .
2.
ERROR: Exception:
Traceback (most recent call last):
File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip\_internal\cli\base_command.py", line 106, in _run_wrapper
status = _inner_run()
File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip\_internal\cli\base_command.py", line 97, in _inner_run
return self.run(options, args)
File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip\_internal\cli\req_command.py", line 67, in wrapper
return func(self, options, args)
File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip\_internal\commands\install.py", line 386, in run
requirement_set = resolver.resolve(
File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip\_internal\resolution\resolvelib\resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
File "D:\gpt_academic-master\GPTAC\installer_files\env\lib\site-packages\pip\_vendor\resolvelib\resolvers.py", line 457, in resolve
raise ResolutionTooDeep(max_rounds)
pip._vendor.resolvelib.resolvers.ResolutionTooDeep: 200000
Command '"D:\gpt_academic-master\GPTAC\installer_files\conda\condabin\conda.bat" activate "D:\gpt_academic-master\GPTAC\installer_files\env" >nul && python -m pip install -r requirements.txt --upgrade -i https://mirrors.aliyun.com/pypi/simple/' failed with exit status code '2'. Exiting...
### Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)
_No response_
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with requirements.txt and reproduce the OneKeyInstall Windows command that runs pip install -r requirements.txt. Compare the pinned protobuf==3.20 requirement with autogen-core 0.6.4's protobuf~=5.29.3 constraint, then verify the installer completes without ResolutionImpossible or ResolutionTooDeep.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100