Skip to content

Error message when running app #1

@badcom

Description

@badcom

I'm getting this error when running this app:

(venv) C:\python\Musicgen-Text-to-Music [master ≡ +1 ~1 -0 !]> streamlit run app.py
Traceback (most recent call last):
  File "<frozen runpy>", line 198, in _run_module_as_main
  File "<frozen runpy>", line 88, in _run_code
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Scripts\streamlit.exe\__main__.py", line 4, in <module>
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\__init__.py", line 55, in <module>
    from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\delta_generator.py", line 36, in <module>
    from streamlit import config, cursor, env_util, logger, runtime, type_util, util
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\cursor.py", line 18, in <module>
    from streamlit.runtime.scriptrunner import get_script_run_ctx
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\__init__.py", line 16, in <module>
    from streamlit.runtime.runtime import Runtime as Runtime
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\runtime\runtime.py", line 29, in <module>
    from streamlit.proto.BackMsg_pb2 import BackMsg
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\proto\BackMsg_pb2.py", line 14, in <module>
    from streamlit.proto import ClientState_pb2 as streamlit_dot_proto_dot_ClientState__pb2
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\proto\ClientState_pb2.py", line 14, in <module>
    from streamlit.proto import WidgetStates_pb2 as streamlit_dot_proto_dot_WidgetStates__pb2
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\proto\WidgetStates_pb2.py", line 14, in <module>
    from streamlit.proto import Common_pb2 as streamlit_dot_proto_dot_Common__pb2
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\streamlit\proto\Common_pb2.py", line 36, in <module>
    _descriptor.FieldDescriptor(
  File "C:\Users\Vilmondes\AppData\Local\Programs\Python\Python311\Lib\site-packages\google\protobuf\descriptor.py", line 553, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot be created directly.
If this call came from a _pb2.py file, your generated code is out of date and must be regenerated with protoc >= 3.19.0.
If you cannot immediately regenerate your protos, some other possible workarounds are:
 1. Downgrade the protobuf package to 3.20.x or lower.
 2. Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

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