[Pkg-protobuf-devel] Bug#835271: python-protobuf returns " TypeError: Descriptors should not be created directly, but only retrieved from their parent" message

Antonio Ospite ao2 at ao2.it
Wed Aug 24 11:29:01 UTC 2016


Package: python-protobuf
Followup-For: Bug #835271

Dear Maintainer,

this bug affects also all the software using python-axolotl like for
instance gajim.

For now I worked around the issue by downgrading to python-protobuf_2.6.1-2
which is still available in the archives:
http://debian.sil.at/debian/pool/main/p/protobuf/

The reason why the OP does not see the issue in PyPy is in the code:
https://github.com/google/protobuf/blob/2fe0556c7abbe31c02147b9171397737a35bfe3b/python/google/protobuf/pyext/descriptor.cc#L94

These new checks in 3.0.x (mainly that the file ends with "_pb2.py") are
not executed when the module is compiled for PyPy.

The problem may as well be in python-axolotl, I see that in
/usr/lib/python2.7/dist-packages/axolotl/protocol/whisperprotos.py both
descriptor and descriptor_pb2 are imported, but apparently with protobuf
3.0.x only the second one is supposed to be used directly.

Any idea about how to proceed from here?
I think this should be fixed ASAP.

Ciao ciao,
   Antonio

-- System Information:
Debian Release: stretch/sid
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'unstable-debug')
Architecture: amd64 (x86_64)

Kernel: Linux 4.6.0-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.utf8, LC_CTYPE=it_IT.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)

Versions of packages python-protobuf depends on:
ii  libc6                 2.23-5
ii  libgcc1               1:6.2.0-1
ii  libprotobuf9v5        2.6.1-2
ii  libstdc++6            6.2.0-1
ii  python                2.7.11-2
ii  python-pkg-resources  25.2.0-1
pn  python:any            <none>

python-protobuf recommends no packages.

python-protobuf suggests no packages.

-- no debconf information
-- 
Antonio Ospite
http://ao2.it

A: Because it messes up the order in which people normally read text.
   See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?



More information about the Pkg-protobuf-devel mailing list