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

MLJ 0.12.0 doesn't work with Julia 1.5.0 (Windows) #631

Closed
taigua opened this issue Aug 9, 2020 · 15 comments
Closed

MLJ 0.12.0 doesn't work with Julia 1.5.0 (Windows) #631

taigua opened this issue Aug 9, 2020 · 15 comments

Comments

@taigua
Copy link

taigua commented Aug 9, 2020

Describe the bug
Install MLJ in Julia 1.5.0 on Windows 10 (64bit)

ERROR: ArgumentError: Package MLJ [add582a8-e3ab-11e8-2d5e-e98b27df1bc7] is required but does not seem to be installed:

  • Run Pkg.instantiate() to install all recorded dependencies.

To Reproduce

Pkg.install("MLJ")
using MLJ

Expected behavior

Additional context

Versions
MLJ 0.12.0
Julia 1.5.0

ERROR: ArgumentError: Package MLJ [add582a8-e3ab-11e8-2d5e-e98b27df1bc7] is required but does not seem to be installed:

  • Run Pkg.instantiate() to install all recorded dependencies.

Stacktrace:
[1] _require(::Base.PkgId) at .\loading.jl:999
[2] require(::Base.PkgId) at .\loading.jl:928
[3] require(::Module, ::Symbol) at .\loading.jl:923

@OkonSamuel
Copy link
Member

The following works on my windows 10 PC(64 bit), Julia 1.5 and MLJ 0.12.0

julia> using Pkg

julia> Pkg.add("MLJ")
 Installing known registries into `C:\Users\okons\.julia`
      Added registry `General` to `C:\Users\okons\.julia\registries\General`
  Resolving package versions...
  Installed Requires ───────────────────── v1.0.1
  Installed CodecZlib ──────────────────── v0.7.0
  Installed MLJTuning ──────────────────── v0.4.1
  Installed FillArrays ─────────────────── v0.8.14
  Installed StableRNGs ─────────────────── v0.1.1
  Installed ColorTypes ─────────────────── v0.10.8
  Installed JLSO ───────────────────────── v2.3.2
  Installed Tables ─────────────────────── v1.0.5
  Installed InvertedIndices ────────────── v1.0.0
  Installed ExprTools ──────────────────── v0.1.1
  Installed PDMats ─────────────────────── v0.10.0
  Installed Arpack_jll ─────────────────── v3.5.0+3
  Installed CategoricalArrays ──────────── v0.8.1
  Installed IniFile ────────────────────── v0.5.0
  Installed Crayons ────────────────────── v4.0.3
  Installed Rmath_jll ──────────────────── v0.2.2+1
  Installed Parsers ────────────────────── v1.0.10
  Installed DataAPI ────────────────────── v1.3.0
  Installed OpenBLAS_jll ───────────────── v0.3.9+5
  Installed ComputationalResources ─────── v0.3.2
  Installed SpecialFunctions ───────────── v0.10.3
  Installed UnPack ─────────────────────── v1.0.1
  Installed Mocking ────────────────────── v0.7.1
  Installed XML2_jll ───────────────────── v2.9.10+1
  Installed Distances ──────────────────── v0.9.0
  Installed Arpack ─────────────────────── v0.4.0
  Installed IteratorInterfaceExtensions ── v1.0.0
  Installed Missings ───────────────────── v0.4.3
  Installed Distributions ──────────────── v0.23.8
  Installed DataValueInterfaces ────────── v1.0.0
  Installed FilePathsBase ──────────────── v0.9.4
  Installed MLJBase ────────────────────── v0.14.6
  Installed ProgressMeter ──────────────── v1.3.2
  Installed OpenSpecFun_jll ────────────── v0.5.3+3
  Installed TableTraits ────────────────── v1.0.0
  Installed Reexport ───────────────────── v0.2.0
  Installed QuadGK ─────────────────────── v2.4.0
  Installed MLJModelInterface ──────────── v0.3.2
  Installed Rmath ──────────────────────── v0.6.1
  Installed Memento ────────────────────── v1.1.0
  Installed Libiconv_jll ───────────────── v1.16.0+5
  Installed Zlib_jll ───────────────────── v1.2.11+15
  Installed TimeZones ──────────────────── v1.3.2
  Installed EzXML ──────────────────────── v1.1.0
  Installed Syslogs ────────────────────── v0.3.0
  Installed MLJScientificTypes ─────────── v0.2.8
  Installed MbedTLS ────────────────────── v1.0.2
  Installed SortingAlgorithms ──────────── v0.3.1
  Installed ScientificTypes ────────────── v0.8.1
  Installed CompilerSupportLibraries_jll ─ v0.3.3+0
  Installed MbedTLS_jll ────────────────── v2.16.6+1
  Installed Formatting ─────────────────── v0.4.1
  Installed MultivariateStats ──────────── v0.7.0
  Installed JSON ───────────────────────── v0.21.0
  Installed StatsBase ──────────────────── v0.33.0
  Installed LossFunctions ──────────────── v0.6.2
  Installed StatsFuns ──────────────────── v0.9.5
  Installed Parameters ─────────────────── v0.12.1
  Installed RecipesBase ────────────────── v1.0.2
  Installed DataStructures ─────────────── v0.17.20
  Installed PrettyTables ───────────────── v0.9.1
  Installed OrderedCollections ─────────── v1.3.0
  Installed LearnBase ──────────────────── v0.4.1
  Installed TranscodingStreams ─────────── v0.9.5
  Installed FixedPointNumbers ──────────── v0.8.4
  Installed HTTP ───────────────────────── v0.8.17
  Installed MLJ ────────────────────────── v0.12.0
  Installed MLJModels ──────────────────── v0.11.3
  Installed BSON ───────────────────────── v0.2.6
Updating `C:\Users\okons\.julia\environments\v1.5\Project.toml`
  [add582a8] + MLJ v0.12.0
Updating `C:\Users\okons\.julia\environments\v1.5\Manifest.toml`
  [7d9fca2a] + Arpack v0.4.0
  [68821587] + Arpack_jll v3.5.0+3
  [fbb218c0] + BSON v0.2.6
  [324d7699] + CategoricalArrays v0.8.1
  [944b1d66] + CodecZlib v0.7.0
  [3da002f7] + ColorTypes v0.10.8
  [e66e0078] + CompilerSupportLibraries_jll v0.3.3+0
  [ed09eef8] + ComputationalResources v0.3.2
  [a8cc5b0e] + Crayons v4.0.3
  [9a962f9c] + DataAPI v1.3.0
  [864edb3b] + DataStructures v0.17.20
  [e2d170a0] + DataValueInterfaces v1.0.0
  [b4f34e82] + Distances v0.9.0
  [31c24e10] + Distributions v0.23.8
  [e2ba6199] + ExprTools v0.1.1
  [8f5d6c58] + EzXML v1.1.0
  [48062228] + FilePathsBase v0.9.4
  [1a297f60] + FillArrays v0.8.14
  [53c48c17] + FixedPointNumbers v0.8.4
  [59287772] + Formatting v0.4.1
  [cd3eb016] + HTTP v0.8.17
  [83e8ac13] + IniFile v0.5.0
  [41ab1584] + InvertedIndices v1.0.0
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [9da8a3cd] + JLSO v2.3.2
  [682c06a0] + JSON v0.21.0
  [7f8f8fb0] + LearnBase v0.4.1
  [94ce4f54] + Libiconv_jll v1.16.0+5
  [30fc2ffe] + LossFunctions v0.6.2
  [add582a8] + MLJ v0.12.0
  [a7f614a8] + MLJBase v0.14.6
  [e80e1ace] + MLJModelInterface v0.3.2
  [d491faf4] + MLJModels v0.11.3
  [2e2323e0] + MLJScientificTypes v0.2.8
  [03970b2e] + MLJTuning v0.4.1
  [739be429] + MbedTLS v1.0.2
  [c8ffd9c3] + MbedTLS_jll v2.16.6+1
  [f28f55f0] + Memento v1.1.0
  [e1d29d7a] + Missings v0.4.3
  [78c3b35d] + Mocking v0.7.1
  [6f286f6a] + MultivariateStats v0.7.0
  [4536629a] + OpenBLAS_jll v0.3.9+5
  [efe28fd5] + OpenSpecFun_jll v0.5.3+3
  [bac558e1] + OrderedCollections v1.3.0
  [90014a1f] + PDMats v0.10.0
  [d96e819e] + Parameters v0.12.1
  [69de0a69] + Parsers v1.0.10
  [08abe8d2] + PrettyTables v0.9.1
  [92933f4c] + ProgressMeter v1.3.2
  [1fd47b50] + QuadGK v2.4.0
  [3cdcf5f2] + RecipesBase v1.0.2
  [189a3867] + Reexport v0.2.0
  [ae029012] + Requires v1.0.1
  [79098fc4] + Rmath v0.6.1
  [f50d1b31] + Rmath_jll v0.2.2+1
  [321657f4] + ScientificTypes v0.8.1
  [a2af1166] + SortingAlgorithms v0.3.1
  [276daf66] + SpecialFunctions v0.10.3
  [860ef19b] + StableRNGs v0.1.1
  [2913bbd2] + StatsBase v0.33.0
  [4c63d2b9] + StatsFuns v0.9.5
  [cea106d9] + Syslogs v0.3.0
  [3783bdb8] + TableTraits v1.0.0
  [bd369af6] + Tables v1.0.5
  [f269a46b] + TimeZones v1.3.2
  [3bb67fe8] + TranscodingStreams v0.9.5
  [3a884ed6] + UnPack v1.0.1
  [02c8fc9c] + XML2_jll v2.9.10+1
  [83775a58] + Zlib_jll v1.2.11+15
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8bb1440f] + DelimitedFiles
  [8ba89e20] + Distributed
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [4607b0f0] + SuiteSparse
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode
   Building TimeZones  `C:\Users\okons\.julia\packages\TimeZones\v0mfN\deps\build.log`

@OkonSamuel
Copy link
Member

@taigua so i'll close this now. So feel free to re-open if you are still experiencing this issue.

@taigua
Copy link
Author

taigua commented Aug 10, 2020

Thanks, it's network problem.
After deleting the MLJ folder and re-add package, it works.

@puneetchitkara48
Copy link

Cannot install MLJ, I get the following:
Updating registry at C:\Users\punee\.julia\registries\General.toml
Resolving package versions...
No Changes to C:\Users\punee\.julia\environments\v1.7\Project.toml
No Changes to C:\Users\punee\.julia\environments\v1.7\Manifest.toml
0 dependencies successfully precompiled in 1 seconds (213 already precompiled, 3 skipped during auto due to previous errors)
1 dependency errored. To see a full report either run import Pkg; Pkg.precompile() or load the package

@ablaom
Copy link
Member

ablaom commented Jul 24, 2022

Thanks for reporting. I should like to understand the package environment you are using. Can you please report the output of julia> using Pkg; Pkg.status()? And, while your at it, of infoversion()?

@puneetchitkara48
Copy link

Output of Pkg.status() is:

Status C:\Users\punee\.julia\environments\v1.7\Project.toml
[a93c6f00] DataFrames v0.19.4
[31c24e10] Distributions v0.21.12
[587475ba] Flux v0.8.3
[2e9cd046] Gurobi v0.11.3
[916415d5] Images v0.24.1
[38d8eb38] Lathe v0.0.9
[eb30cadb] MLDatasets v0.5.13
[add582a8] MLJ v0.8.0
[f57f5aa1] PNGFiles v0.3.16
[91a5bcdd] Plots v0.28.4
[c3e4b0f8] Pluto v0.12.7
[172a5912] SOM v0.4.1
[3646fa90] ScikitLearn v0.5.1
[fdbf4ff8] XLSX v0.6.2

versioninfo() is:

Julia Version 1.7.3
Commit 742b9abb4d (2022-05-06 12:58 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-12.0.1 (ORCJIT, skylake)

@puneetchitkara48
Copy link

I tried to load MLJ in another environment where Pkg.status() did not show anything. Here, MLJ loaded fine, but when I executed using MLJ, it gave the following:

using MLJ
[ Info: Precompiling MLJ [add582a8-e3ab-11e8-2d5e-e98b27df1bc7]
ERROR: LoadError: MethodError: no method matching names(::Base.Broadcast.BroadcastFunction{Irrational{:log4π}})
Closest candidates are:
names(::Module; all, imported) at C:\Users\punee\AppData\Local\Programs\Julia-1.7.3\share\julia\base\reflection.jl:102
Stacktrace:
[1] top-level scope
@ C:\Users\punee.julia\packages\StatsFuns\vxSkw\src\StatsFuns.jl:10
[2] include
@ .\Base.jl:418 [inlined]
[3] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[4] top-level scope
@ none:1
[5] eval
@ .\boot.jl:373 [inlined]
[6] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[7] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\StatsFuns\vxSkw\src\StatsFuns.jl:1
ERROR: LoadError: Failed to precompile StatsFuns [4c63d2b9-4356-54db-8cca-17b64c39e42c] to C:\Users\punee.julia\compiled\v1.7\StatsFuns\jl_931F.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\Distributions\1PkiH\src\Distributions.jl:1
ERROR: LoadError: Failed to precompile Distributions [31c24e10-a181-5473-b8eb-7969acd0382f] to C:\Users\punee.julia\compiled\v1.7\Distributions\jl_90CF.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\ScientificTypes\3irls\src\ScientificTypes.jl:1
ERROR: LoadError: Failed to precompile ScientificTypes [321657f4-b219-11e9-178b-2701a2544e81] to C:\Users\punee.julia\compiled\v1.7\ScientificTypes\jl_8256.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\MLJBase\mY894\src\MLJBase.jl:1
ERROR: LoadError: Failed to precompile MLJBase [a7f614a8-145f-11e9-1d2a-a57a1082229d] to C:\Users\punee.julia\compiled\v1.7\MLJBase\jl_8072.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::Nothing)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\MLJ\oY2Lf\src\MLJ.jl:1
ERROR: Failed to precompile MLJ [add582a8-e3ab-11e8-2d5e-e98b27df1bc7] to C:\Users\punee.julia\compiled\v1.7\MLJ\jl_7EC5.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] eval
@ .\boot.jl:373 [inlined]
[8] eval
@ .\Base.jl:68 [inlined]
[9] repleval(m::Module, code::Expr, #unused#::String)
@ VSCodeServer c:\Users\punee.vscode\extensions\julialang.language-julia-1.6.24\scripts\packages\VSCodeServer\src\repl.jl:157
[10] (::VSCodeServer.var"#78#80"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\punee.vscode\extensions\julialang.language-julia-1.6.24\scripts\packages\VSCodeServer\src\repl.jl:123
[11] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:511
[12] with_logger
@ .\logging.jl:623 [inlined]
[13] (::VSCodeServer.var"#77#79"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\punee.vscode\extensions\julialang.language-julia-1.6.24\scripts\packages\VSCodeServer\src\repl.jl:124
[14] #invokelatest#2
@ .\essentials.jl:716 [inlined]
[15] invokelatest(::Any)
@ Base .\essentials.jl:714
[16] macro expansion
@ c:\Users\punee.vscode\extensions\julialang.language-julia-1.6.24\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
[17] (::VSCodeServer.var"#60#61")()
@ VSCodeServer .\task.jl:429

@OkonSamuel
Copy link
Member

Output of Pkg.status() is:

Status C:\Users\punee\.julia\environments\v1.7\Project.toml [a93c6f00] DataFrames v0.19.4 [31c24e10] Distributions v0.21.12 [587475ba] Flux v0.8.3 [2e9cd046] Gurobi v0.11.3 [916415d5] Images v0.24.1 [38d8eb38] Lathe v0.0.9 [eb30cadb] MLDatasets v0.5.13 [add582a8] MLJ v0.8.0 [f57f5aa1] PNGFiles v0.3.16 [91a5bcdd] Plots v0.28.4 [c3e4b0f8] Pluto v0.12.7 [172a5912] SOM v0.4.1 [3646fa90] ScikitLearn v0.5.1 [fdbf4ff8] XLSX v0.6.2

versioninfo() is:

Julia Version 1.7.3 Commit 742b9abb4d (2022-05-06 12:58 UTC) Platform Info: OS: Windows (x86_64-w64-mingw32) CPU: Intel(R) Core(TM) i7-10875H CPU @ 2.30GHz WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-12.0.1 (ORCJIT, skylake)

@taigua You are using a really old version of MLJ.
try this on a fresh julia 1.7 terminal

julia> ]

(@v1.7) pkg> rm MLJ

(@v1.7) pkg> gc

(@v1.7) pkg> add MLJ@0.18

julia> using MLJ

and tell me what result you get.

@puneetchitkara48
Copy link

Again I get the following:

julia> using MLJ
[ Info: Precompiling MLJ [add582a8-e3ab-11e8-2d5e-e98b27df1bc7]
ERROR: LoadError: MethodError: no method matching names(::Base.Broadcast.BroadcastFunction{Irrational{:log4π}})
Closest candidates are:
names(::Module; all, imported) at C:\Users\punee\AppData\Local\Programs\Julia-1.7.3\share\julia\base\reflection.jl:102
Stacktrace:
[1] top-level scope
@ C:\Users\punee.julia\packages\StatsFuns\vxSkw\src\StatsFuns.jl:10
[2] include
@ .\Base.jl:418 [inlined]
[3] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[4] top-level scope
@ none:1
[5] eval
@ .\boot.jl:373 [inlined]
[6] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[7] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\StatsFuns\vxSkw\src\StatsFuns.jl:1
ERROR: LoadError: Failed to precompile StatsFuns [4c63d2b9-4356-54db-8cca-17b64c39e42c] to C:\Users\punee.julia\compiled\v1.7\StatsFuns\jl_D66A.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\Distributions\1PkiH\src\Distributions.jl:1
ERROR: LoadError: Failed to precompile Distributions [31c24e10-a181-5473-b8eb-7969acd0382f] to C:\Users\punee.julia\compiled\v1.7\Distributions\jl_D438.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\ScientificTypes\3irls\src\ScientificTypes.jl:1
ERROR: LoadError: Failed to precompile ScientificTypes [321657f4-b219-11e9-178b-2701a2544e81] to C:\Users\punee.julia\compiled\v1.7\ScientificTypes\jl_D08E.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\MLJBase\mY894\src\MLJBase.jl:1
ERROR: LoadError: Failed to precompile MLJBase [a7f614a8-145f-11e9-1d2a-a57a1082229d] to C:\Users\punee.julia\compiled\v1.7\MLJBase\jl_CEBA.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::Nothing)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\punee.julia\packages\MLJ\oY2Lf\src\MLJ.jl:1
ERROR: Failed to precompile MLJ [add582a8-e3ab-11e8-2d5e-e98b27df1bc7] to C:\Users\punee.julia\compiled\v1.7\MLJ\jl_CD1D.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] eval
@ .\boot.jl:373 [inlined]
[8] eval
@ .\Base.jl:68 [inlined]
[9] repleval(m::Module, code::Expr, #unused#::String)
@ VSCodeServer c:\Users\punee.vscode\extensions\julialang.language-julia-1.6.24\scripts\packages\VSCodeServer\src\repl.jl:157
[10] (::VSCodeServer.var"#78#80"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\punee.vscode\extensions\julialang.language-julia-1.6.24\scripts\packages\VSCodeServer\src\repl.jl:123
[11] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:511
[12] with_logger
@ .\logging.jl:623 [inlined]
[13] (::VSCodeServer.var"#77#79"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\punee.vscode\extensions\julialang.language-julia-1.6.24\scripts\packages\VSCodeServer\src\repl.jl:124
[14] #invokelatest#2
@ .\essentials.jl:716 [inlined]
[15] invokelatest(::Any)
@ Base .\essentials.jl:714
[16] macro expansion
@ c:\Users\punee.vscode\extensions\julialang.language-julia-1.6.24\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
[17] (::VSCodeServer.var"#60#61")()
@ VSCodeServer .\task.jl:429

@puneetchitkara48
Copy link

I tried to load MLJ@0.18 in another folder, this is what resulted:

(@v1.7) pkg> gc
Active manifest files: 3 found
Active artifact files: 81 found
Active scratchspaces: 14 found
Deleted no artifacts, repos, packages or scratchspaces

(@v1.7) pkg> add MLJ@0.18
Updating registry at C:\Users\punee\.julia\registries\General.toml
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MLJTuning [03970b2e]:
MLJTuning [03970b2e] log:
├─possible versions are: 0.1.0-0.7.2 or uninstalled
├─restricted by compatibility requirements with MLJ [add582a8] to versions: 0.7.0-0.7.2
│ └─MLJ [add582a8] log:
│ ├─possible versions are: 0.1.0-0.18.4 or uninstalled
│ └─restricted to versions 0.18 by an explicit requirement, leaving only versions 0.18.0-0.18.4
└─restricted by compatibility requirements with Distributions [31c24e10] to versions: 0.1.0-0.3.0 or uninstalled — no versions left
└─Distributions [31c24e10] log:
├─possible versions are: 0.16.0-0.25.66 or uninstalled
├─restricted to versions * by an explicit requirement, leaving only versions 0.16.0-0.25.66
├─restricted by compatibility requirements with MLJ [add582a8] to versions: 0.21.0-0.25.66
│ └─MLJ [add582a8] log: see above
└─restricted by compatibility requirements with SOM [172a5912] to versions: 0.16.0-0.21.12, leaving only versions: 0.21.0-0.21.12
└─SOM [172a5912] log:
├─possible versions are: 0.2.0-0.4.1 or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions 0.2.0-0.4.1

@OkonSamuel
Copy link
Member

OkonSamuel commented Jul 25, 2022

What's SOM package? It's preventing you from using the latest MLJ version.
try creating a new environment instead.

using Pkg
Pkg.activate("MLJ_tour", shared=true)
Pkg.add("MLJ", version="0.18")

@puneetchitkara48
Copy link

I am now getting the following error:

julia> Pkg.add("MLJ",version = "0.18")
ERROR: type Context has no field version
Stacktrace:
[1] #Context!#37
@ C:\Users\punee\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\Types.jl:457 [inlined]
[2] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Any, Tuple{Symbol, Symbol}, NamedTuple{(:version, :io), Tuple{String, Base.TTY}}})
@ Pkg.API C:\Users\punee\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:222
[3] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, String, Tuple{Symbol}, NamedTuple{(:version,), Tuple{String}}})
@ Pkg.API C:\Users\punee\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:149
[4] #add#27
@ C:\Users\punee\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:142 [inlined]
[5] #add#26
@ C:\Users\punee\AppData\Local\Programs\Julia-1.7.3\share\julia\stdlib\v1.7\Pkg\src\API.jl:141 [inlined]
[6] top-level scope
@ REPL[19]:1

@OkonSamuel
Copy link
Member

@puneetchitkara48
I made a typo earlier, try the following instead.

using Pkg
Pkg.activate("MLJ_tour", shared=true)
Pkg.add(name="MLJ", version="0.18")

@puneetchitkara48
Copy link

Thanks a lot - this works. Where can I get more information on creating new environments for loading new packages where dependencies conflict with some of the packages loaded previously?

@ablaom
Copy link
Member

ablaom commented Aug 2, 2022

https://blog.devgenius.io/the-most-underrated-feature-of-the-julia-programming-language-the-package-manager-652065f45a3a

The manual is here:

https://pkgdocs.julialang.org/dev/

There are also quite a few enhancements planned for julia 1.8: https://github.com/JuliaLang/julia/blob/backports-release-1.8/NEWS.md#package-manager

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

4 participants