# Add Packages to Renku project via Conda - pyGIMLi

**URL:** <https://renku.discourse.group/t/add-packages-to-renku-project-via-conda-pygimli/720>\
**Category:** General\
**Created:** [22 November 2022 19:00 UTC](https://renku.discourse.group/t/add-packages-to-renku-project-via-conda-pygimli/720 "2022-11-22T19:00:06Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![champost](https://yyz2.discourse-cdn.com/free1/user_avatar/renku.discourse.group/champost/32/232_2.png) [@champost](https://renku.discourse.group/u/champost)\
**Post date:** [23 November 2022 21:15 UTC](https://renku.discourse.group/t/add-packages-to-renku-project-via-conda-pygimli/720/3 "2022-11-23T21:15:15Z")

</div>

Hi @rrrrrok,

I did quite a bit of testing since posting my issue. My trials consisted of various build scenarios and making use of distinct Renku projects (all based on the Basic Python template).

I have come to the conclusion that it is the `defaults` channel specified in the default `environment.yml` file provided by the Basic Python template which is the source of the problem.

I am not sure whether I am running into some sort of [_channel collision_ issue](https://conda.io/projects/conda/en/latest/user-guide/tasks/manage-channels.html) here. In any case, I don’t understand the reason for specifying a `defaults` channel when all the packages listed in a Basic Python template either come from the `conda-forge` channel or via `pypi`.

- For starters, here is what the [`environment.yml`](https://github.com/SwissDataScienceCenter/renku-project-template/blob/master/python-minimal/environment.yml) file looks like in a Basic Python template

```auto
name: "base"
channels:
  - defaults
dependencies:
# - add packages here
# - one per line
prefix: "/opt/conda"

```

- Here is an example where the **build fails** (_e.g._ `ERROR: Job failed: execution took longer than 2h0m0s seconds` after increasing the [default build timeout](https://renku.discourse.group/t/build-time-exceeds-1h/698/2))

```auto
name: "base"
channels:
  - defaults
  - gimli
dependencies:
# - add packages here
# - one per line
  - pygimli=1.3.0
prefix: "/opt/conda"

```

- Here is an example where the **build succeeds**!

```auto
name: "base"
channels:
  - gimli
dependencies:
# - add packages here
# - one per line
  - pygimli=1.3.0
prefix: "/opt/conda"

```

Note that the whatever combination I tried, the removal of the `defaults` channel from the `environment.yml` file always resulted in a successful build.

Does the above make any sense to you ?

---

_[View the full topic](https://renku.discourse.group/t/add-packages-to-renku-project-via-conda-pygimli/720)._
