Programming/errors

[Error] grpcio-tools ~ protobuf ~ tensorboard, tb-nightly compatibility : 호환성 맞추기

방황하는 데이터불도저 2023. 3. 15. 15:41

내 가상환경에 설치된 라이브러리 

- tensorboard 2.11.0

- tb-nightly 2.12.0a20221206

[Error]

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
tensorboard 2.11.0 requires protobuf<4,>=3.9.2, but you have protobuf 4.22.1 which is incompatible.
tb-nightly 2.12.0a20221206 requires protobuf<4,>=3.9.2, but you have protobuf 4.22.1 which is incompatible.

 

설치 시도한 라이브러리

- grpcio-tools 1.51.3

- protobuf 4.22.1

 

설치 재시도 1

- pip install protobuf==3.9.2

[Error]

ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
grpcio-tools 1.51.3 requires protobuf<5.0dev,>=4.21.6, but you have protobuf 3.9.2 which is incompatible.

 

설치 재시도 2

- protobuf 4.21.6

- pip install tensorboard==2.8.0

 

 

해결 완료

 

 

 

* 참고 : https://github.com/tensorflow/tensorboard/issues/5703

 

TensorBoard's generated pb2.py files are incompatible with protobuf 4.21.0 · Issue #5703 · tensorflow/tensorboard

Edited by @nfelt for context: The original title for this issue was AttributeError: module 'google._upb._message' has no attribute 'Message' because that was the original error mess...

github.com