Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

name 'long' is not defined #20

Open
sunclb opened this issue Dec 16, 2020 · 4 comments
Open

name 'long' is not defined #20

sunclb opened this issue Dec 16, 2020 · 4 comments

Comments

@sunclb
Copy link

sunclb commented Dec 16, 2020

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

@brucebookman
Copy link

yep, see same thing... please fix

@brucebookman
Copy link

BTW - if i comment all the long in the map, i get
name 'unicode' is not defined

@StupidArthur
Copy link

if sys.version_info > (3, 0): long, unicode, basestring = int, str, str

@szulcmaciej
Copy link

A working solution to this problem is mentioned in another issue:
#15 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants