Skip to content

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

@tvst

Description

@tvst
  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."

Metadata

Metadata

Assignees

No one assigned

    Labels

    good first issueGood for newcomers to the codebasetype:bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions