Skip to content

could not load library Reactant.TracedLinearAlgebra on Windows #1339

@lazarusA

Description

@lazarusA

when trying to build the docs locally on windows I hit the following error for this file

  • C:\Users\lalonso\Documents\Lux.jl\examples\PolynomialFitting\main.jl
 using Lux, ADTypes, Optimisers, Printf, Random, Reactant, Statistics, CairoMakie
 Debug: execute_block(Main.var"##230", block)
│ ```
│ using Lux, ADTypes, Optimisers, Printf, Random, Reactant, Statistics, CairoMakie
│ ```
└ @ Literate C:\Users\lalonso\.julia\packages\Literate\TujCy\src\Literate.jl:914
ERROR: LoadError: LoadError: InitError: could not load library ""
The parameter is incorrect.
during initialization of module TracedLinearAlgebra
in expression starting at C:\Users\lalonso\Documents\Lux.jl\docs\src\tutorials\beginner\2_PolynomialFitting.md:1
when executing the following code block from inputfile `C:\Users\lalonso\Documents\Lux.jl\examples\PolynomialFitting\main.jl`

```julia
using Lux, ADTypes, Optimisers, Printf, Random, Reactant, Statistics, CairoMakie
```

Stacktrace:
 [1] error(s::String)
   @ Base .\error.jl:35
 [2] execute_block(sb::Module, block::String; inputfile::String, fake_source::String, softscope::Bool, continue_on_error::Bool)
   @ Literate C:\Users\lalonso\.julia\packages\Literate\TujCy\src\Literate.jl:948
 [3] execute_block
   @ C:\Users\lalonso\.julia\packages\Literate\TujCy\src\Literate.jl:912 [inlined]
 [4] execute_markdown!(io::IOBuffer, sb::Module, block::String, outputdir::String; inputfile::String, fake_source::String, flavor::Literate.DocumenterFlavor, image_formats::Vector{Tuple{MIME, String}}, file_prefix::String, softscope::Bool, continue_on_error::Bool)
   @ Literate C:\Users\lalonso\.julia\packages\Literate\TujCy\src\Literate.jl:669
 [5] (::Literate.var"#30#32"{Dict{String, Any}, IOBuffer, Module, Literate.CodeChunk, Int64})()
   @ Literate C:\Users\lalonso\.julia\packages\Literate\TujCy\src\Literate.jl:640
 [6] cd(f::Literate.var"#30#32"{Dict{String, Any}, IOBuffer, Module, Literate.CodeChunk, Int64}, dir::String)
   @ Base.Filesystem .\file.jl:101
 [7] markdown(inputfile::String, outputdir::String; config::Dict{Any, Any}, kwargs::@Kwargs{execute::Bool, name::String, flavor::Literate.DocumenterFlavor, preprocess::Base.Fix1{typeof(preprocess), String}, postprocess::Base.Fix1{typeof(postprocess), String}})
   @ Literate C:\Users\lalonso\.julia\packages\Literate\TujCy\src\Literate.jl:639
 [8] top-level scope
   @ c:\Users\lalonso\Documents\Lux.jl\docs\run_single_tutorial.jl:87
in expression starting at c:\Users\lalonso\Documents\Lux.jl\docs\run_single_tutorial.jl:87
ERROR: failed process: Process(`'C:\Users\lalonso\.julia\juliaup\julia-1.11.5+0.x64.w64.mingw32\bin\julia.exe' -C native '-JC:\Users\lalonso\.julia\juliaup\julia-1.11.5+0.x64.w64.mingw32\lib\julia\sys.dll' -g1 --startup=no --code-coverage=user --threads=2 '--project=c:\Users\lalonso\Documents\Lux.jl\docs\..\examples\PolynomialFitting' 'c:\Users\lalonso\Documents\Lux.jl\docs\run_single_tutorial.jl' 2_PolynomialFitting 'c:\Users\lalonso\Documents\Lux.jl\docs\src\tutorials\beginner' 'c:\Users\lalonso\Documents\Lux.jl\docs\..\examples\PolynomialFitting\main.jl' true`, ProcessExited(1)) [1]

Stacktrace:
 [1] pipeline_error
   @ .\process.jl:598 [inlined]
 [2] run(::Cmd; wait::Bool)
   @ Base .\process.jl:513
 [3] run
   @ .\process.jl:510 [inlined]
 [4] (::var"#12#14"{Bool, String, String, String, String, String})()
   @ Main c:\Users\lalonso\Documents\Lux.jl\docs\tutorials.jl:101
 [5] withenv(::var"#12#14"{Bool, String, String, String, String, String}, ::Pair{String, String}, ::Vararg{Pair{…}})
   @ Base .\env.jl:265
 [6] (::var"#11#13")(::Tuple{Int64, Tuple{String, Tuple{String, Bool}}})
   @ Main c:\Users\lalonso\Documents\Lux.jl\docs\tutorials.jl:95
 [7] (::Base.var"#1160#1165"{var"#11#13"})(r::Base.RefValue{Any}, args::Tuple{Tuple{Int64, Tuple{String, Tuple{…}}}})
   @ Base .\asyncmap.jl:94
 [8] (::Base.var"#1176#1177"{Base.var"#1160#1165"{var"#11#13"}, Channel{Any}, Nothing})()
   @ Base .\asyncmap.jl:228
Stacktrace:
 [1] (::Base.var"#1170#1172")(x::Task)
   @ Base .\asyncmap.jl:171
 [2] foreach(f::Base.var"#1170#1172", itr::Vector{Any})
   @ Base .\abstractarray.jl:3187
 [3] maptwice(wrapped_f::Function, chnl::Channel{Any}, worker_tasks::Vector{Any}, c::Vector{Tuple{Int64, Tuple{…}}})
   @ Base .\asyncmap.jl:171
 [4] wrap_n_exec_twice
   @ .\asyncmap.jl:147 [inlined]
 [5] #async_usemap#1155
   @ .\asyncmap.jl:97 [inlined]
 [6] async_usemap
   @ .\asyncmap.jl:78 [inlined]
 [7] #asyncmap#1154
   @ .\asyncmap.jl:75 [inlined]
 [8] top-level scope
   @ c:\Users\lalonso\Documents\Lux.jl\docs\tutorials.jl:87
Some type information was truncated. Use `show(err)` to see complete types.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions