Search code examples
githubgit-lfsmybinder

How do I use Binder with a GitHub repo that has Git-lfs files?


Old Problem:

I’m trying to use Binder to share my Git repo, but the git repo has git-lfs files.

If I try to use the repo when pointer files to the git-lfs files are present instead of the actual files, I get the following error from Binder: Smudge error: Error downloading: [404] Object does not exist on the server.

If I try to use the repo when the actual git-lfs files are present, I get the following error from Binder: Error: ErrImagePull.

New Problem:

I got a Pickling Error after trying to open a pickle file in a jupyter notebook in Binder.


Solution

  • Old Problem's Answer: I moved my model files to Google Drive and used !wget to pull it from the notebook to avoid having to store the files in Git-LFS.

    New Problem's Answer: I had to pin all of my packages' versions to the ones I used in my local virtual env.