Launching GitHub repository into Binder fails


I tried to launch my GitHub repository into Binder but got the error message that the repository URL is not correct. Can’t figure out what is wrong with my settings. Any advice would be helpful.

GitHub repository name or URL:

Git branch, tag, or commit: master
Path to a notebook file (optional): test_UI.ipynb

Copy the URL below and share your Binder with others:

Build logs:
Could not resolve ref for gh:tauno537/datascience/tree/master/natural_language_processing/text_summarization/extractive_text_summarization/master. Double check your URL.

Your binder config files have to be in the root of a repository or within a sub folder called binder or .binder which has to be in the root of a repository.

You are simply targeting too deep in a hierarchy of a repository.

I moved the file ‘requirements.txt’ into a folder ‘datascience’ but nothing changed.

Move requirements.txt to the top level of your repository and the repository URL you provide in the mybinder form should be
The path to your notebook file should be natural_language_processing/text_summarization/extractive_text_summarization/test_UI.ipynb

Thanks! Now it works :slight_smile:

1 Like


I’m having the same problem. Followed the solution posted here, but no success. I’ll be very thankful if you could give me a hint (too many hours on this already!). My repo is here:

It is public and the requirements.txt are in the root of the repository.

Your default branch name is main and we haven’t yet upgraded mybinder to search for this instead of master (I will be working on this next week). There is a box on the form to provide a branch name, type main in there and it should work.

See this thread Can't solve Could not resolve ref for gh:fredericfoulonlycee/math_spe_python/master

1 Like


Many thanks for the answer!

I’ve re-coded the whole thing from scratch and it worked at the end. I’ll keep an eye open for hte branch names next time.

I had the same problem. Make sure your Github repo is set to public (it cannot be private for Binder to work). Initially, I had it set to private. Once I changed (settings, manage access, switched visibility) to public it built “launched successfully”.