I rebooted the streamlit and met this error. I don’t know how to solve this, please help.
[09:38:51] Processed dependencies!
Traceback (most recent call last):
File “/home/adminuser/venv/bin/streamlit”, line 5, in
from streamlit.cli import main
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/init.py”, line 70, in
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/delta_generator.py”, line 90, in
from streamlit.elements.arrow_altair import ArrowAltairMixin
File “/home/adminuser/venv/lib/python3.9/site-packages/streamlit/elements/arrow_altair.py”, line 25, in
import altair as alt
File “/home/adminuser/venv/lib/python3.9/site-packages/altair/init.py”, line 4, in
from .vegalite import *
File “/home/adminuser/venv/lib/python3.9/site-packages/altair/vegalite/init.py”, line 2, in
from .v4 import *
File “/home/adminuser/venv/lib/python3.9/site-packages/altair/vegalite/v4/init.py”, line 2, in
from .schema import *
File “/home/adminuser/venv/lib/python3.9/site-packages/altair/vegalite/v4/schema/init.py”, line 2, in
from .core import *
File “/home/adminuser/venv/lib/python3.9/site-packages/altair/vegalite/v4/schema/core.py”, line 4, in
from altair.utils.schemapi import SchemaBase, Undefined, _subclasses
File “/home/adminuser/venv/lib/python3.9/site-packages/altair/utils/init.py”, line 1, in
from .core import (
File “/home/adminuser/venv/lib/python3.9/site-packages/altair/utils/core.py”, line 13, in
import jsonschema
File “/home/adminuser/venv/lib/python3.9/site-packages/jsonschema/init.py”, line 13, in
from jsonschema._format import FormatChecker
File “/home/adminuser/venv/lib/python3.9/site-packages/jsonschema/_format.py”, line 11, in
from jsonschema.exceptions import FormatError
File “/home/adminuser/venv/lib/python3.9/site-packages/jsonschema/exceptions.py”, line 15, in
from referencing.exceptions import Unresolvable as _Unresolvable
File “/home/adminuser/venv/lib/python3.9/site-packages/referencing/init.py”, line 5, in
from referencing._core import Anchor, Registry, Resource, Specification
File “/home/adminuser/venv/lib/python3.9/site-packages/referencing/_core.py”, line 18, in
from referencing.typing import URI, Anchor as AnchorType, D, Mapping, Retrieve
File “/home/adminuser/venv/lib/python3.9/site-packages/referencing/typing.py”, line 22, in
D = TypeVar(“D”, default=Any)
TypeError: init() got an unexpected keyword argument ‘default’
[09:40:31] Streamlit server consistently failed status checks
[09:40:31] Please fix the errors, push an update to the git repo, or reboot the app.