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

protobuf-to-dict=0.1.5 issue in RHEL machine #19

Open Abinayasandhiya opened 6 years ago

Abinayasandhiya commented 6 years ago

Hi.

Please find below details of our machine:

[root@XXX ~]$ cat /etc/redhat-release Red Hat Enterprise Linux Server release 6.8 (Santiago)

We have installed protobuf_to_dict as per the instruction of below document: https://github.com/benhodgson/protobuf-to-dict

Installation seems fine and could see all the files of protobuf_to_dict.


[root@abi-llvm ~]$ pip install protobuf-to-dict --prefix=/opt/pro Collecting protobuf-to-dict Downloading https://files.pythonhosted.org/packages/58/67/5f5702d8f593ec0697a1ae53d18be71f7727155f5b221c94fcecf2bf3e6d/protobuf-to-dict-0.1.0.tar.gz Collecting protobuf>=2.3.0 (from protobuf-to-dict) Downloading https://files.pythonhosted.org/packages/9d/61/54c3a9cfde6ffe0ca6a1786ddb8874263f4ca32e7693ad383bd8cf935015/protobuf-3.5.2.post1-cp27-cp27mu-manylinux1_x86_64.whl (6.4MB) 100% |████████████████████████████████| 6.4MB 188kB/s Collecting six>=1.9 (from protobuf>=2.3.0->protobuf-to-dict) Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Requirement already satisfied: setuptools in /opt/python-setuptools/noarch/17.1.1.p2711-1/lib/python2.7/site-packages (from protobuf>=2.3.0->protobuf-to-dict) Installing collected packages: six, protobuf, protobuf-to-dict Running setup.py install for protobuf-to-dict ... done Successfully installed protobuf-3.5.2.post1 protobuf-to-dict-0.1.0 six-1.11.0 You are using pip version 9.0.1, however version 10.0.1 is available. You should consider upgrading via the 'pip install --upgrade pip' command.


But when we try to import the module in python facing below issue:


[root@XXX ~]$ python Python 2.7.11 (default, Oct 17 2016, 09:56:28) [GCC 4.4.4 20100726 (Red Hat 4.4.4-13)] on linux2 Type "help", "copyright", "credits" or "license" for more information.

import protobuf_to_dict Traceback (most recent call last): File "", line 1, in File "/opt/python-protobuf-to-dict/noarch/0.1.5.p2711/lib/python2.7/site-packages/protobuf_to_dict.py", line 1, in from google.protobuf.message import Message ImportError: No module named google.protobuf.message


Tried so many error fixing using google help but no luck to fix the issue.

Can anyone help me on this.