Closed RoyiAvital closed 1 month ago
@stevengj , Any information missing in my report?
The Unable to create environments file. Path not writable.
error seems significant here.
Looks like C:\D:\Applications\Programming\JuliaProMKL\Profile\.conda
is not writable? Potentially this a problem with JuliaPro…
@ViralBShah, it seems like JuliaPro may be shipping with a Conda configured to work with a non-writable directory?
What makes it do something like C:\D:\Applications\Programming\JuliaProMKL\Profile\.conda
?
It seems it mixed 2 different drive letters.
I think I have a clue what's going on.
Could it be that when installing JuliaPro some paths are hard coded using the installation path?
So if someone installs something on C:\
then move the packages to another drive (Updating the environment variables accordingly) yet some paths are hard coded it won't work.
In the case above, it seems Julia is using the drive with environment variable (Mixing them both).
@stevengj , Could it be that at first installation Conda.jl
is writing paths somewhere so next time it is used it looks for those paths instead of system variables?
Conda.jl saves its settings in joinpath(first(DEPOT_PATH), "conda", "deps.jl")
(though you can overwrite it via the CONDA_JL_HOME
environment variable). So if JuliaPro ships with this file indicating a non-writable root directory it will be a problem.
Cc @aviks here.
We install in abspath(first(DEPOT_PATH), "conda")
, which is normally ~/.julia/conda
, but maybe first(DEPOT_PATH)
is the wrong thing in general? In any case, we don't default to any .conda
directory IIRD, so it sounds like JuliaPro may be doing something special here.
I tried instaling a Conda package in a clean version of JuliaPro, and it succeeded. JuliaPro does not ship with incorrect configuration.
julia> Conda.add("numpy")
[ Info: Downloading miniconda installer ...
[ Info: Installing miniconda ...
[ Info: Running `conda config --add channels defaults --file 'C:\Users\myuser\.juliapro\JuliaPro_v1.3.1-1\conda\3\condarc-julia.yml' --force` in root environment
Warning: 'defaults' already in 'channels' list, moving to the top
[ Info: Running `conda update -y conda` in root environment
Collecting package metadata (current_repodata.json): done
Solving environment: done
## Package Plan ##
environment location: C:\Users\myuser\.juliapro\JuliaPro_v1.3.1-1\conda\3
added / updated specs:
- conda
.....
It seems the DEPOT_PATH has been manually changed in this case. Changing the DEPOT_PATH is possible in Julia or JuliaPro, but everything needs to be changed in co-ordination, which is somewhat involved.
@aviks, The question is, are some absolute paths written on installation? Maybe on first use? Otherwise it is a little strange it mixed 2 different drive letters.
My installation of
Conda.jl
fails on installing any package I try:Something with the paths doesn't work.
The strange thing (Is it?), installing
PyPlot.jl
worked. I had this issue withPyCall
- https://github.com/JuliaPy/PyCall.jl/issues/767 if it adds information.