Actually, also importing both onnx and torch causes Python to crash:

$ python3
Python 3.13.11 (main, Dec  8 2025, 11:43:54) [GCC 15.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import torch
>>> import onnx
[libprotobuf ERROR google/protobuf/descriptor_database.cc:642] File already 
exists in database: onnx/onnx-ml.proto
[libprotobuf FATAL google/protobuf/descriptor.cc:1988] CHECK failed: 
GeneratedDatabase()->Add(encoded_file_descriptor, size): 
terminate called after throwing an instance of 
'google::protobuf::FatalException'
  what():  CHECK failed: GeneratedDatabase()->Add(encoded_file_descriptor, 
size): 
Abandon                    python3

So, let's reassign this bug to the shared factor: python3-onnx (even if I'm not 
sure where exactly is the bug).

Reply via email to