Hello! My pytest is returning the above mentioned error when I ran pytest on my project after installing streamlit!
Here is the full error log that Pytest returned:
============================= test session starts ==============================
platform linux -- Python 3.9.13, pytest-7.1.2, pluggy-1.0.0
rootdir: /home/runner/work/half-hourly-forecasting/half-hourly-forecasting
plugins: anyio-3.6.1
collected 18 items / 1 error
==================================== ERRORS ====================================
___________ ERROR collecting streamlitapp/tests/test_streamlitapp.py ___________
streamlitapp/tests/test_streamlitapp.py:3: in <module>
from streamlitapp.streamlitapp import map_selection_to_archetype
streamlitapp/streamlitapp.py:3: in <module>
import streamlit as st
../../../.local/share/virtualenvs/half-hourly-forecasting-_x0FZkRt/lib/python3.9/site-packages/streamlit/__init__.py:48: in <module>
from streamlit.proto.RootContainer_pb2 import RootContainer
../../../.local/share/virtualenvs/half-hourly-forecasting-_x0FZkRt/lib/python3.9/site-packages/streamlit/proto/RootContainer_pb2.py:17: in <module>
DESCRIPTOR = _descriptor.FileDescriptor(
../../../.local/share/virtualenvs/half-hourly-forecasting-_x0FZkRt/lib/python3.9/site-packages/google/protobuf/descriptor.py:1024: in __new__
return _message.default_pool.AddSerializedFile(serialized_pb)
E KeyError: 'Unknown descriptor pool'
Has anyone seen similar error before and how might I fix this please?
It seems like there might be some conflict with protobuf
?
I’m running streamlit====1.10.0
.