Streamlit version in requirements is out of date
Opened this issue · 1 comments
jackvaughan09 commented
This leads to the following error:
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:
- 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).
Steps to recreate:
- Have Python 3.11 installed
- Create virtual environment
- Run the gitclone command after activating venv
- Install requirements.txt
- run $ streamlit run gpt_app.py
jackvaughan09 commented
Solved this issue by uninstalling streamlit as specified in requirements.txt and running $ pip install streamlit