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.
Hi Randy, Thank you so much for your quick reply. I found a workaround, [BUG] RegexMatchError ? · Issue #1199 · pytube/pytube · GitHub, I actually I forked this Github repository, changed the requirements.txt file accordingly, git pushed the changes and it worked perfectly
Thank you,
Kind Regards, Reda