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

Time:10-24

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.

CodePudding user response:

In response to the title of your post entitled presently 'How do I use Binder with a GitHub repo that has Git-lfs files?'. There seems to be an example that might help you.

If you go to the Jupyter Discourse Forum and search 'git-lfs', you'll end up somewhere like here. Presently there are two related posts:

The second one looks to link to Emtion Faces: Emotion classifier trained with Fastai, displayed with a Jupyter notebook and Voila, deployed with Binder. that uses git-lfs and fastai and pickling and so it may help you.
In particular with regard to git-lfs, I had noted that the pickle file is stored with git-lfs, see here.

CodePudding user response:

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.

  • Related