Summary
PLS HELP TO RESTORE TO LAST WORKING ENV.
Everything was working fine for months , I accidentally upgraded streamlit 1.18.1 using โ
$ conda install -c conda-forge streamlit
which i noticed downgraded my streamlit to 1.8.0!
then i remember shouldโve used pip
used following to restore conda env (from revision 8 latest to previous 7)
$ conda install --revision 7
seemed to work correctly .
But since condaโs streamlit seemed to have removed streamlit 1.18 had to reinstall streamlit with pip using-
$pip install --upgrade streamlit
seeemd to work fine but now streamlit throwing errors -
$ streamlit hello
Error processing line 1 of /home/khan/miniconda3/envs/Twitterbot/lib/python3.11/site-packages/protobuf-3.20.3-nspkg.pth:
Traceback (most recent call last):
File "<frozen site>", line 186, in addpackage
File "<string>", line 1, in <module>
File "<frozen importlib._bootstrap>", line 570, in module_from_spec
AttributeError: 'NoneType' object has no attribute 'loader'
Remainder of file ignored
Traceback (most recent call last):
File "/home/khan/miniconda3/envs/Twitterbot/bin/streamlit", line 5, in <module>
from streamlit.web.cli import main
File "/home/khan/miniconda3/envs/Twitterbot/lib/python3.11/site-packages/streamlit/__init__.py", line 55, in <module>
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File "/home/khan/miniconda3/envs/Twitterbot/lib/python3.11/site-packages/streamlit/delta_generator.py", line 36, in <module>
from streamlit import config, cursor, env_util, logger, runtime, type_util, util
File "/home/khan/miniconda3/envs/Twitterbot/lib/python3.11/site-packages/streamlit/cursor.py", line 18, in <module>
from streamlit.runtime.scriptrunner import get_script_run_ctx
File "/home/khan/miniconda3/envs/Twitterbot/lib/python3.11/site-packages/streamlit/runtime/__init__.py", line 16, in <module>
from streamlit.runtime.runtime import Runtime as Runtime
File "/home/khan/miniconda3/envs/Twitterbot/lib/python3.11/site-packages/streamlit/runtime/runtime.py", line 27, in <module>
from streamlit.proto.BackMsg_pb2 import BackMsg
File "/home/khan/miniconda3/envs/Twitterbot/lib/python3.11/site-packages/streamlit/proto/BackMsg_pb2.py", line 5, in <module>
from google.protobuf import descriptor as _descriptor
ModuleNotFoundError: No module named 'google'
Debug info
- Streamlit version: 1.19.1
- Python version: 3.11.0
- Using Conda!
- OS version: :Linux Mint 21 5.19.0-35-generic (64-bit)