Error after upgrade to 0.69 runpy.py

After upgrade to streamlit 0.69 I have run into problems running streamlit on my windows pc
I am getting the following error message: would appreciate some help

I am running streamlit 0.69 with python 3.7 on a windows 10 system with conda. Browser is chrome. I upgraded to 0.69 from 0.60

Traceback (most recent call last):
File โ€œc:\users\imall\anaconda3\lib\runpy.pyโ€, line 193, in run_module_as_main
โ€œmainโ€, mod_spec)
File โ€œc:\users\imall\anaconda3\lib\runpy.pyโ€, line 85, in run_code
exec(code, run_globals)
File "C:\Users\imall\Anaconda3\Scripts\streamlit.exe_main
.py", line 5, in
File "c:\users\imall\anaconda3\lib\site-packages\streamlit_init
.py", line 75, in
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File โ€œc:\users\imall\anaconda3\lib\site-packages\streamlit\delta_generator.pyโ€, line 25, in
from streamlit.proto import Block_pb2
File โ€œc:\users\imall\anaconda3\lib\site-packages\streamlit\proto\Block_pb2.pyโ€, line 21, in
create_key=_descriptor._internal_create_key,
AttributeError: module โ€˜google.protobuf.descriptorโ€™ has no attribute โ€˜_internal_create_keyโ€™

1 Like

Hello @Indranil_Mallick,

Since you made a huge jump from 0.60 to 0.69, my guess from the logs is protobuf did not get upgraded correctly (I got this issue around Streamlit 0.64)

Could you try reinstalling protobuf :

pip uninstall protobuf
pip install protobuf

(You can also follow a more detailed procedure here)

Cheers,
Fanilo

2 Likes

Thanks @andfanilo. Worked like a charm.