Launching GitHub repository into Binder fails

Hi!

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:
https://github.com/tauno537/datascience/tree/master/natural_language_processing/text_summarization/extractive_text_summarization

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:
https://mybinder.org/v2/gh/tauno537/datascience/tree/master/natural_language_processing/text_summarization/extractive_text_summarization/master?filepath=test_UI.ipynb

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 https://github.com/tauno537/datascience
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

Hi,

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 mybinder.org 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

Hi,

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”.

I have the same problem. Can anybody help me

@venkata_gajulpalli No one posting above has a problem as they followed the advice and it was worked out. You’ll want to see what they posted and did to fix things & work through trying that.

If that doesn’t help, please pay attention to what others posted to request help. Repositories have to be public to work with MyBinder and so you can share the links with us & what you’ve tried based on what particular examples and then usually those knowledgeable can provide specific guidance.

1 Like