Fail to deploy after dependency installation

Hi, I’m having this odd error where Streamlit doesn’t seem to be using its own run command properly? The correct python file was selected at the start when creating the new deployment, so I’m unsure what the problem is.

Check if streamlit is installed
Streamlit is already installed
[02:29:28] 📦 Processed dependencies!
2022-11-16 02:29:29.341 INFO    numexpr.utils: Note: NumExpr detected 16 cores but "NUMEXPR_MAX_THREADS" not set, so enforcing safe limit of 8.
2022-11-16 02:29:29.341 INFO    numexpr.utils: NumExpr defaulting to 8 threads.
Usage: streamlit run [OPTIONS] TARGET [ARGS]...
Try 'streamlit run --help' for help.
Error: Streamlit requires raw Python (.py) files, but the provided file has no extension.
For more information, please see https://docs.streamlit.io

Any help is greatly appreciated

I have the same problem:

2023-02-02 10:37:31.612 INFO numexpr.utils: NumExpr defaulting to 8 threads.
Usage: streamlit run [OPTIONS] TARGET [ARGS]…

Error: Streamlit requires raw Python (.py) files, but the provided file has no extension.
For more information, please see https://docs.streamlit.io

The file name is strmlitTest.py - so it is not a file name issue and I tried to remove numexpr but this did not help.

Anybody have any luck here?

When we share problems such as these, attaching a link to your repo would make all the difference in getting the help that you need.

1 Like

HI @datguykenkai, Can you attach the project repo with your query?

Mostly streamlit run app.py should install all the dependencies and successfully deploy app

This command does not install anything at all, that happens somewhere else.

Thanks for correcting it!

The Run command is used to host the app on a server, and a pip command is used to install all the dependencies.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.