On Tue, Jan 10, 2023 at 07:57:45AM +0100, Gianfranco Costamagna wrote: > Source: bernhard > Version: 0.2.6-3 > Severity: serious > > Hello, your package is tied to a specific protobuf version, but doesn't > declare any explicit dependency on it > > Now, the package fails to load due to pb.py not being rebuilt. > > python3 -c "import bernhard" > Traceback (most recent call last): > File "<string>", line 1, in <module> > File "/usr/lib/python3/dist-packages/bernhard/__init__.py", line 20, in > <module> > from . import pb > File "/usr/lib/python3/dist-packages/bernhard/pb.py", line 36, in <module> > _descriptor.FieldDescriptor( > File "/usr/lib/python3/dist-packages/google/protobuf/descriptor.py", line > 560, in __new__ > _message.Message._CheckCalledFromGeneratedFile() > TypeError: Descriptors should not be created directly, but only retrieved > from their parent. > > > Please have a look. > (not change rebuilding works as workaround, but I think we should make sure > the package is not used with a wrong > protobuf version)
The package seems to require the same protobuf version as it was compiled with, but the dependency is only indirectly through python3-protobuf. > G. cu Adrian