Skip to content

Error occurs when starting p4runtime-shell: No module named 'google.protobuf' #98

@sadmankiba

Description

@sadmankiba

I built the docker image and tried to run p4runtime-shell with the provided python script p4runtime-sh-docker. The script generates the following error and does not start p4runtime-shell.

Traceback (most recent call last):
  File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.8/runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "/p4runtime-sh/venv/lib/python3.8/site-packages/p4runtime_shell-0.0.2-py3.8.egg/p4runtime_sh/__main__.py", line 1, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/p4runtime-sh/venv/lib/python3.8/site-packages/p4runtime_shell-0.0.2-py3.8.egg/p4runtime_sh/shell.py", line 27, in <module>
  File "<frozen zipimport>", line 259, in load_module
  File "/p4runtime-sh/venv/lib/python3.8/site-packages/p4runtime_shell-0.0.2-py3.8.egg/p4runtime_sh/p4runtime.py", line 17, in <module>
ModuleNotFoundError: No module named 'google.protobuf'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions