Issues with Streamlit

Hi,

I had been trying to open Streamlit from Jupyter Notebook and several errors were thrown up as versions (including python) were much newer than Streamlit ‘expected’. I managed to resolve these and got Streamlit preview to show in Jupyter Notebook.

However, I cannot get the Streamlit app to open my Data Science Fundamentals work and it’s saying:

This workspace encountered an error

This workspace has entered a failed state due to an error. Please try restarting the workspace.

Error message

An unexpected error occurred: Startup scripts failed to run

Error code

FAILED_TO_RUN_STARTUP_SCRIPTS

Error ID

Related values

failedScript: /opt/palantir/post-startup.d/1-wait-for-port-8888-to-listen.sh

reason: An unexpected error occurred: Startup scripts failed to run

Can anyone help me with this?

Thanks in advance!

Hello,

I am having also issues with Streamlit. Newly created Streamlit throw errors:

(default) user@localhost:~/repo$ streamlit Benchmark.py
Traceback (most recent call last):
File “/home/user/envs/default/bin/streamlit”, line 6, in 
from streamlit.cli import main
File “/home/user/envs/default/lib/python3.12/site-packages/streamlit/init.py”, line 48, in 
from streamlit.proto.RootContainer_pb2 import RootContainer
File “/home/user/envs/default/lib/python3.12/site-packages/streamlit/proto/RootContainer_pb2.py”, line 33, in 
_descriptor.EnumValueDescriptor(
File “/home/user/envs/default/lib/python3.12/site-packages/google/protobuf/descriptor.py”, line 1038, 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:

Downgrade the protobuf package to 3.20.x or lower.

Set PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION=python (but this will use pure-Python parsing and will be much slower).

More information: https://developers.google.com/protocol-buffers/docs/news/2022-05-06#python-updates

This can be fixed by copying from a working Streamlit the meta.yaml and hawk files so it seems some kind of library version issues.

I believe this is the same issue as OP here.