benhodgson / protobuf-to-dict

A small Python library for creating dicts from protocol buffers. Useful as an intermediate step before serialization (e.g. to JSON).
Other
226 stars 108 forks source link

Use of long causes issues with newer python versions #15

Open DrewParallel opened 7 years ago

DrewParallel commented 7 years ago

I'm using python 3.5.1.

Including the protobuf_to_dict in my code as follows: from protobuf_to_dict import protobuf_to_dict

Causes the following error: NameError: name 'long' is not defined

tommyjcarpenter commented 6 years ago

I agree. This now blows up immediately on import in python 3.6

syats commented 6 years ago

This fork seems to solve the problem: https://github.com/kaporzhu/protobuf-to-dict

evictor commented 6 years ago

A kind soul created protobuf3-to-dict: https://pypi.python.org/pypi/protobuf3-to-dict/0.1.5

It seems to work for me.