Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

micromamba error #20

Closed
jakubMitura14 opened this issue Jan 20, 2022 · 3 comments
Closed

micromamba error #20

jakubMitura14 opened this issue Jan 20, 2022 · 3 comments

Comments

@jakubMitura14
Copy link

Hello I get arror as below

LoadError: InitError: failed process: Process(`'C:\Users\1\.julia\micromamba\micromamba.exe' -r 'C:\Users\1\.julia\micromamba\root' remove --yes --prefix 'c:\GitHub\JuliaMedPipe\.CondaPkg\env' --all`, ProcessExited(1))

when invoking

using  CondaPkg
using PythonCall, CondaPkg

CondaPkg.add.("monai");
CondaPkg.resolve()

I am working with Julia 1.5 and Windows 10 PC, what am I doing wrong?

@cjdoris
Copy link
Collaborator

cjdoris commented Jan 20, 2022

Do you get any other output?

@jakubMitura14
Copy link
Author

Thank you for responding !!!
full data from REPL

julia> using  CondaPkg
       using PythonCall, CondaPkg
       
       CondaPkg.add.("monai");   
       CondaPkg.resolve()        
┌ Info: Found CondaPkg dependencies
└   file = "c:\\GitHub\\JuliaMedPipe\\CondaPkg.toml"
┌ Info: Found CondaPkg dependencies
└   file = "C:\\Users\\1\\.julia\\packages\\PythonCall\\7klbm\\CondaPkg.toml"
┌ Info: Removing Conda environment
│   cmd.exec =
│    8-element Vector{String}:    
│     "C:\\Users\\1\\.julia\\micromamba\\micromamba.exe"
└     ⋮
info     ****************** Backtrace Start ******************
debug    Loading configuration
trace    Compute configurable 'create_base'
trace    Compute configurable 'no_env'
trace    Compute configurable 'no_rc'
trace    Compute configurable 'rc_files'
trace    Compute configurable 'root_prefix'
trace    Get RC files configuration from locations up to HomeDir
trace    Configuration not found at 'C:\Users\1\.mambarc'
trace    Configuration found at 'C:\Users\1\.condarc'
trace    Configuration not found at 'C:\Users\1\.conda\condarc.d'
trace    Configuration not found at 'C:\Users\1\.conda\condarc'
trace    Configuration not found at 'C:\Users\1\.conda\.condarc'
trace    Configuration not found at 'C:\Users\1\.julia\micromamba\root\.mambarc'
trace    Configuration not found at 'C:\Users\1\.julia\micromamba\root\condarc.d'
trace    Configuration not found at 'C:\Users\1\.julia\micromamba\root\condarc'
trace    Configuration not found at 'C:\Users\1\.julia\micromamba\root\.condarc'
trace    Configuration not found at 'C:\ProgramData\conda\.mambarc'
trace    Configuration not found at 'C:\ProgramData\conda\condarc.d'
trace    Configuration not found at 'C:\ProgramData\conda\condarc'
trace    Configuration not found at 'C:\ProgramData\conda\.condarc'
trace    Update configurable 'no_env'
trace    Compute configurable 'file_specs'
trace    Compute configurable 'spec_file_env_name'
trace    Compute configurable 'env_name'
trace    Compute configurable 'envs_dirs'
trace    Compute configurable 'use_target_prefix_fallback'
trace    Compute configurable 'target_prefix'
trace    Get RC files configuration from locations up to TargetPrefix
trace    Configuration not found at 'c:\GitHub\JuliaMedPipe\.CondaPkg\env\.mambarc'
trace    Configuration not found at 'c:\GitHub\JuliaMedPipe\.CondaPkg\env\condarc.d'
trace    Configuration not found at 'c:\GitHub\JuliaMedPipe\.CondaPkg\env\condarc'
trace    Configuration not found at 'c:\GitHub\JuliaMedPipe\.CondaPkg\env\.condarc'
trace    Configuration not found at 'C:\Users\1\.mambarc'
trace    Configuration found at 'C:\Users\1\.condarc'
trace    Configuration not found at 'C:\Users\1\.conda\condarc.d'
trace    Configuration not found at 'C:\Users\1\.conda\condarc'
trace    Configuration not found at 'C:\Users\1\.conda\.condarc'
trace    Configuration not found at 'C:\Users\1\.julia\micromamba\root\.mambarc'
trace    Configuration not found at 'C:\Users\1\.julia\micromamba\root\condarc.d'
trace    Configuration not found at 'C:\Users\1\.julia\micromamba\root\condarc'
trace    Configuration not found at 'C:\Users\1\.julia\micromamba\root\.condarc'
trace    Configuration not found at 'C:\ProgramData\conda\.mambarc'
trace    Configuration not found at 'C:\ProgramData\conda\condarc.d'
trace    Configuration not found at 'C:\ProgramData\conda\condarc'
trace    Configuration not found at 'C:\ProgramData\conda\.condarc'
trace    Update configurable 'no_env'
trace    Compute configurable 'target_prefix_checks'
error    Expected environment not found at prefix: c:\GitHub\JuliaMedPipe\.CondaPkg\env
critical Aborting.
info     ****************** Backtrace End ********************
ERROR: LoadError: InitError: failed process: Process(`'C:\Users\1\.julia\micromamba\micromamba.exe' -r 'C:\Users\1\.julia\micromamba\root' remove --yes --prefix 'c:\GitHub\JuliaMedPipe\.CondaPkg\env' --all`, ProcessExited(1)) [1]

Stacktrace:
  [1] pipeline_error
    @ .\process.jl:525 [inlined]
  [2] run(::Cmd; wait::Bool)
    @ Base .\process.jl:440
  [3] run(::Cmd)
    @ Base .\process.jl:438
  [4] _resolve_conda_remove(conda_env::Any)
    @ CondaPkg C:\Users\1\.julia\packages\CondaPkg\JI8Mb\src\CondaPkg.jl:269
  [5] resolve(; force::Bool)
    @ CondaPkg C:\Users\1\.julia\packages\CondaPkg\JI8Mb\src\CondaPkg.jl:366
  [6] resolve()
    @ CondaPkg C:\Users\1\.julia\packages\CondaPkg\JI8Mb\src\CondaPkg.jl:321
  [7] envdir()
    @ CondaPkg C:\Users\1\.julia\packages\CondaPkg\JI8Mb\src\CondaPkg.jl:475
  [8] init_context()
    @ PythonCall.C C:\Users\1\.julia\packages\PythonCall\7klbm\src\cpython\context.jl:54
  [9] __init__()
    @ PythonCall.C C:\Users\1\.julia\packages\PythonCall\7klbm\src\cpython\CPython.jl:20
 [10] _include_from_serialized(path::String, depmods::Vector{Any})
    @ Base .\loading.jl:696
 [11] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
    @ Base .\loading.jl:782
 [12] _require(pkg::Base.PkgId)
    @ Base .\loading.jl:1020
 [13] require(uuidkey::Base.PkgId)
    @ Base .\loading.jl:936
 [14] require(into::Module, mod::Symbol)
    @ Base .\loading.jl:923
 [15] eval
    @ .\boot.jl:360 [inlined]
 [16] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
    @ Base .\loading.jl:1116
 [17] invokelatest(::Any, ::Any, ::Vararg{Any, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base .\essentials.jl:708
 [18] invokelatest(::Any, ::Any, ::Vararg{Any, N} where N)
    @ Base .\essentials.jl:706
 [19] inlineeval(m::Module, code::String, code_line::Int64, code_column::Int64, file::String; softscope::Bool)
    @ VSCodeServer c:\Users\1\.vscode\extensions\julialang.language-julia-1.5.10\scripts\packages\VSCodeServer\src\eval.jl:211
 [20] (::VSCodeServer.var"#58#62"{Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer c:\Users\1\.vscode\extensions\julialang.language-julia-1.5.10\scripts\packages\VSCodeServer\src\eval.jl:155
 [21] withpath(f::VSCodeServer.var"#58#62"{Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams}, path::String)
    @ VSCodeServer c:\Users\1\.vscode\extensions\julialang.language-julia-1.5.10\scripts\packages\VSCodeServer\src\repl.jl:185
 [22] (::VSCodeServer.var"#57#61"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer c:\Users\1\.vscode\extensions\julialang.language-julia-1.5.10\scripts\packages\VSCodeServer\src\eval.jl:153
 [23] hideprompt(f::VSCodeServer.var"#57#61"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})
    @ VSCodeServer c:\Users\1\.vscode\extensions\julialang.language-julia-1.5.10\scripts\packages\VSCodeServer\src\repl.jl:36
 [24] (::VSCodeServer.var"#56#60"{Bool, Bool, Bool, Module, String, Int64, Int64, String, VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer c:\Users\1\.vscode\extensions\julialang.language-julia-1.5.10\scripts\packages\VSCodeServer\src\eval.jl:124
 [25] with_logstate(f::Function, logstate::Any)
    @ Base.CoreLogging .\logging.jl:491
 [26] with_logger
    @ .\logging.jl:603 [inlined]
 [27] (::VSCodeServer.var"#55#59"{VSCodeServer.ReplRunCodeRequestParams})()
    @ VSCodeServer c:\Users\1\.vscode\extensions\julialang.language-julia-1.5.10\scripts\packages\VSCodeServer\src\eval.jl:201
 [28] #invokelatest#2
    @ .\essentials.jl:708 [inlined]
 [29] invokelatest(::Any)
    @ Base .\essentials.jl:706
 [30] macro expansion
    @ c:\Users\1\.vscode\extensions\julialang.language-julia-1.5.10\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
 [31] (::VSCodeServer.var"#53#54")()
    @ VSCodeServer .\task.jl:411
during initialization of module C
in expression starting at c:\GitHub\JuliaMedPipe\src\initialLoad\MonaiExperiments.jl:3

@cjdoris
Copy link
Collaborator

cjdoris commented Jan 20, 2022

Oh I see, it's trying to remove an environment that doesn't exist. Deleting that .CondaPkg directory should fix it.

@cjdoris cjdoris closed this as completed Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants