protobuf icon indicating copy to clipboard operation
protobuf copied to clipboard

Python DeprecationWarning: uses PyType_Spec with a metaclass that has custom tp_new

Open sodul opened this issue 2 years ago • 2 comments

What version of protobuf and what language are you using? Version: Python protobuf 4.25.1 (latest) Language: Python

What operating system (Linux, Windows, ...) and version? macOS 14.1.2, Ubuntu 20.04 LTS.

What runtime / compiler are you using (e.g., python version or gcc version) Python 3.12.1

What did you do? Run internal code that uses protobufs.

What did you expect to see No deprecation warnings.

What did you see instead?

<frozen importlib._bootstrap>:488
  <frozen importlib._bootstrap>:488: DeprecationWarning: Type google._upb._message.MessageMapContainer uses PyType_Spec with a metaclass that has custom tp_new. This is deprecated and will no longer be allowed in Python 3.14.

sodul avatar Dec 13 '23 19:12 sodul

I also see this with v4.25.2, I think this might be related to #12186

FrancescElies avatar Jan 18 '24 07:01 FrancescElies

@zhangskz Can you take a look at this?

googleberg avatar Feb 17 '24 21:02 googleberg