# Conda.jl error in GitHub actions

**URL:** <https://discourse.julialang.org/t/conda-jl-error-in-github-actions/74741>\
**Category:** General Usage\
**Tags:** question\
**Created:** [January 17, 2022, 8:53am UTC](https://discourse.julialang.org/t/conda-jl-error-in-github-actions/74741 "2022-01-17T08:53:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ranocha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ranocha/32/35588_2.png) [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Post date:** [January 17, 2022, 8:53am UTC](https://discourse.julialang.org/t/conda-jl-error-in-github-actions/74741/1 "2022-01-17T08:53:10Z")

</div>

I have trouble with Conda.jl in GitHub actions. Since yesterday, I get the error

```julia
ERROR: LoadError: ArgumentError: Path to conda environment is not valid: /home/runner/.julia/conda/3

```

see [https://github.com/ranocha/BSeries.jl/runs/4837990664?check\_suite\_focus=true#step:6:291](https://github.com/ranocha/BSeries.jl/runs/4837990664?check_suite_focus=true#step:6:291). Note that I didn’t change anything important in that PR, see [https://github.com/ranocha/BSeries.jl/pull/44/files](https://github.com/ranocha/BSeries.jl/pull/44/files).

Everything was fine on `main` six days ago, see [https://github.com/ranocha/BSeries.jl/runs/4777786530?check\_suite\_focus=true](https://github.com/ranocha/BSeries.jl/runs/4777786530?check_suite_focus=true). I set the environment variable `PYTHON = ""`, see [https://github.com/ranocha/BSeries.jl/blob/main/.github/workflows/CI.yml](https://github.com/ranocha/BSeries.jl/blob/main/.github/workflows/CI.yml).

Any idea what might have changed since last week and how to fix the issue?

---

<div class="post-metadata">

**Author:** ![ranocha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ranocha/32/35588_2.png) [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Post date:** [January 17, 2022, 10:34am UTC](https://discourse.julialang.org/t/conda-jl-error-in-github-actions/74741/2 "2022-01-17T10:34:23Z")

</div>

It looks like it might be a missing `build` step, see [https://github.com/ranocha/BSeries.jl/pull/46](https://github.com/ranocha/BSeries.jl/pull/46).

---

<div class="post-metadata">

**Author:** ![Eliott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eliott/32/51060_2.png) [@Eliott](https://discourse.julialang.org/u/Eliott)\
**Post date:** [June 26, 2023, 5:28am UTC](https://discourse.julialang.org/t/conda-jl-error-in-github-actions/74741/3 "2023-06-26T05:28:03Z")

</div>

Hey, I am learning how to use PyCall and Conda.  
When I just want to run :  
using Conda

PyEnv = Conda.PYTHONDIR  
Conda.pip\_interop(true,PyEnv)

I have the error : ERROR: ArgumentError: Path to conda environment is not valid: /home/name/.julia/conda/3/x86\_64/bin

I have the error eventhough I have the Conda Folder in the .julia/packages. Do you know how to fix this by any chance ?

---

<div class="post-metadata">

**Author:** ![Eliott](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eliott/32/51060_2.png) [@Eliott](https://discourse.julialang.org/u/Eliott)\
**Post date:** [June 26, 2023, 5:39am UTC](https://discourse.julialang.org/t/conda-jl-error-in-github-actions/74741/4 "2023-06-26T05:39:46Z")

</div>

Okay I have found a sort of answer. On the Conda github it is mentionned that you must be using the ROOTENV env for it to work. Using the PYTHONDIR env will not work for PyCall usage.
