# Registrator.jl sudden conda dependency error on GitHub

**URL:** https://discourse.julialang.org/t/registrator-jl-sudden-conda-dependency-error-on-github/101763
**Category:** Package Management
**Tags:** conda
**Created:** [July 19, 2023, 5:39am UTC](https://discourse.julialang.org/t/registrator-jl-sudden-conda-dependency-error-on-github/101763 "2023-07-19T05:39:29Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![sparrowhawk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sparrowhawk/32/9148_2.png) [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)
#### Post date: [July 19, 2023, 5:39am UTC](https://discourse.julialang.org/t/registrator-jl-sudden-conda-dependency-error-on-github/101763/1 "2023-07-19T05:39:29Z")

</div>

Hi all,

I have been releasing new versions of my package using [Registrator.jl](https://github.com/JuliaRegistries/Registrator.jl) without any trouble until May 24th of this year. On my latest release, saying

```julia
@JuliaRegistrator register

```

as a comment to the last GitHub commit to trigger package registration fails with this error on `GitHub/JuliaRegistries`

```julia
[ Info: Installing matplotlib via the Conda matplotlib package...
[ Info: Running `conda install -y matplotlib` in root environment

ResolvePackageNotFound: 
  - conda==23.1.0

ERROR: LoadError: InitError: failed process: Process(setenv(`/tmp/jl_DShtXf/conda/3/x86_64/bin/conda install -y matplotlib`,["PYTHONIOENCODING=UTF-8", "PATH=/opt/hostedtoolcache/julia/1.9.2/x64/bin:/home/runner/.local/bin:/opt/pipx_bin:/home/runner/.cargo

```

Has something changed on GitHub / JuliaRegistries? I do have [PyPlot](https://github.com/JuliaPy/PyPlot.jl) as a listed dependency in `Project.toml` and consequently `matplotlib` is installed via `conda` and nothing has changed there. Any pointers will be much appreciated.

---

<div class="post-metadata">

### Author: ![sparrowhawk](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sparrowhawk/32/9148_2.png) [@sparrowhawk](https://discourse.julialang.org/u/sparrowhawk)
#### Post date: [July 21, 2023, 3:18pm UTC](https://discourse.julialang.org/t/registrator-jl-sudden-conda-dependency-error-on-github/101763/2 "2023-07-21T15:18:44Z")

</div>

It is a little strange, I fixed it by adding a `deps/build.jl`, installing `matplotlib` through `Conda.pip` and then again, through `Conda.add`, before pointing `PyCall` to Conda’s python. None of which had I needed earlier for PyPlot as a dependency. See here for the [fix](https://github.com/GeoscienceAustralia/HiQGA.jl/commit/db833bf32840503ee3bd0909b2b92993c239413c)

---

<div class="post-metadata">

### Author: ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)
#### Post date: [July 22, 2023, 3:23pm UTC](https://discourse.julialang.org/t/registrator-jl-sudden-conda-dependency-error-on-github/101763/3 "2023-07-22T15:23:51Z")

</div>

My sense is that the first thing you should do is to figure which Conda environment and which Python you want to use, and then ensure that environment you want to make sure has matplotlib.

If you do not do this, which Python gets chosen?

It also might be useful to see if depending on an older version of PyCall or Conda resolves the issue.
