binary-husky / binary-husky/gpt_academic

[Bug]: 和protobuf版本相关的依赖冲突

Open
#1,884 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
71.3k
Forks
8.3k
PR merge metrics
No merged PRs in 30d

Description

### Installation Method | 安装方法与平台

Anaconda (I used latest requirements.txt)

### Version | 版本

Latest | 最新版

### OS | 操作系统

Windows

### Describe the bug | 简述

按照原本的requirements文件安装后,报错
`tensorboard 2.16.2 requires protobuf!=4.24.0,>=3.19.6, but you have protobuf 3.18.0 which is incompatible.
tensorflow-intel 2.16.1 requires protobuf!=4.21.0,!=4.21.1,!=4.21.2,!=4.21.3,!=4.21.4,!=4.21.5,<5.0.0dev,>=3.20.3, but you have protobuf 3.18.0 which is incompatible.
wandb 0.16.6 requires protobuf!=4.21.0,<5,>=3.19.0; sys_platform != "linux", but you have protobuf 3.18.0 which is incompatible.`
手动把requirements文件中的'protobuf==3.18'改成'protobuf==3.20.3'后,再运行一遍pip按照requirements安装,解决上述报错但产生了新的报错
'paddlepaddle 2.6.1 requires protobuf<=3.20.2,>=3.1.0; platform_system == "Windows", but you have protobuf 3.20.3 which is incompatible.
paddlepaddle-gpu 2.6.1.post120 requires protobuf<=3.20.2,>=3.1.0; platform_system == "Windows", but you have protobuf 3.20.3 which is incompatible. '

### Screen Shot | 有帮助的截图

![TT_WY5%_%E~~42@ L6S )P7](https://github.com/binary-husky/gpt_academic/assets/76646442/281d4324-08b5-4100-96f9-1a3808cfa251)
![7OJU~(UV9IC%%%HZ4%ZF YU](https://github.com/binary-husky/gpt_academic/assets/76646442/1b3009e5-c95d-4e2d-a3a3-50ba3a034691)

### 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 inspect the pinned protobuf version against the reported Windows constraints for tensorboard, tensorflow-intel, wandb, and paddlepaddle. Reproduce the Anaconda installation on Windows, then verify that the requirements install without dependency conflicts and that the reported packages remain compatible.

Written by the indexing model from the issue text.

Assessment

Tech stack
anaconda, python
Domain
build-system
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.