name 'long' is not defined
sunclb opened this issue · 4 comments
python 3.8 install from pip, run import encounter name 'long' is not defined error
from protobuf_to_dict import protobuf_to_dict
NameError Traceback (most recent call last)
in
----> 1 from protobuf_to_dict import protobuf_to_dict
~/miniconda3/envs/UDL-rtwr/lib/python3.8/site-packages/protobuf_to_dict.py in
13 FieldDescriptor.TYPE_FLOAT: float,
14 FieldDescriptor.TYPE_INT32: int,
---> 15 FieldDescriptor.TYPE_INT64: long,
16 FieldDescriptor.TYPE_UINT32: int,
17 FieldDescriptor.TYPE_UINT64: long,
NameError: name 'long' is not defined
yep, see same thing... please fix
BTW - if i comment all the long in the map, i get
name 'unicode' is not defined
if sys.version_info > (3, 0): long, unicode, basestring = int, str, str
A working solution to this problem is mentioned in another issue:
#15 (comment)