Skip to content

Trouble installing package #7

@ablaom

Description

@ablaom

This may be an issue with PythonCall, but I wanted to flag it here first. (Another pkg I use that uses PythonCall is not having the issue)

I'm getting this under Julia 1.10.7 and 1.11.3

@davnn Can you reproduce?

(@work) pkg> activate --temp
(jl_LMxJwM) pkg> add OutlierDetectionPython
   Resolving package versions...
    Updating `/private/var/folders/4n/gvbmlhdc8xj973001s6vdyw00000gq/T/jl_LMxJwM/Project.toml`
  [2449c660] + OutlierDetectionPython v0.2.3
    Updating `/private/var/folders/4n/gvbmlhdc8xj973001s6vdyw00000gq/T/jl_LMxJwM/Manifest.toml`
  [324d7699] + CategoricalArrays v0.10.8
  [992eb4ea] + CondaPkg v0.2.25
  [9a962f9c] + DataAPI v1.16.0
  [e2d170a0] + DataValueInterfaces v1.0.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [692b3bcd] + JLLWrappers v1.7.0
  [0f8b85d8] + JSON3 v1.14.1
  [e80e1ace] + MLJModelInterface v1.11.0
  [1914dd2f] + MacroTools v0.5.15
  [0b3b1443] + MicroMamba v0.1.14
  [e1d29d7a] + Missings v1.2.0
  [bac558e1] + OrderedCollections v1.8.0
  [1722ece6] + OutlierDetectionInterface v0.2.1
  [2449c660] + OutlierDetectionPython v0.2.3
  [69de0a69] + Parsers v2.8.1
  [fa939f87] + Pidfile v1.3.0
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [6099a3de] + PythonCall v0.9.24
  [189a3867] + Reexport v1.2.2
  [ae029012] + Requires v1.3.0
  [30f210dd] + ScientificTypesBase v3.0.0
  [6c6a2e73] + Scratch v1.2.1
  [64bff920] + StatisticalTraits v3.4.0
  [10745b16] + Statistics v1.11.1
  [856f2bd8] + StructTypes v1.11.0
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.12.0
  [e17b2a0c] + UnsafePointers v1.0.0
  [f8abcde7] + micromamba_jll v1.5.8+0
  [4d7b5844] + pixi_jll v0.41.3+0
  [0dad84c5] + ArgTools v1.1.2
  [56f22d72] + Artifacts v1.11.0
  [2a0f44e3] + Base64 v1.11.0
  [ade2ca70] + Dates v1.11.0
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching v1.11.0
  [9fa8497b] + Future v1.11.0
  [b77e0a4c] + InteractiveUtils v1.11.0
  [4af54fe1] + LazyArtifacts v1.11.0
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2 v1.11.0
  [8f399da3] + Libdl v1.11.0
  [37e2e46d] + LinearAlgebra v1.11.0
  [56ddb016] + Logging v1.11.0
  [d6f4376e] + Markdown v1.11.0
  [a63ad114] + Mmap v1.11.0
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.11.0
  [de0858da] + Printf v1.11.0
  [9a3f8284] + Random v1.11.0
  [ea8e919c] + SHA v0.7.0
  [9e88b42a] + Serialization v1.11.0
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [8dfed614] + Test v1.11.0
  [cf7118a7] + UUIDs v1.11.0
  [4ec0a83e] + Unicode v1.11.0
  [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0
  [deac9b47] + LibCURL_jll v8.6.0+0
  [e37daf67] + LibGit2_jll v1.7.2+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.6+0
  [14a3606d] + MozillaCACerts_jll v2023.12.12
  [4536629a] + OpenBLAS_jll v0.3.27+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.11.0+0
  [8e850ede] + nghttp2_jll v1.59.0+0
  [3f19e933] + p7zip_jll v17.4.0+2
Precompiling project...
  ✗ OutlierDetectionPython
  0 dependencies successfully precompiled in 9 seconds. 61 already precompiled.
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

(jl_LMxJwM) pkg> err
ERROR: `err` is not a recognized command. Type ? for help with available commands

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

OutlierDetectionPython 

Failed to precompile OutlierDetectionPython [2449c660-d36c-460e-a68b-92ab3c865b3e] to "/Users/anthony/.julia/compiled/v1.11/OutlierDetectionPython/jl_n0jQCi".
    CondaPkg Found dependencies: /Users/anthony/.julia/packages/OutlierDetectionPython/Hxnlk/CondaPkg.toml
    CondaPkg Found dependencies: /Users/anthony/.julia/packages/PythonCall/WMWY0/CondaPkg.toml
    CondaPkg Resolving changes
             + llvmlite
             + pyod
             + python
    CondaPkg Initialising pixi
             │ /Users/anthony/.julia/artifacts/cc02fad3b04cfb688ba4e3d60648ad8c3afe3a2d/bin/pixi
             │ init
             │ --format pixi
             └ /private/var/folders/4n/gvbmlhdc8xj973001s6vdyw00000gq/T/jl_LMxJwM/.CondaPkg
✔ Created /private/var/folders/4n/gvbmlhdc8xj973001s6vdyw00000gq/T/jl_LMxJwM/.CondaPkg/pixi.toml
    CondaPkg Wrote /private/var/folders/4n/gvbmlhdc8xj973001s6vdyw00000gq/T/jl_LMxJwM/.CondaPkg/pixi.toml
             │ [dependencies]
             │ pyod = "=2"
             │ 
             │     [dependencies.llvmlite]
             │     channel = "numba"
             │     build = "*"
             │     version = "*"
             │ 
             │     [dependencies.python]
             │     channel = "conda-forge"
             │     build = "*cpython*"
             │     version = ">=3.8,<4"
             │ 
             │ [project]
             │ name = ".CondaPkg"
             │ platforms = ["osx-64"]
             │ channels = ["conda-forge"]
             │ channel-priority = "disabled"
             └ description = "automatically generated by CondaPkg.jl"
    CondaPkg Installing packages
             │ /Users/anthony/.julia/artifacts/cc02fad3b04cfb688ba4e3d60648ad8c3afe3a2d/bin/pixi
             │ install
             └ --manifest-path /private/var/folders/4n/gvbmlhdc8xj973001s6vdyw00000gq/T/jl_LMxJwM/.CondaPkg/pixi.toml
Error: 
  × failed to solve the conda requirements of 'default' 'osx-64'
  ╰─▶ Cannot solve the request because of: The following packages are
      incompatible
      └─ llvmlite * * cannot be installed because there are no viable options:
         └─ llvmlite 0.21.0 | 0.21.0 | 0.21.0 | 0.22.0 | 0.22.0 | 0.22.0 |
      0.23.0 | 0.23.0 | 0.23.0 | 0.23.0 | 0.23.0 | 0.23.0 | 0.23.2 | 0.23.2 |
      0.23.2 | 0.23.2 | 0.23.2 | 0.23.2 | 0.24.0 | 0.24.0 | 0.24.0 | 0.24.0 |
      0.24.0 | 0.24.0 | 0.25.0 | 0.25.0 | 0.25.0 | 0.25.0 | 0.25.0 | 0.25.0 |
      0.26.0 | 0.26.0 | 0.27.0 | 0.27.0 | 0.27.0 | 0.27.1 | 0.27.1 | 0.27.1 |
      0.28.0 | 0.28.0 | 0.28.0 | 0.29.0 | 0.29.0 | 0.29.0 | 0.30.0 | 0.30.0 |
      0.30.0 | 0.30.0 | 0.30.0 | 0.30.0 | 0.30.0 | 0.31.0 | 0.31.0 | 0.31.0 |
      0.31.0 | 0.31.0 | 0.31.0 | 0.31.0 | 0.31.0 | 0.31.0 | 0.32.0 | 0.32.0 |
      0.32.0 | 0.32.0 | 0.32.1 | 0.32.1 | 0.32.1 | 0.32.1 | 0.33.0 | 0.33.0 |
      0.33.0 | 0.33.0 | 0.33.0 | 0.33.0 | 0.33.0 | 0.33.0 | 0.34.0 | 0.34.0 |
      0.34.0 | 0.34.0 | 0.34.0 | 0.34.0 | 0.34.0 | 0.34.0 | 0.34.0 | 0.34.0 |
      0.34.0 | 0.34.0 | 0.34.0 | 0.35.0 | 0.35.0 | 0.35.0 | 0.35.0 | 0.35.0 |
      0.35.0 | 0.35.0 | 0.35.0 | 0.35.0 | 0.35.0 | 0.35.0 | 0.35.0 | 0.35.0 |
      0.35.0 | 0.35.0 | 0.35.0 | 0.36.0 | 0.36.0 | 0.36.0 | 0.36.0 | 0.36.0 |
      0.36.0 | 0.37.0 | 0.37.0 | 0.37.0 | 0.37.0 | 0.37.0 | 0.37.0 | 0.37.0 |
      0.37.0 | 0.37.0 | 0.38.0 | 0.38.0 | 0.38.0 | 0.38.0 | 0.38.0 | 0.38.0 |
      0.38.0 | 0.38.0 | 0.38.0 | 0.38.0 | 0.38.0 | 0.38.1 | 0.38.1 | 0.38.1 |
      0.38.1 | 0.38.1 | 0.38.1 | 0.39.0 | 0.39.0 | 0.39.0 | 0.39.0 | 0.39.0 |
      0.39.0 | 0.39.0 | 0.39.0 | 0.39.0 | 0.39.0 | 0.39.0 | 0.39.0 | 0.39.1 |
      0.39.1 | 0.39.1 | 0.39.1 | 0.39.1 | 0.39.1 | 0.39.1 | 0.39.1 | 0.39.1 |
      0.39.1 | 0.39.1 | 0.40.0 | 0.40.0 | 0.40.0 | 0.40.0 | 0.40.0 | 0.40.0 |
      0.40.1 | 0.40.1 | 0.40.1 | 0.40.1 | 0.40.1 | 0.40.1 | 0.41.1 | 0.41.1 |
      0.41.1 | 0.41.1 | 0.41.1 | 0.42.0 | 0.42.0 | 0.42.0 | 0.42.0 | 0.42.0 |
      0.42.0 | 0.42.0 | 0.42.0 | 0.42.0 | 0.43.0 | 0.43.0 | 0.43.0 | 0.43.0 |
      0.43.0 | 0.43.0 | 0.43.0 | 0.43.0 | 0.43.0 | 0.43.0 | 0.44.0 | 0.44.0 |
      0.44.0 | 0.44.0 is excluded because candidate not in requested channel:
      'numba'
      

ERROR: LoadError: InitError: failed process: Process(setenv(`/Users/anthony/.julia/artifacts/cc02fad3b04cfb688ba4e3d60648ad8c3afe3a2d/bin/pixi install --manifest-path /private/var/folders/4n/gvbmlhdc8xj973001s6vdyw00000gq/T/jl_LMxJwM/.CondaPkg/pixi.toml`,["_CE_M=", "PATH=/Users/anthony/.julia/artifacts/cc02fad3b04cfb688ba4e3d60648ad8c3afe3a2d/bin:/Users/anthony/miniconda3/bin:/Users/anthony/miniconda3/condabin:/Users/anthony/.local/bin:/Library/TeX/texbin:/usr/local/homebrew/bin:~/usr/local/bin:/usr/local/bin:/usr/local/sbin:.:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Library/TeX/texbin:/opt/X11/bin:/Library/Apple/usr/bin:/usr/texbin:/usr/local/bin", "EDITOR=emacs", "DYLD_LIBRARY_PATH=/usr/local/homebrew/Cellar/libomp/9.0.1/lib/", "GIT_EDITOR=emacs", "R_HOME=*", "OPENBLAS_DEFAULT_NUM_THREADS=1", "USER=anthony", "PIXI_CACHE_DIR=/Users/anthony/.julia/scratchspaces/992eb4ea-22a4-4c89-a5bb-47a3300528ab/pixi_cache", "CONDA_PROMPT_MODIFIER=(base) "  …  "AUTOJUMP_ERROR_PATH=/Users/anthony/Library/autojump/errors.log", "OPENBLAS_NUM_THREADS=1", "GIT_REPOS=/Users/anthony/GoogleDrive/Julia", "GUILE_SYSTEM_EXTENSIONS_PATH=/usr/local/homebrew/lib/guile/3.0/extensions", "MLJ_PATH=/Users/anthony/GoogleDrive/Julia/MLJ/MLJ", "CONDA_PREFIX=/Users/anthony/miniconda3", "TERM_SESSION_ID=8B058C57-49CC-4E52-8AF7-755813839F52", "JULIA_LOAD_PATH=/private/var/folders/4n/gvbmlhdc8xj973001s6vdyw00000gq/T/jl_LMxJwM/Project.toml:/Users/anthony/.julia/environments/v1.11/Project.toml:/Applications/Julia-1.11.app/Contents/Resources/julia/share/julia/stdlib/v1.11", "OPENBLAS_MAIN_FREE=1", "GUILE_LOAD_COMPILED_PATH=/usr/local/homebrew/lib/guile/3.0/site-ccache"]), ProcessExited(1)) [1]

Stacktrace:
  [1] pipeline_error
    @ ./process.jl:598 [inlined]
  [2] run(::Cmd; wait::Bool)
    @ Base ./process.jl:513
  [3] run(::Cmd)
    @ Base ./process.jl:510
  [4] _run(io::IO, cmd::Cmd, args::Any; flags::Any)
    @ CondaPkg ~/.julia/packages/CondaPkg/EtMAJ/src/resolve.jl:551
  [5] _run(io::IO, cmd::Cmd, args::Any)
    @ CondaPkg ~/.julia/packages/CondaPkg/EtMAJ/src/resolve.jl:545
  [6] (::CondaPkg.var"#59#69"{Bool, IOContext{Base.PipeEndpoint}, String, Vector{CondaPkg.PipPkgSpec}, Vector{CondaPkg.PkgSpec}, Vector{CondaPkg.ChannelSpec}})()
    @ CondaPkg ~/.julia/packages/CondaPkg/EtMAJ/src/resolve.jl:825
  [7] cd(f::CondaPkg.var"#59#69"{Bool, IOContext{Base.PipeEndpoint}, String, Vector{CondaPkg.PipPkgSpec}, Vector{CondaPkg.PkgSpec}, Vector{CondaPkg.ChannelSpec}}, dir::String)
    @ Base.Filesystem ./file.jl:112
  [8] resolve(; force::Bool, io::IO, interactive::Bool, dry_run::Bool)
    @ CondaPkg ~/.julia/packages/CondaPkg/EtMAJ/src/resolve.jl:776
  [9] resolve()
    @ CondaPkg ~/.julia/packages/CondaPkg/EtMAJ/src/resolve.jl:569
 [10] envdir()
    @ CondaPkg ~/.julia/packages/CondaPkg/EtMAJ/src/env.jl:70
 [11] init_context()
    @ PythonCall.C ~/.julia/packages/PythonCall/WMWY0/src/C/context.jl:63
 [12] __init__()
    @ PythonCall.C ~/.julia/packages/PythonCall/WMWY0/src/C/C.jl:23
 [13] run_module_init(mod::Module, i::Int64)
    @ Base ./loading.jl:1378
 [14] register_restored_modules(sv::Core.SimpleVector, pkg::Base.PkgId, path::String)
    @ Base ./loading.jl:1366
 [15] _include_from_serialized(pkg::Base.PkgId, path::String, ocachepath::String, depmods::Vector{Any}, ignore_native::Nothing; register::Bool)
    @ Base ./loading.jl:1254
 [16] _include_from_serialized (repeats 2 times)
    @ ./loading.jl:1210 [inlined]
 [17] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String, build_id::UInt128, stalecheck::Bool; reasons::Dict{String, Int64}, DEPOT_PATH::Vector{String})
    @ Base ./loading.jl:2057
 [18] _require(pkg::Base.PkgId, env::String)
    @ Base ./loading.jl:2527
 [19] __require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2388
 [20] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [21] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [22] _require_prelocked(uuidkey::Base.PkgId, env::String)
    @ Base ./loading.jl:2375
 [23] macro expansion
    @ ./loading.jl:2314 [inlined]
 [24] macro expansion
    @ ./lock.jl:273 [inlined]
 [25] __require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2271
 [26] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [27] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [28] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:2260
 [29] include
    @ ./Base.jl:557 [inlined]
 [30] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::Nothing)
    @ Base ./loading.jl:2881
 [31] top-level scope
    @ stdin:6
during initialization of module C
in expression starting at /Users/anthony/.julia/packages/OutlierDetectionPython/Hxnlk/src/OutlierDetectionPython.jl:1
in expression starting at stdin:

julia> versioninfo()
Julia Version 1.11.3
Commit d63adeda50d (2025-01-21 19:42 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: macOS (x86_64-apple-darwin24.0.0)
  CPU: 12 × Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  WORD_SIZE: 64
  LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 12 default, 0 interactive, 6 GC (on 12 virtual cores)
Environment:
  JULIA_LTS_PATH = /Applications/Julia-1.10.app/Contents/Resources/julia/bin/julia
  JULIA_PATH = /Applications/Julia-1.11.app/Contents/Resources/julia/bin/julia
  JULIA_EGLOT_PATH = /Applications/Julia-1.7.app/Contents/Resources/julia/bin/julia
  JULIA_NUM_THREADS = 12
  DYLD_LIBRARY_PATH = /usr/local/homebrew/Cellar/libomp/9.0.1/lib/
  JULIA_NIGHTLY_PATH = /Applications/Julia-1.11.app/Contents/Resources/julia/bin/julia

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions