- Create a Python file and call it
example (without .py)
streamlit run example
Here's what you get:

This error message is not a valid sentence: "Streamlit requires raw Python (.py) files, not ."
What's happening is that the code is trying to write the file extension in the error message, but in this case the file has no extension.
We should instead say something like "Streamlit requires raw Python (.py) files, and the provided file has no extension."