# Encountering resource limits (?) when building Binder from repo (returned a non-zero code: 137)

**URL:** <https://discourse.jupyter.org/t/encountering-resource-limits-when-building-binder-from-repo-returned-a-non-zero-code-137/28284>\
**Category:** Binder\
**Tags:** help-wanted\
**Created:** [September 11, 2024, 1:34pm UTC](https://discourse.jupyter.org/t/encountering-resource-limits-when-building-binder-from-repo-returned-a-non-zero-code-137/28284 "2024-09-11T13:34:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![fomightez](https://yyz1.discourse-cdn.com/flex031/user_avatar/discourse.jupyter.org/fomightez/32/495_2.png) [@fomightez](https://discourse.jupyter.org/u/fomightez)\
**Post date:** [September 11, 2024, 2:38pm UTC](https://discourse.jupyter.org/t/encountering-resource-limits-when-building-binder-from-repo-returned-a-non-zero-code-137/28284/2 "2024-09-11T14:38:44Z")

</div>

I believe the problem is that you no longer should have `defaults` in the `environment.yml` for a channel, following the example for [Conda environment with environment.yml](https://github.com/binder-examples/conda).  
I just made a fork of the Parcels repo and made that change. Not only does it get past that step and launch a session, the `parcels_tutorial.ipynb` notebook that comes up at launch runs all code cells successfully. Fork is [here](https://github.com/fomightez/Parcels). Try to [launch directly by clicking here](https://mybinder.org/v2/gh/fomightez/Parcels/master?labpath=docs%2Fexamples%2Fparcels_tutorial.ipynb).  
Plus, I had set up an unrelated one using that as a template recently and it worked [here](https://github.com/fomightez/bigdft-binder).

* * *

The JupyterLab sample repo listed on [the sample repos page in the Binder documentation](https://mybinder.readthedocs.io/en/latest/examples/sample_repos.html) uses `requirements.txt` and not `environment.yml`. The one I reference above is for use of `environment.yml`.

[The one you reference](https://github.com/jupyterlab/jupyterlab-demo/blob/24a396b12aa0ffbff6360125759585bd13916127/.binder/environment.yml) hasn’t been touched by a human in over a year and perhaps more importantly, is not the one the Binder folks offer as a guide.

---

_[View the full topic](https://discourse.jupyter.org/t/encountering-resource-limits-when-building-binder-from-repo-returned-a-non-zero-code-137/28284)._
