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

build.jl is broken with mamba as conda provider #1084

Closed
axsk opened this issue Jul 30, 2024 · 1 comment
Closed

build.jl is broken with mamba as conda provider #1084

axsk opened this issue Jul 30, 2024 · 1 comment

Comments

@axsk
Copy link

axsk commented Jul 30, 2024

Just tried to build PyCall into a new environment, using the micromamba binary in ENV["CONDA_JL_CONDA_EXE"].

This gives the following error

ERROR: Error building `PyCall`:                                                                                                 
The following argument was not expected: --satisfied-skip-solve                                                                      
Run with --help for more information.                                                                                                
┌ Info: Using the Python distribution in the Conda package by default.                                                               
└ To use a different Python version, set ENV["PYTHON"]="pythoncommand" and re-run Pkg.build("PyCall").                               
[ Info: Running `conda install -y --satisfied-skip-solve numpy` in root environment                                                  
ERROR: LoadError: failed process: Process(setenv(`/home/htc/bzfsikor/.local/bin/micromamba install -y --satisfied-skip-solve numpy`,["COLORTERM=truecolor", "TMUX_PANE=%1", "PATH=/home/htc/bzfsikor/micromamba/bin:/home/htc/bzfsikor/.local/bin:/home/htc/bzfsiko
r/bin:/home/htc/bzfsikor/.fzf/bin:/home/htc/bzfsikor/.juliaup/bin:/home/htc/bzfsikor/micromamba/condabin:~/bin:~/.local/bin:/data/numerik/people/bzfsikor/home/.vscode-server/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/bin/remote-cli:/tm
p/coder-script-data/bin:/opt/conda/bin:/usr/local/cargo/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/tmp/coder.0RIDXV", "OPENBLAS_MAIN_FREE=1", "PYTHONIOENCODING=UTF-8", "RUSTUP_HOME=/usr/local/rustup", "CODER_SERVICE_PORT=80", "KUBERNETE
S_PORT_443_TCP_PORT=443", "KUBERNETES_PORT_443_TCP_ADDR=10.96.0.1", "GIT_ASKPASS=/data/numerik/people/bzfsikor/home/.vscode-server/cli/servers/Stable-f1e16e1e6214d7c44d078b1f0607b2388f29d729/server/extensions/git/dist/askpass.sh"  …  "CODER_WORKSPACE_NAME=cod
emax", "JULIA_HISTORY=./.history.jl_", "MAMBA_ROOT_PREFIX=/home/htc/bzfsikor/micromamba", "HOME=/home/htc/bzfsikor", "TERM=tmux-256color", "CS_DISABLE_GETTING_STARTED_OVERRIDE=true", "CODER_PORT_80_TCP_PORT=80", "HOSTNAME=coder-bzfsikor-codemax-66b5999dcb-8kr
f4", "HOSTTYPE=x86_64-linux", "GROUP=numerik"]), ProcessExited(109)) [109]                                                                                                                                                                            
                                
Stacktrace:                                                                                                                
 [1] pipeline_error            
   @ ./process.jl:565 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base ./process.jl:480
 [3] run
   @ ./process.jl:477 [inlined]
 [4] runconda(args::Cmd, env::String)
   @ Conda ~/.julia/packages/Conda/zReqD/src/Conda.jl:182
 [5] add(pkg::String, env::String; channel::String, satisfied_skip_solve::Bool, args::Cmd)
   @ Conda ~/.julia/packages/Conda/zReqD/src/Conda.jl:343
 [6] top-level scope
   @ ~/.julia/packages/PyCall/1gn3u/deps/build.jl:79

and falls back to PyCall requiring the satisfied-skip-solve argument in build.jl:79 which is not supported by mamba.

Not sure whether this is an PyCall.jl or Conda.jl issue.

@axsk
Copy link
Author

axsk commented Jul 30, 2024

Duplicate of #1066, JuliaPy/Conda.jl#185

@axsk axsk closed this as completed Jul 30, 2024
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

1 participant