Skip to content

Trying GUI version produces error regarding protobuf #533

Description

@gsaxena888

On a docker running Debian, I tried to run AlphaPept GUI, but I got this error message. Thoughts? Also, is there any plan to maybe have a docker version so that we can quickly try things out?

root@00c3c7d17588:~# alphapept gui

     ___    __      __          ____             __ 
    /   |  / /___  / /_  ____  / __ \___  ____  / /_
   / /| | / / __ \/ __ \/ __ \/ /_/ / _ \/ __ \/ __/
  / ___ |/ / /_/ / / / / /_/ / ____/ ___/ /_/ / /_  
 /_/  |_/_/ .___/_/ /_/\__,_/_/    \___/ .___/\__/  
         /_/                          /_/           
....................................................
.      https://github.com/MannLabs/alphapept       .
.                    Mann Labs                     .
.                      0.4.9                       .
....................................................


Starting AlphaPept Background Process

An exception occured running AlphaPept version 0.4.9:

....................................................

cannot import name 'builder' from 'google.protobuf.internal' (/usr/local/lib/python3.8/site-packages/google/protobuf/internal/__init__.py)

ERROR:root:Traceback
Traceback (most recent call last):
  File "/usr/local/lib/python3.8/site-packages/alphapept/__main__.py", line 12, in main
    alphapept.interface.run_cli()
  File "/usr/local/lib/python3.8/site-packages/alphapept/interface.py", line 1375, in run_cli
    cli_overview()
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 829, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 782, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1259, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 1066, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.8/site-packages/click/core.py", line 610, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.8/site-packages/alphapept/interface.py", line 1562, in cli_gui
    from alphapept.gui.utils import start_process
  File "/usr/local/lib/python3.8/site-packages/alphapept/gui/utils.py", line 6, in <module>
    import streamlit as st
  File "/usr/local/lib/python3.8/site-packages/streamlit/__init__.py", line 55, in <module>
    from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
  File "/usr/local/lib/python3.8/site-packages/streamlit/delta_generator.py", line 38, in <module>
    from streamlit import config, cursor, env_util, logger, runtime, type_util, util
  File "/usr/local/lib/python3.8/site-packages/streamlit/cursor.py", line 18, in <module>
    from streamlit.runtime.scriptrunner import get_script_run_ctx
  File "/usr/local/lib/python3.8/site-packages/streamlit/runtime/__init__.py", line 16, in <module>
    from streamlit.runtime.runtime import Runtime as Runtime
  File "/usr/local/lib/python3.8/site-packages/streamlit/runtime/runtime.py", line 26, in <module>
    from streamlit.proto.BackMsg_pb2 import BackMsg
  File "/usr/local/lib/python3.8/site-packages/streamlit/proto/BackMsg_pb2.py", line 5, in <module>
    from google.protobuf.internal import builder as _builder
ImportError: cannot import name 'builder' from 'google.protobuf.internal' (/usr/local/lib/python3.8/site-packages/google/protobuf/internal/__init__.py)

Please visit https://github.com/MannLabs/alphapept and report this issue or search for potential solutions. Thanks.

....................................................
Press Enter to continue...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions