This looks like an issue with your PyGWalker installation. If you follow the stack trace, PyGWalker is trying to use the segment library. You can try to install Segment yourself (check PyGWalker for the right version), but I’d be inclined to create a clean Python environment and use it to pip install streamlit pygwalker
to make sure you have a clean install.
So basically, this is an issue with PyGWalker instead of Streamlit at the moment.
Edit: I see someone else is asking about this same thing, so there may be a misconfiguration in PyGWalker’s setup script, which means you’d need to manually install Segment either way.