abhishekkrthakur/diffuzers

Doesnt run

kevparang opened this issue · 1 comments

from diffuzers.inpainting import Inpainting

File "/home/ubuntu/diffuzers/./diffuzers/inpainting.py", line 9, in
import streamlit as st
File "/home/ubuntu/.local/lib/python3.8/site-packages/streamlit/init.py", line 55, in
from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator
File "/home/ubuntu/.local/lib/python3.8/site-packages/streamlit/delta_generator.py", line 45, in
from streamlit.elements.arrow_altair import ArrowAltairMixin
File "/home/ubuntu/.local/lib/python3.8/site-packages/streamlit/elements/arrow_altair.py", line 36, in
from altair.vegalite.v4.api import Chart
ModuleNotFoundError: No module named 'altair.vegalite.v4'

from diffuzers.inpainting import Inpainting

File "/home/ubuntu/diffuzers/./diffuzers/inpainting.py", line 9, in import streamlit as st File "/home/ubuntu/.local/lib/python3.8/site-packages/streamlit/init.py", line 55, in from streamlit.delta_generator import DeltaGenerator as _DeltaGenerator File "/home/ubuntu/.local/lib/python3.8/site-packages/streamlit/delta_generator.py", line 45, in from streamlit.elements.arrow_altair import ArrowAltairMixin File "/home/ubuntu/.local/lib/python3.8/site-packages/streamlit/elements/arrow_altair.py", line 36, in from altair.vegalite.v4.api import Chart ModuleNotFoundError: No module named 'altair.vegalite.v4'

You must've installed a newer version of altair. Run the following command and the issue will be fixed:
pip3 install altair==4