Question about altair library and streamlit

#1
by awacke1 - opened

First I wanted to say I love all the cool things you do at Huggingface! Have used many of your lessons and videos and you have been super helpful to me so much appreciated.

Next I have seen this issue when I use some of the older streamlit code and recompile. It gives the error below. Any idea on how to fix it? altair version conflict I think is the answer but tried some different includes in requirements.txt but fear a dependency chain or something breaks code due to different library dependencies.

Much appreciated if you have a tip ;) Have a great day!

--Aaron


Runtime error
Traceback (most recent call last):
File "/home/user/.local/bin/streamlit", line 5, in
from streamlit.web.cli import main
File "/home/user/.local/lib/python3.10/site-packages/streamlit/init.py", line 55, in
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File "/home/user/.local/lib/python3.10/site-packages/streamlit/delta_generator.py", line 45, in
from streamlit.elements.arrow_altair import ArrowAltairMixin
File "/home/user/.local/lib/python3.10/site-packages/streamlit/elements/arrow_altair.py", line 35, in
from altair.vegalite.v4.api import Chart
ModuleNotFoundError: No module named 'altair.vegalite.v4'
Container logs:

Traceback (most recent call last):
File "/home/user/.local/bin/streamlit", line 5, in
from streamlit.web.cli import main
File "/home/user/.local/lib/python3.10/site-packages/streamlit/init.py", line 55, in
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File "/home/user/.local/lib/python3.10/site-packages/streamlit/delta_generator.py", line 45, in
from streamlit.elements.arrow_altair import ArrowAltairMixin
File "/home/user/.local/lib/python3.10/site-packages/streamlit/elements/arrow_altair.py", line 35, in
from altair.vegalite.v4.api import Chart
ModuleNotFoundError: No module named 'altair.vegalite.v4'

Sign up or log in to comment