Unable to deploy my app with spaces in path

The app runs perfectly on my local machine.

but i’m getting this error:

[18:33:28] 📦 Processed dependencies!
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
[18:35:13] ❗️ Streamlit server consistently failed status checks
[18:35:13] ❗️ Please fix the errors, push an update to the git repo, or reboot the app.

My github repo of the app is: GitHub - karan51ngh/TitanicPassangerSurvivalPredictor: A Web-App that uses Machine-Learning to predict a persons chances of surviving the Titanic Wreckage as a Passenger

Link for the streamlit app is: https://karan51ngh-titanicpassangersurvivalpre-survivalpredictor-c37yw8.streamlitapp.com/

Any help is greatly appreciated!

2 Likes

Hey guys, i fixed it!

the problem was, my files name was ‘Survival Predictor.py’, so i guess the ’ ’ space character was messing around.

fixed it by adding an underscore and renaming the file to ‘Survival_Predictor.py’

1 Like

Thanks, fixed my issue too. But may I know how did you come up with that?

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

Hi the issue has been fixed and you can use spaces in the main file name (and folder as well)