dataprofessor / streamlit_navbar

33 stars 20 forks source link

Repo readme does not work anymore #2

Open ChrisMoriarty opened 1 year ago

ChrisMoriarty commented 1 year ago

Followed your instructions, and I end up getting the following error:

(streamlit_navbar) ~/streamlit_navbar-main $ streamlit run app_navbar.py
Traceback (most recent call last):
  File "/Users/cmoriarty/opt/miniconda3/envs/streamlit_navbar/bin/streamlit", line 5, in <module>
    from streamlit.cli import main
  File "/Users/cmoriarty/opt/miniconda3/envs/streamlit_navbar/lib/python3.7/site-packages/streamlit/__init__.py", line 48, in <module>
    from streamlit.proto.RootContainer_pb2 import RootContainer
  File "/Users/cmoriarty/opt/miniconda3/envs/streamlit_navbar/lib/python3.7/site-packages/streamlit/proto/RootContainer_pb2.py", line 37, in <module>
    create_key=_descriptor._internal_create_key),
  File "/Users/cmoriarty/opt/miniconda3/envs/streamlit_navbar/lib/python3.7/site-packages/google/protobuf/descriptor.py", line 796, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not 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).

I also just copied the app's code into my own newer conda env, which did work, but doesn't actually display the top bar:

image
datasherlock commented 8 months ago

Followed your instructions, and I end up getting the following error:

(streamlit_navbar) ~/streamlit_navbar-main $ streamlit run app_navbar.py
Traceback (most recent call last):
  File "/Users/cmoriarty/opt/miniconda3/envs/streamlit_navbar/bin/streamlit", line 5, in <module>
    from streamlit.cli import main
  File "/Users/cmoriarty/opt/miniconda3/envs/streamlit_navbar/lib/python3.7/site-packages/streamlit/__init__.py", line 48, in <module>
    from streamlit.proto.RootContainer_pb2 import RootContainer
  File "/Users/cmoriarty/opt/miniconda3/envs/streamlit_navbar/lib/python3.7/site-packages/streamlit/proto/RootContainer_pb2.py", line 37, in <module>
    create_key=_descriptor._internal_create_key),
  File "/Users/cmoriarty/opt/miniconda3/envs/streamlit_navbar/lib/python3.7/site-packages/google/protobuf/descriptor.py", line 796, in __new__
    _message.Message._CheckCalledFromGeneratedFile()
TypeError: Descriptors cannot not 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).

I also just copied the app's code into my own newer conda env, which did work, but doesn't actually display the top bar: image

+1