Error on building 'PyCall' argument not expected: --satisfied-skip-solve
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Lĩnh vực
- build-system
Hướng nghiên cứu
Bắt đầu với deps/build.jl của PyCall tại lời gọi bị lỗi quanh dòng 79, sau đó kiểm tra Conda/src/Conda.jl xung quanh add và runconda. Tái hiện bằng Pkg.build("PyCall") với thiết lập conda hoặc mamba được báo cáo. Hoàn tất khi quá trình build không còn truyền đối số --satisfied-skip-solve không được hỗ trợ và hoàn thành thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Julia can't build and precompile some packages as PyCall.jl The problem is produced in the build process when force the argument when set the root environment with conda install -y --satisfied-skip-solve numpy when the version of conda/mamba do not accept this argument.
It could solve by make false the "satisfied_skip_solve" or simply take off the argument (if do not want to use other verification)
use_conda = dirname(python) == abspath(Conda.PYTHONDIR)
if use_conda
Conda.add("numpy"; satisfied_skip_solve=true )
end
On Mac OSX Sonoma 14.2 apple chip M2
Julia 1.9.3, Python 3.12 and Mamba(Conda)
julia> Pkg.build("PyCall"); Pkg.precompile()
Building Conda ─→ /opt/mamba/envs/mcd/share/julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/8c86e48c0db1564a1d49548d3515ced5d604c408/build.log
Building PyCall → /opt/mamba/envs/mcd/share/julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/43d304ac6f0354755f1d60730ece8c499980f7ba/build.log
ERROR: Error building PyCall:
The following argument was not expected: --satisfied-skip-solve
Run with --help for more information.
[ Info: Running conda install -y --satisfied-skip-solve numpy in root environment
ERROR: LoadError: failed process: Process(setenv(/opt/homebrew/opt/micromamba/bin/micromamba install -y --satisfied-skip-solve numpy`,["FC_FOR_BUILD=/opt/mamba/envs/mcd/bin/x86_64-apple-darwin13.4.0-gfortran", "LSCOLORS=Gxfxcxdxbxegedabagacad", "PATH=/opt/mamba/envs/mcd/bin:/opt/mamba/condabin:/opt/homebrew/bin:/opt/homebrew/sbin:/usr/local/bin:/System/Cryptexes/App/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin:/var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin:/Applications/quarto/bin:/opt/homebrew/var/homebrew/linked", "CXX=x86_64-apple-darwin13.4.0-clang++", "DENO_DOM_VERSION=0.1.35-alpha", "F95=/opt/mamba/envs/mcd/bin/x86_64-apple-darwin13.4.0-gfortran", "CC=x86_64-apple-darwin13.4.0-clang", "CXXFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -isystem /opt/mamba/envs/mcd/include", "OTOOL=x86_64-apple-darwin13.4.0-otool", "DEBUG_CFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -Og -g -Wall -Wextra -isystem /opt/mamba/envs/mcd/include" … "TERM_SESSION_ID=E9F5F9AB-DC24-46BA-85CF-5C439346566B", "ac_cv_func_realloc_0_nonnull=yes", "BUILD=x86_64-apple-darwin13.4.0", "QUARTO_DENO=/opt/mamba/envs/mcd/bin/deno", "JULIA_LOAD_PATH=@:/var/folders/75/ftt9_lrn0292knych8n_rsgw0000gn/T/jl_KuLfDj", "DEBUG_CXXFLAGS=-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -fmessage-length=0 -Og -g -Wall -Wextra -isystem /opt/mamba/envs/mcd/include", "ac_cv_func_malloc_0_nonnull=yes", "MAMBA_ROOT_PREFIX=/opt/mamba", "LS_COLORS=di=1;36:ln=35:so=32:pi=33:ex=31:bd=34;46:cd=34;43:su=30;41:sg=30;46:tw=30;42:ow=30;43", "OPENBLAS_MAIN_FREE=1"]), 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 /opt/mamba/envs/mcd/share/julia/packages/Conda/2lg2O/src/Conda.jl:128
[5] add(pkg::String, env::String; channel::String, satisfied_skip_solve::Bool, args::Cmd)
@ Conda /opt/mamba/envs/mcd/share/julia/packages/Conda/2lg2O/src/Conda.jl:256
[6] add
@ /opt/mamba/envs/mcd/share/julia/packages/Conda/2lg2O/src/Conda.jl:239 [inlined]
[7] top-level scope
@ /opt/mamba/envs/mcd/share/julia/packages/PyCall/ilqDX/deps/build.jl:79
[8] include(fname::String)
@ Base.MainInclude ./client.jl:478
[9] top-level scope
@ none:5
in expression starting at /opt/mamba/envs/mcd/share/julia/packages/PyCall/ilqDX/deps/build.jl:43
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Types.jl:69
[2] (::Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String})()
@ Pkg.Operations /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:1153
[3] withenv(::Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, ::Pair{String, String}, ::Vararg{Pair{String}})
@ Base ./env.jl:197
[4] (::Pkg.Operations.var"#117#122"{String, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.PackageSpec})()
@ Pkg.Operations /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:1827
[5] with_temp_env(fn::Pkg.Operations.var"#117#122"{String, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.PackageSpec}, temp_env::String)
@ Pkg.Operations /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:1701
[6] (::Pkg.Operations.var"#115#120"{Dict{String, Any}, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String})(tmp::String)
@ Pkg.Operations /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:1790
[7] mktempdir(fn::Pkg.Operations.var"#115#120"{Dict{String, Any}, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, Pkg.Types.Project, String}, parent::String; prefix::String)
@ Base.Filesystem ./file.jl:760
[8] mktempdir(fn::Function, parent::String)
@ Base.Filesystem ./file.jl:756
[9] mktempdir
@ ./file.jl:756 [inlined]
[10] sandbox(fn::Function, ctx::Pkg.Types.Context, target::Pkg.Types.PackageSpec, target_path::String, sandbox_path::String, sandbox_project_override::Pkg.Types.Project; preferences::Dict{String, Any}, force_latest_compatible_version::Bool, allow_earlier_backwards_compatible_versions::Bool, allow_reresolve::Bool)
@ Pkg.Operations /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:1748
[11] build_versions(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}; verbose::Bool)
@ Pkg.Operations /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:1134
[12] build_versions
@ /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:1049 [inlined]
[13] build(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}, verbose::Bool)
@ Pkg.Operations /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/Operations.jl:991
[14] build(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; verbose::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/API.jl:1053
[15] build(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/API.jl:156
[16] build(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/API.jl:145
[17] #build#85
@ /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/API.jl:144 [inlined]
[18] build
@ /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/API.jl:144 [inlined]
[19] #build#84
@ /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/API.jl:143 [inlined]
[20] build(pkg::String)
@ Pkg.API /opt/mamba/envs/mcd/share/julia/stdlib/v1.9/Pkg/src/API.jl:143
[21] top-level scope
@ REPL[46]:1
`
- Ngôn ngữ chính
- Julia
- Star
- 1.5k
- Fork
- 186
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của JuliaPy/PyCall.jl
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 20/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của JuliaPy/PyCall.jl
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
CliMA/ClimaArtifacts#184 ·
-
In-place Vern7 stiffness estimate uses mismatched stage valuesCó thể đã có người làm @devmotion đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
SciML/OrdinaryDiffEq.jl#4778 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`pick_batchsize` spends ~1 µs constructing `BatchSizeSettings{B}(N)` with a run-time `B`Có thể đã có người làm @devmotion đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
JuliaDiff/ReverseDiff.jl#318 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100