Streamlit: When "streamlit run" file doesn't exit and has no extension, error printout is weird

Created on 7 Oct 2020  路  3Comments  路  Source: streamlit/streamlit

  1. Create a Python file and call it example (without .py)
  2. 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."

bug good first issue needs triage

Most helpful comment

I can fix this problem. If approved, I will make a pull request.

All 3 comments

I can fix this problem. If approved, I will make a pull request.

Thanks for volunteering @abhinand5, please feel free to take a shot at it and submit a PR.

Thanks @randyzwitch, I have submitted the PR

Was this page helpful?
0 / 5 - 0 ratings

Related issues

tomkomt picture tomkomt  路  3Comments

ShivamBhirud picture ShivamBhirud  路  3Comments

isConic picture isConic  路  3Comments

imneonizer picture imneonizer  路  3Comments

tconkling picture tconkling  路  3Comments