Unable to find at branch ""

Creating an app is not going too well. I have a repo. I changed the name of the main.py file to streamlit_app.py since that was appearing to be the default name it was looking for. I provide a “GitHub URL” from GitHub and When I hit the “Delploy” button I get “Unable to find at branch “”.” in the lower right hand corner.
I created a Branch and it still is not finding a branch.
Branch, Repository and main py file are showing red for “does not exist”.

Everything is populating from the repo but nothing is allowing for a deploy to take place.

Or, if I use interactive picker to get the drop down list, I choose the repo from the list and it says this

Please advise

Hey @Davis,

Is the repo owned by a GitHub organization? Can you share a screenshot of the page where you’re trying to deploy with the error message?

It’s a new repo, and I was thinking maybe it takes awhile for the server to log it or something before Streamlit an use it? Just my thoughts. Appreciate you looking at this.

Which URL?

What did you put in Repository?
What did you put in Branch?
What did you put in Main file path?

What did you put in Repository? Davis782/Exact-Solution-of-Pi
What did you put in Branch? main
What did you put in Main file path? streamlit_app.py

url:
https://github.com/Davis782/Exact-Solution-of-Pi/blob/main/streamlit_app.py

What did you put in Repository? Davis782/Exact-Solution-of-Pi
What did you put in Branch? main
What did you put in Main file path? streamlit_app.py

url:
https://github.com/Davis782/Exact-Solution-of-Pi/blob/main/streamlit_app.py

Davis Rogers M.S.M.E.

Class A BLD

SolidBuildersInc@aol.com
757-217-8884

| Goyo Streamlit Community Moderator
March 14 |

  • | - |

Davis:

I provide a “GitHub URL” from GitHub

Which URL?

Davis:

Branch, Repository and main py file are showing red for “does not exist”.

What did you put in Repository?
What did you put in Branch?
What did you put in Main file path?

That doesn’t seem right. It should be src/streamlit_app.py, I guess.

Does that URL actually point to something? By looking at your screenshot, it doesn’t look like it does.

Well, when I run this on my local drive I have the pages folder which holds to rest of the code and it works pretty well. I think the pages folder is inherently recognized.

I tried, “src/streamlit_app.py” but that is not recognized either.

I don’t think the pages folder has anything to do with your issue.

Well, I cannot see what is in src so my guess may be wrong. What is the url of main.py in your repo?

I Agree.
Upon attempting to authenticate with the Streamlit Deploy interface, I encountered an unexpected redirection to an unrelated website. To mitigate this issue, I implemented a URL block and configured a redirect back to the Streamlit login page. Although I initially believed this solution to be effective, I am now considering the possibility that residual background redirects may be interfering with the recognition process. Further investigation is required to confirm this hypothesis and fully resolve the issue. However, I would not have the skillset to perform that operation.

One way to check would be temporarily disabling the redirect you implemented.

OK, but when I do that I can’t even access the Streamlit • A faster way to build and share data apps page. I was happy to get this far, lol

I think sorting that out should be your priority. Maybe create a new post with that, so that the right people can see it. Messing with your network setup without even understanding the issue is not a proper solution.

1 Like

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