Attempting to instantiate an old environment I get a number of packages that fail with the error in the subject. The trace information that is printed out doesnβt offer any clue I can understand about the actual source of the problem.
I would appreciate any advice on how to diagnose the problem, or even to solve it
This is something I was working on a year or two ago, on a different system and earlier julia and packages. My overall plan was to first get it working with the package versions at the time, and then update the packages and my code as necessary.
Operations are inside VSCode with julia 1.7.2. Project.toml is at the bottom of this message; it uses UUIDs for the version specification.
Some notes about the output that follows:
- The very first item seems to list 2 different log files. The first exists, but is empty. I looked for the 2nd assuming I should replace the end of the 1st file name, but donβt see it.
- What happens after re-resolving?
- The 2nd round errors, after
Pkg.precompile()
are chattier, but not helpfully so; the stack trace seems to be for the precompiler failing, not what it failed on.
Building Conda βββββ `C:\Users\rdboylan\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\7a58bb32ce5d85f8bf7559aa7c2842f9aecf52fc\build.log`
a9757e1f86cbbff81\build.log`
β Warning: Could not use exact versions of packages in manifest, re-resolving
β @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1488
Building RCall βββββ `C:\Users\rdboylan\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\3a0e886953024454e9f489e309568e134dc7e6ed\build.log`
β Warning: Could not use exact versions of packages in manifest, re-resolving
β @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1488
Building HDF5 ββββββ `C:\Users\rdboylan\.julia\scratchspaces\44cfe95a-1eb2-52ea-b672-e2afdf69b78f\0713cbabdf855852dfab3ce6447c87145f3d9ea8\build.log`
β Warning: Could not use exact versions of packages in manifest, re-resolving
β @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.7\Pkg\src\Operations.jl:1488
Precompiling project...
Progress [========================================>] 160/160
β FileIO
β FileIO
β StatFiles
β JLD
β RData
β Revise
β FlameGraphs
β Gtk
β GtkReactive
β ProfileView
151 dependencies successfully precompiled in 55 seconds (1 already precompiled)
9 dependencies errored. To see a full report either run `import Pkg; Pkg.precompile()` or load the packages
julia> import Pkg; Pkg.precompile()
Precompiling project...
Progress [========================================>] 9/9
β FileIO
β FileIO
β Revise
β Gtk
β StatFiles
β JLD
β FlameGraphs
β RData
β GtkReactive
β ProfileView
0 dependencies successfully precompiled in 22 seconds (152 already precompiled)
ERROR: The following 4 direct dependencies failed to precompile:
Revise [295af30f-e4ad-537b-8983-00126c2a3abe]
Failed to precompile Revise [295af30f-e4ad-537b-8983-00126c2a3abe] to C:\Users\rdboylan\.julia\compiled\v1.7\Revise\jl_CF5E.tmp.
ERROR: LoadError: AssertionError: precompile(Tuple{mbody.sig.parameters[1], Symbol, Bool, Bool, Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}}, typeof(methods_by_execution!), Any, MI, DocExprs, Module, Expr})
Stacktrace:
[1] _precompile_()
@ Revise C:\Users\rdboylan\.julia\packages\Revise\qYvgD\src\precompile.jl:52
[2] top-level scope
@ C:\Users\rdboylan\.julia\packages\Revise\qYvgD\src\packagedef.jl:1385
[3] include(mod::Module, _path::String)
@ Base .\Base.jl:418
[4] include(x::String)
@ Revise C:\Users\rdboylan\.julia\packages\Revise\qYvgD\src\Revise.jl:1
[5] top-level scope
@ C:\Users\rdboylan\.julia\packages\Revise\qYvgD\src\Revise.jl:20
[6] include
@ .\Base.jl:418 [inlined]
[7] 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
[8] top-level scope
@ none:1
[9] eval
@ .\boot.jl:373 [inlined]
[10] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[11] top-level scope
@ none:1
in expression starting at C:\Users\rdboylan\.julia\packages\Revise\qYvgD\src\packagedef.jl:1385
in expression starting at C:\Users\rdboylan\.julia\packages\Revise\qYvgD\src\Revise.jl:1
Basically the same error is repeated for each of the failing packages.
Project.toml:
name = "MyFirst"
uuid = "074633b0-7e9c-11e9-0fe2-650315f203db"
authors = ["Ross Boylan <ross.boylan@ucsf.edu>"]
version = "0.1.0"
[deps]
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Distributions = "31c24e10-a181-5473-b8eb-7969acd0382f"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
GLM = "38e38edf-8417-5370-95a0-9cbb8c7f171a"
InteractiveCodeSearch = "54eb57ff-b09b-5185-b2f4-7a93509e494f"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
NLSolversBase = "d41bc354-129a-5804-8e4c-c37616107c6c"
NamedArrays = "86f7a689-2022-50b4-a561-43c23ac3c673"
Optim = "429524aa-4258-5aef-a3af-852621145aeb"
ProfileView = "c46f51b8-102a-5cf2-8d2c-8597cb0e0da7"
RCall = "6f49c342-dc21-5d91-9882-a32aef131414"
RData = "df47a6cb-8c03-5eed-afd8-b6050d6c41da"
Revise = "295af30f-e4ad-537b-8983-00126c2a3abe"
StatFiles = "1463e38c-9381-5320-bcd4-4134955f093a"
StatsBase = "2913bbd2-ae8a-5f71-8c99-4fb6c76f3a91"
StatsModels = "3eaba693-59b7-5ba5-a881-562e759f1c8d"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"