There is recent bug with pytube library and I have an app running on Streamlit Cloud using pytube.
To solve the problem locally I changed the line 30 in pytube/cipher.py :
from var_regex = re.compile(r"^\w+\W")
to var_regex = re.compile(r"^\$*\w+\W")
But you would probably need to fix this on your side so that apps - deployed on Streamlit Cloud - using pytube can run properly.
Hi @rmerzouki, welcome to the Streamlit community!
This isn’t something we can “fix on our side”. It looks like pytube is in the process of pushing out a new version of the package; when that happens, you can update your Streamlit app dependencies to have that new version and upon making that commit in your repo, the app will re-build.