I have trouble with Conda.jl in GitHub actions. Since yesterday, I get the error
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 . Note that I didn’t change anything important in that PR, see 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 . I set the environment variable PYTHON = ""
, see 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?
ranocha
January 17, 2022, 10:34am
2
It looks like it might be a missing build
step, see https://github.com/ranocha/BSeries.jl/pull/46 .
1 Like
Eliott
June 26, 2023, 5:28am
3
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 ?
Eliott
June 26, 2023, 5:39am
4
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.