Problems installing Sundials

Hi, I am trying to install the latest version of Sundials on windows but I keep getting this permission denied message. I am running with cmd as an administrator

(@v1.8) pkg> activate --temp
  Activating new project at `C:\Users\GUILHE~1\AppData\Local\Temp\jl_8K67MZ`

(jl_8K67MZ) pkg> add Sundials
    Updating registry at `C:\Users\guilhermebodin\.julia\registries\General.toml`
   Resolving package versions...
 Downloading artifact: Sundials

  Downloaded artifact: Sundials
 Downloading artifact: Sundials

  Downloaded artifact: Sundials
ERROR: Unable to automatically download/install artifact 'Sundials' from sources listed in 'C:\Users\guilhermebodin\.julia\packages\Sundials_jll\rXn1i\Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/4ccc575631c856942ae91cbb8294de9b0a746c9d
    Error: SystemError: opening file "C:\\Users\\guilhermebodin\\.julia\\artifacts\\4ccc575631c856942ae91cbb8294de9b0a746c9d\\bin\\libsundials_sunnonlinsolfixedpoint.dll": Permission denied
- https://github.com/JuliaBinaryWrappers/Sundials_jll.jl/releases/download/Sundials-v5.2.1+0/Sundials.v5.2.1.x86_64-w64-mingw32-libgfortran5.tar.gz
    Error: SystemError: opening file "C:\\Users\\guilhermebodin\\.julia\\artifacts\\4ccc575631c856942ae91cbb8294de9b0a746c9d\\bin\\libsundials_sunnonlinsolfixedpoint.dll": Permission denied

Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] ensure_artifact_installed(name::String, meta::Dict{String, Any}, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool, io::Base.TTY)
    @ Pkg.Artifacts C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Artifacts.jl:468
  [3] download_artifacts(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform, julia_version::VersionNumber, verbose::Bool, io::Base.TTY)
    @ Pkg.Operations C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:665
  [4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1282
  [5] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:275
  [6] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
  [7] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:145
  [8] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:409
  [9] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:387
 [10] do_cmd
    @ C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:377 [inlined]
 [11] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:551
 [12] #invokelatest#2
    @ .\essentials.jl:729 [inlined]
 [13] invokelatest
    @ .\essentials.jl:726 [inlined]
 [14] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\REPL\src\LineEdit.jl:2510
 [15] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\REPL\src\REPL.jl:1248
 [16] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL .\task.jl:484

Does any one know a possible fix for this?

1 Like

Don’t run Julia as administrator. Delete the .julia folder and try again as normal user.

same thing but different .dll with the problem

Installed FiniteDiff ─────────────────────── v2.15.0
   Installed DocStringExtensions ────────────── v0.9.1
 Downloading artifact: Sundials

  Downloaded artifact: Sundials
 Downloading artifact: Sundials

  Downloaded artifact: Sundials
ERROR: Unable to automatically download/install artifact 'Sundials' from sources listed in 'C:\Users\guilhermebodin\.julia\packages\Sundials_jll\rXn1i\Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/4ccc575631c856942ae91cbb8294de9b0a746c9d
    Error: SystemError: opening file "C:\\Users\\guilhermebodin\\.julia\\artifacts\\4ccc575631c856942ae91cbb8294de9b0a746c9d\\bin\\libsundials_sunlinsolspfgmr.dll": Permission denied
- https://github.com/JuliaBinaryWrappers/Sundials_jll.jl/releases/download/Sundials-v5.2.1+0/Sundials.v5.2.1.x86_64-w64-mingw32-libgfortran5.tar.gz
    Error: SystemError: opening file "C:\\Users\\guilhermebodin\\.julia\\artifacts\\4ccc575631c856942ae91cbb8294de9b0a746c9d\\bin\\libsundials_sunlinsolspfgmr.dll": Permission denied

Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] ensure_artifact_installed(name::String, meta::Dict{String, Any}, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool, io::Base.TTY)
    @ Pkg.Artifacts C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Artifacts.jl:468
  [3] download_artifacts(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform, julia_version::VersionNumber, verbose::Bool, io::Base.TTY)
    @ Pkg.Operations C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:665
  [4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1282
  [5] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:275
  [6] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
  [7] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:145
  [8] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:409
  [9] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:387
 [10] do_cmd
    @ C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:377 [inlined]
 [11] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:551
 [12] #invokelatest#2
    @ .\essentials.jl:729 [inlined]
 [13] invokelatest
    @ .\essentials.jl:726 [inlined]
 [14] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\REPL\src\LineEdit.jl:2510
 [15] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\REPL\src\REPL.jl:1248
 [16] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL .\task.jl:484

What is the output of

versioninfo()
julia> versioninfo()
Julia Version 1.8.2
Commit 36034abf26 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 Γ— 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, tigerlake)
  Threads: 1 on 8 virtual cores

When I download the .tar.gz from https://github.com/JuliaBinaryWrappers/Sundials_jll.jl/releases/download/Sundials-v5.2.1+0/Sundials.v5.2.1.x86_64-w64-mingw32-libgfortran5.tar.gz some of the files come with problems in permission.

Please create a bug report: Issues Β· SciML/Sundials.jl Β· GitHub

It is strange because for other people it worked just a few hours ago.

Do you have an overactive anti-virus?

I don’t and unfortunately, it worked on my WSL without any problems. Is it possible that something happened with the Windows binary in JuliaBinaryWrappers. I have already deleted my entire .julia and went to try on version 1.8.2.

It works fine for me on Windows 10:

C:\Users\ufechner>cd repos
C:\Users\ufechner\repos>mkdir sundials
C:\Users\ufechner\repos>cd sundials
C:\Users\ufechner\repos\sundials>julia --project="."

julia> versioninfo()
Julia Version 1.8.2
Commit 36034abf26 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 4 Γ— Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, skylake)
  Threads: 1 on 4 virtual cores

(sundials) pkg> st
Status `C:\Users\ufechner\repos\sundials\Project.toml`
  [c3572dad] Sundials v4.10.1

julia> using Sundials

(sundials) pkg> test Sundials
     Testing Sundials
      Status `C:\Users\ufechner\AppData\Local\Temp\jl_xS5b6i\Project.toml`
  [2169fc97] AlgebraicMultigrid v0.5.1
  [fa961155] CEnum v0.4.2
  [dfb8ca35] DAEProblemLibrary v0.1.0
  [864edb3b] DataStructures v0.18.13
  [2b5f629d] DiffEqBase v6.105.1
  [9fdde737] DiffEqOperators v4.43.1
  [f6369f11] ForwardDiff v0.10.32
  [40713840] IncompleteLU v0.2.0
  [961ee093] ModelingToolkit v8.27.0
  [fdc4e326] ODEProblemLibrary v0.1.4
  [189a3867] Reexport v1.2.2
  [66db9d55] SnoopPrecompile v1.0.1
  [47a9eef4] SparseDiffTools v1.26.2
  [c3572dad] Sundials v4.10.1
  [fb77eaff] Sundials_jll v5.2.1+0
  [8f399da3] Libdl `@stdlib/Libdl`
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [56ddb016] Logging `@stdlib/Logging`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [8dfed614] Test `@stdlib/Test`
      Status `C:\Users\ufechner\AppData\Local\Temp\jl_xS5b6i\Manifest.toml`
  [c3fe647b] AbstractAlgebra v0.27.5
  [1520ce14] AbstractTrees v0.4.2
  [79e6a3ab] Adapt v3.4.0
  [2169fc97] AlgebraicMultigrid v0.5.1
  [dce04be8] ArgCheck v2.3.0
  [ec485272] ArnoldiMethod v0.2.0
  [4fba245c] ArrayInterface v6.0.23
  [30b0a656] ArrayInterfaceCore v0.1.20
  [015c0d05] ArrayInterfaceOffsetArrays v0.1.6
  [b0d46f97] ArrayInterfaceStaticArrays v0.1.4
  [dd5226c6] ArrayInterfaceStaticArraysCore v0.1.0
  [4c555306] ArrayLayouts v0.8.11
  [15f4f7f2] AutoHashEquals v0.2.0
  [aae01518] BandedMatrices v0.17.7
  [198e06fe] BangBang v0.3.37
  [9718e550] Baselet v0.1.1
  [e2ed5e7c] Bijections v0.1.4
  [62783981] BitTwiddlingConvenienceFunctions v0.1.4
  [8e7c35d0] BlockArrays v0.16.20
  [ffab5731] BlockBandedMatrices v0.11.9
  [fa961155] CEnum v0.4.2
  [2a0fbf3d] CPUSummary v0.1.27
  [00ebfdb7] CSTParser v3.3.6
  [49dc2e85] Calculus v0.5.1
  [d360d2e6] ChainRulesCore v1.15.6
  [9e997f8a] ChangesOfVariables v0.1.4
  [fb6a15b2] CloseOpenIntervals v0.1.10
  [861a8166] Combinatorics v1.0.2
  [a80b9123] CommonMark v0.8.6
  [38540f10] CommonSolve v0.2.1
  [bbf7d656] CommonSubexpressions v0.3.0
  [34da2185] Compat v4.3.0
  [b152e2b5] CompositeTypes v0.1.2
  [a33af91c] CompositionsBase v0.1.1
  [187b0558] ConstructionBase v1.4.1
  [adafc99b] CpuId v0.3.1
  [a8cc5b0e] Crayons v4.1.1
  [dfb8ca35] DAEProblemLibrary v0.1.0
  [9a962f9c] DataAPI v1.12.0
  [864edb3b] DataStructures v0.18.13
  [e2d170a0] DataValueInterfaces v1.0.0
  [244e2a9f] DefineSingletons v0.1.2
  [b429d917] DensityInterface v0.4.0
  [2b5f629d] DiffEqBase v6.105.1
  [459566f4] DiffEqCallbacks v2.24.1
  [9fdde737] DiffEqOperators v4.43.1
  [163ba53b] DiffResults v1.1.0
  [b552c78f] DiffRules v1.11.1
  [b4f34e82] Distances v0.10.7
  [31c24e10] Distributions v0.25.75
  [ffbed154] DocStringExtensions v0.9.1
  [5b8099bc] DomainSets v0.5.13
  [fa6b7ba4] DualNumbers v0.6.8
  [7c1d4256] DynamicPolynomials v0.4.5
  [e2ba6199] ExprTools v0.1.8
  [7034ab61] FastBroadcast v0.2.1
  [1a297f60] FillArrays v0.13.4
  [6a86dc24] FiniteDiff v2.15.0
  [59287772] Formatting v0.4.2
  [f6369f11] ForwardDiff v0.10.32
  [069b7b12] FunctionWrappers v1.1.3
  [77dc65aa] FunctionWrappersWrappers v0.1.1
  [46192b85] GPUArraysCore v0.1.2
  [86223c79] Graphs v1.7.4
  [0b43b601] Groebner v0.2.10
  [d5909c97] GroupsCore v0.4.0
  [3e5b6fbb] HostCPUFeatures v0.1.8
  [34004b35] HypergeometricFunctions v0.3.11
  [615f187c] IfElse v0.1.1
  [40713840] IncompleteLU v0.2.0
  [d25df0c9] Inflate v0.1.3
  [22cec73e] InitialValues v0.3.1
  [18e54dd8] IntegerMathUtils v0.1.0
  [8197267c] IntervalSets v0.7.3
  [3587e190] InverseFunctions v0.1.8
  [92d709cd] IrrationalConstants v0.1.1
  [42fd0dbc] IterativeSolvers v0.9.2
  [82899510] IteratorInterfaceExtensions v1.0.0
  [692b3bcd] JLLWrappers v1.4.1
  [682c06a0] JSON v0.21.3
  [98e50ef6] JuliaFormatter v1.0.11
  [ccbc3e58] JumpProcesses v9.2.0
  [b964fa9f] LaTeXStrings v1.3.0
  [2ee39098] LabelledArrays v1.12.0
  [984bce1d] LambertW v0.4.5
  [23fbe1c1] Latexify v0.15.17
  [10f19ff3] LayoutPointers v0.1.10
  [5078a376] LazyArrays v0.22.11
βŒ… [d7e5e226] LazyBandedMatrices v0.7.17
  [d3d80556] LineSearches v7.2.0
  [2ab3a3ac] LogExpFunctions v0.3.18
  [bdcacae8] LoopVectorization v0.12.133
  [1914dd2f] MacroTools v0.5.10
  [d125e4d3] ManualMemory v0.1.8
  [a3b82374] MatrixFactorizations v0.9.2
  [e9d8d322] Metatheory v1.3.5
  [128add7d] MicroCollections v0.1.3
  [e1d29d7a] Missings v1.0.2
  [961ee093] ModelingToolkit v8.27.0
  [46d2c3a1] MuladdMacro v0.2.2
  [102ac46a] MultivariatePolynomials v0.4.6
  [d8a4904e] MutableArithmetics v1.0.5
  [d41bc354] NLSolversBase v7.8.2
  [2774e3e8] NLsolve v4.5.1
  [872c559c] NNlib v0.8.9
  [77ba4419] NaNMath v1.0.1
  [8913a72c] NonlinearSolve v0.3.22
  [fdc4e326] ODEProblemLibrary v0.1.4
  [6fe1bfb0] OffsetArrays v1.12.7
  [bac558e1] OrderedCollections v1.4.1
  [90014a1f] PDMats v0.11.16
  [d96e819e] Parameters v0.12.3
  [69de0a69] Parsers v2.4.1
  [e409e4f3] PoissonRandom v0.4.1
  [f517fe37] Polyester v0.6.16
  [1d0040c9] PolyesterWeave v0.1.10
  [d236fae5] PreallocationTools v0.4.4
  [21216c6a] Preferences v1.3.0
  [27ebfcd6] Primes v0.5.3
  [1fd47b50] QuadGK v2.5.0
  [fb686558] RandomExtensions v0.4.3
  [e6cf234a] RandomNumbers v1.5.3
  [3cdcf5f2] RecipesBase v1.3.0
  [731186ca] RecursiveArrayTools v2.32.0
  [f2c3362d] RecursiveFactorization v0.2.12
  [189a3867] Reexport v1.2.2
  [42d2dcc6] Referenceables v0.1.2
  [ae029012] Requires v1.3.0
  [79098fc4] Rmath v0.7.0
  [7e49a35a] RuntimeGeneratedFunctions v0.5.3
  [3cdde19b] SIMDDualNumbers v0.1.1
  [94e857df] SIMDTypes v0.1.0
  [476501e8] SLEEFPirates v0.6.36
  [0bca4576] SciMLBase v1.59.5
  [efcf1570] Setfield v1.1.1
  [699a6c99] SimpleTraits v0.9.4
  [47aef6b3] SimpleWeightedGraphs v1.2.1
  [66db9d55] SnoopPrecompile v1.0.1
  [a2af1166] SortingAlgorithms v1.0.1
  [47a9eef4] SparseDiffTools v1.26.2
  [276daf66] SpecialFunctions v2.1.7
  [171d559e] SplittablesBase v0.1.15
  [aedffcd0] Static v0.7.7
  [90137ffa] StaticArrays v1.5.9
  [1e83bf80] StaticArraysCore v1.4.0
  [82ae8749] StatsAPI v1.5.0
  [2913bbd2] StatsBase v0.33.21
  [4c63d2b9] StatsFuns v1.0.1
  [7792a7ef] StrideArraysCore v0.3.15
  [c3572dad] Sundials v4.10.1
  [d1185830] SymbolicUtils v0.19.11
  [0c5d862f] Symbolics v4.11.0
  [3783bdb8] TableTraits v1.0.1
  [bd369af6] Tables v1.9.0
βŒ… [8ea1fca8] TermInterface v0.2.3
  [8290d209] ThreadingUtilities v0.5.0
  [ac1d9e8a] ThreadsX v0.1.11
  [a759f4b9] TimerOutputs v0.5.21
  [0796e94c] Tokenize v0.5.24
  [28d57a85] Transducers v0.4.74
  [a2a6695c] TreeViews v0.3.0
  [d5829a12] TriangularSolve v0.1.14
  [410a4b4d] Tricks v0.1.6
  [5c2747f8] URIs v1.4.0
  [3a884ed6] UnPack v1.0.2
  [1986cc42] Unitful v1.12.0
  [3d5dd08c] VectorizationBase v0.21.51
  [19fa3120] VertexSafeGraphs v0.2.0
  [700de1a5] ZygoteRules v0.2.2
  [efe28fd5] OpenSpecFun_jll v0.5.5+0
  [f50d1b31] Rmath_jll v0.3.0+0
  [fb77eaff] Sundials_jll v5.2.1+0
  [0dad84c5] ArgTools v1.1.1 `@stdlib/ArgTools`
  [56f22d72] Artifacts `@stdlib/Artifacts`
  [2a0f44e3] Base64 `@stdlib/Base64`
  [ade2ca70] Dates `@stdlib/Dates`
  [8ba89e20] Distributed `@stdlib/Distributed`
  [f43a241f] Downloads v1.6.0 `@stdlib/Downloads`
  [7b1f6079] FileWatching `@stdlib/FileWatching`
  [9fa8497b] Future `@stdlib/Future`
  [b77e0a4c] InteractiveUtils `@stdlib/InteractiveUtils`
  [b27032c2] LibCURL v0.6.3 `@stdlib/LibCURL`
  [76f85450] LibGit2 `@stdlib/LibGit2`
  [8f399da3] Libdl `@stdlib/Libdl`
  [37e2e46d] LinearAlgebra `@stdlib/LinearAlgebra`
  [56ddb016] Logging `@stdlib/Logging`
  [d6f4376e] Markdown `@stdlib/Markdown`
  [a63ad114] Mmap `@stdlib/Mmap`
  [ca575930] NetworkOptions v1.2.0 `@stdlib/NetworkOptions`
  [44cfe95a] Pkg v1.8.0 `@stdlib/Pkg`
  [de0858da] Printf `@stdlib/Printf`
  [3fa0cd96] REPL `@stdlib/REPL`
  [9a3f8284] Random `@stdlib/Random`
  [ea8e919c] SHA v0.7.0 `@stdlib/SHA`
  [9e88b42a] Serialization `@stdlib/Serialization`
  [1a1011a3] SharedArrays `@stdlib/SharedArrays`
  [6462fe0b] Sockets `@stdlib/Sockets`
  [2f01184e] SparseArrays `@stdlib/SparseArrays`
  [10745b16] Statistics `@stdlib/Statistics`
  [4607b0f0] SuiteSparse `@stdlib/SuiteSparse`
  [fa267f1f] TOML v1.0.0 `@stdlib/TOML`
  [a4e569a6] Tar v1.10.1 `@stdlib/Tar`
  [8dfed614] Test `@stdlib/Test`
  [cf7118a7] UUIDs `@stdlib/UUIDs`
  [4ec0a83e] Unicode `@stdlib/Unicode`
  [e66e0078] CompilerSupportLibraries_jll v0.5.2+0 `@stdlib/CompilerSupportLibraries_jll`
  [deac9b47] LibCURL_jll v7.84.0+0 `@stdlib/LibCURL_jll`
  [29816b5a] LibSSH2_jll v1.10.2+0 `@stdlib/LibSSH2_jll`
  [c8ffd9c3] MbedTLS_jll v2.28.0+0 `@stdlib/MbedTLS_jll`
  [14a3606d] MozillaCACerts_jll v2022.2.1 `@stdlib/MozillaCACerts_jll`
  [4536629a] OpenBLAS_jll v0.3.20+0 `@stdlib/OpenBLAS_jll`
  [05823500] OpenLibm_jll v0.8.1+0 `@stdlib/OpenLibm_jll`
  [bea87d4a] SuiteSparse_jll v5.10.1+0 `@stdlib/SuiteSparse_jll`
  [83775a58] Zlib_jll v1.2.12+3 `@stdlib/Zlib_jll`
  [8e850b90] libblastrampoline_jll v5.1.1+0 `@stdlib/libblastrampoline_jll`
  [8e850ede] nghttp2_jll v1.48.0+0 `@stdlib/nghttp2_jll`
  [3f19e933] p7zip_jll v17.4.0+0 `@stdlib/p7zip_jll`
        Info Packages marked with βŒ… have new versions available but compatibility constraints restrict them from upgrading.
Precompiling project...
  78 dependencies successfully precompiled in 117 seconds. 101 already precompiled.
     Testing Running tests...
Test Summary: | Pass  Total  Time
Generator     |    1      1  0.1s
T=0.4, Y=[0.9899652943580931, 3.470564190694232e-5, 0.01]
roots=Int32[0, 1]
T=0.4, Y=[0.9851640906775234, 3.386241699420961e-5, 0.014802046905482487]
T=4.0, Y=[0.9055096703089592, 2.2403378840226996e-5, 0.09446792631220075]
T=40.0, Y=[0.7158015839780066, 9.185043004752233e-6, 0.28418923097898896]
T=400.0, Y=[0.4505209202224896, 3.2228291554071063e-6, 0.5494758569483557]
T=4000.0, Y=[0.183193888477909, 8.94134098027598e-7, 0.816805217387994]
T=40000.0, Y=[0.0389840987857183, 1.6217954315258557e-7, 0.9610157390347401]
T=400000.0, Y=[0.004938043633446272, 1.9849121848363034e-8, 0.9950619365174334]
T=4.0e6, Y=[0.0005165805639698518, 2.0673761740614254e-9, 0.9994834173686482]
T=4.0e7, Y=[9.99999999999993e-5, 4.0003952897969254e-10, 0.9998999995999591]
roots=Int32[-1, 0]
T=4.0e7, Y=[5.2023150685401026e-5, 2.0810328684935038e-10, 0.9999479766412099]
T=4.0e8, Y=[5.215120736922171e-6, 2.086059043627538e-11, 0.9999947848584008]
T=4.0e9, Y=[5.250436659567347e-7, 2.100175756525091e-12, 0.9999994749542324]
T=4.0e10, Y=[5.342927779374213e-8, 2.137171224662924e-13, 0.9999999465705064]
Test Summary: |Time
CVODE         | None  1.2s
T=0.4, Y=[0.9899652943718806, 3.4705628119662186e-5, 0.010000000000000002]
roots=Int32[0, 1]
T=0.4, Y=[0.9851707623122912, 3.386371656828505e-5, 0.01479537397114059]
T=4.0, Y=[0.905504728443, 2.24030741323827e-5, 0.09447286848286832]
T=40.0, Y=[0.7158418984108803, 9.18611950214165e-6, 0.28414891546961757]
T=400.0, Y=[0.45053789128414773, 3.2231511100131788e-6, 0.5494588855647428]
T=4000.0, Y=[0.18319969949401854, 8.942143972152571e-7, 0.8167994062915845]
T=40000.0, Y=[0.03898368270418011, 1.6217829385405389e-7, 0.961016155117526]
T=400000.0, Y=[0.004938675705664536, 1.9851554310243408e-8, 0.9950613044427804]
T=4.0e6, Y=[0.0005168882453198716, 2.0686115064850063e-9, 0.9994831096860654]
T=4.0e7, Y=[9.999999999999961e-5, 4.000395220229231e-10, 0.9998999995999603]
roots=Int32[-1, 0]
T=4.0e7, Y=[5.204772673773428e-5, 2.082016191813889e-10, 0.9999479520650584]
T=4.0e8, Y=[5.205357160257339e-6, 2.0821535763759906e-11, 0.9999947946220188]
T=4.0e9, Y=[5.190800207426813e-7, 2.0763211473603463e-12, 0.9999994809179029]
T=4.0e10, Y=[5.1177736621238506e-8, 2.0471095704096025e-13, 0.9999999488220589]
Test Summary: |Time
IDA           | None  1.0s
T=0.4, Y=[0.9851721138376993, 3.3864061211322814e-5, 0.01479402210108921]
T=4.0, Y=[0.90551867853288, 2.2404781798982537e-5, 0.0944589166853207]
T=40.0, Y=[0.7158270687397056, 9.185512475657594e-6, 0.28416374574781805]
T=400.0, Y=[0.4505186684328427, 3.2229071592675124e-6, 0.5494781086599955]
T=4000.0, Y=[0.18320225670170093, 8.942299891321251e-7, 0.8167968490683079]
T=40000.0, Y=[0.03898337847052262, 1.6217207392318746e-7, 0.9610164593574013]
T=400000.0, Y=[0.004938277950600233, 1.985013141727789e-8, 0.9950617021992663]
T=4.0e6, Y=[0.0005168107111655331, 2.0683301065357584e-9, 0.9994831872205023]
T=4.0e7, Y=[5.203108738043146e-5, 2.0813782462591276e-10, 0.9999479687044793]
T=4.0e8, Y=[5.207669801014555e-6, 2.0854965250257495e-11, 0.9999947923093417]
T=4.0e9, Y=[5.208190870286087e-7, 2.079011094811595e-12, 0.9999994791788317]
T=4.0e10, Y=[5.208306348684975e-8, 1.9889722767099652e-13, 0.9999999479167351]
Test Summary: | Pass  Total  Time
ARK           |   23     23  0.7s
Solution: [0.7861540663366059, 0.6180344478352109]
Residual: [4.794728554635697e-6, -3.7681823696900096e-6]

[KINSOL ERROR]  KINSol
  The linear solver's setup function failed in an unrecoverable manner.

β”Œ Error: KINSol failed with error code =
β”‚   flag = -11
β”” @ Sundials C:\Users\ufechner\.julia\packages\Sundials\3c9Un\src\simple.jl:18

[KINSOL ERROR]  KINSol
  The linear solver's setup function failed in an unrecoverable manner.

β”Œ Error: KINSol failed with error code =
β”‚   flag = -11
β”” @ Sundials C:\Users\ufechner\.julia\packages\Sundials\3c9Un\src\simple.jl:18
Test Summary: | Pass  Total  Time
Kinsol        |    6      6  2.2s
Test Summary: | Pass  Total  Time
Handle Tests  |   13     13  0.2s
[ Info: Multiple abstol
[ Info: Band solver
[ Info: GMRES solver
[ Info: TFQMR solver

[IDAS ERROR]  IDASolve
  At t = 1388.25 and h = 0.000161652, the corrector convergence failed repeatedly or with |h| = hmin.

[ Info: FGMRES solver
[ Info: PCG solver
[ Info: GMRES for identity preconditioner
[ Info: GMRES with pset
[ Info: IDA with saveat
[ Info: IDA with saveat everystep
[ Info: IDA with tstops
With consistent initial conditions:
With inconsistent initial conditions:
Jacobian vs no Jacobian difference:
7.904787935331115e-14
[ Info: 0.044464449958102746
[ Info: 0.1199702927305579
[ Info: 0.19547613550301304
[ Info: 0.2709819782754682
[ Info: 0.34648782104792336
[ Info: 0.4219936638203785
[ Info: 0.5889202251875935
[ Info: 0.7558467865548084
[ Info: 0.9227733479220234
[ Info: 1.0
Test error handling

[CVODES WARNING]  CVode
  Internal t = 0 and h = 0 are such that t + h = t on the next step. The solver will continue anyway.


[CVODES ERROR]  CVode
  At t = 0 and h = 0, the corrector convergence test failed repeatedly or with |h| = hmin.


[IDAS ERROR]  IDACalcIC
  Newton/Linesearch algorithm failed to converge.

β”Œ Warning: Assignment to `sol` in soft scope is ambiguous because a global variable by the same name exists: `sol` will be treated as a new local. Disambiguate by using `local sol` to suppress this warning or `global sol` to assign to the existing global variable.
β”” @ C:\Users\ufechner\.julia\packages\Sundials\3c9Un\test\common_interface\errors.jl:27
WARNING: using ModelingToolkit.constraints in module Main conflicts with an existing identifier.
Test Summary:    | Pass  Total     Time
Common Interface |   64     64  8m07.0s
     Testing Sundials tests passed

(sundials) pkg>

@ChrisRackauckas What is strange though, and does not happen on Linux is this message:

[KINSOL ERROR]  KINSol
  The linear solver's setup function failed in an unrecoverable manner.

β”Œ Error: KINSol failed with error code =
β”‚   flag = -11
β”” @ Sundials C:\Users\ufechner\.julia\packages\Sundials\3c9Un\src\simple.jl:18

[KINSOL ERROR]  KINSol
  The linear solver's setup function failed in an unrecoverable manner.

β”Œ Error: KINSol failed with error code =
β”‚   flag = -11
β”” @ Sundials C:\Users\ufechner\.julia\packages\Sundials\3c9Un\src\simple.jl:18
Test Summary: | Pass  Total  Time
Kinsol        |    6      6  2.2s
Test Summary: | Pass  Total  Time
Handle Tests  |   13     13  0.2s
[ Info: Multiple abstol
[ Info: Band solver
[ Info: GMRES solver
[ Info: TFQMR solver

[IDAS ERROR]  IDASolve
  At t = 1388.25 and h = 0.000161652, the corrector convergence failed repeatedly or with |h| = hmin.

How can all tests pass if these errors are present?

@guilhermebodin Perhaps your command:

activate --temp

is causing the permission problems? Can you try in the way I did?

It tests that the right error codes are thrown in some circumstances.

@ufechner7 same thing

PS C:\Users\guilhermebodin> mkdir repos


    Directory: C:\Users\guilhermebodin


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----        10/10/2022  11:41 AM                repos


PS C:\Users\guilhermebodin> cd repos
PS C:\Users\guilhermebodin\repos> julia --project="."
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.8.2 (2022-09-29)
|__/                   |

julia> versioninfo()
Julia Version 1.8.2
Commit 36034abf26 (2022-09-29 15:21 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: 8 Γ— 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, tigerlake)
  Threads: 1 on 8 virtual cores

(repos) pkg> add Sundials
   Resolving package versions...
 Downloading artifact: Sundials

  Downloaded artifact: Sundials
 Downloading artifact: Sundials

  Downloaded artifact: Sundials
ERROR: Unable to automatically download/install artifact 'Sundials' from sources listed in 'C:\Users\guilhermebodin\.julia\packages\Sundials_jll\rXn1i\Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/4ccc575631c856942ae91cbb8294de9b0a746c9d
    Error: SystemError: opening file "C:\\Users\\guilhermebodin\\.julia\\artifacts\\4ccc575631c856942ae91cbb8294de9b0a746c9d\\bin\\libsundials_sunlinsolspfgmr.dll": Permission denied
- https://github.com/JuliaBinaryWrappers/Sundials_jll.jl/releases/download/Sundials-v5.2.1+0/Sundials.v5.2.1.x86_64-w64-mingw32-libgfortran5.tar.gz
    Error: SystemError: opening file "C:\\Users\\guilhermebodin\\.julia\\artifacts\\4ccc575631c856942ae91cbb8294de9b0a746c9d\\bin\\libsundials_sunlinsolspfgmr.dll": Permission denied

Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:35
  [2] ensure_artifact_installed(name::String, meta::Dict{String, Any}, artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, verbose::Bool, quiet_download::Bool, io::Base.TTY)
    @ Pkg.Artifacts C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Artifacts.jl:468
  [3] download_artifacts(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform, julia_version::VersionNumber, verbose::Bool, io::Base.TTY)
    @ Pkg.Operations C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:665
  [4] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform)
    @ Pkg.Operations C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\Operations.jl:1282
  [5] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:275
  [6] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:156
  [7] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\API.jl:145
  [8] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:409
  [9] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:387
 [10] do_cmd
    @ C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:377 [inlined]
 [11] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ Pkg.REPLMode C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\Pkg\src\REPLMode\REPLMode.jl:551
 [12] #invokelatest#2
    @ .\essentials.jl:729 [inlined]
 [13] invokelatest
    @ .\essentials.jl:726 [inlined]
 [14] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\REPL\src\LineEdit.jl:2510
 [15] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL C:\Users\guilhermebodin\.julia\juliaup\julia-1.8.2+0.x64\share\julia\stdlib\v1.8\REPL\src\REPL.jl:1248
 [16] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL .\task.jl:484

I mean, are you able to download the resources manually in the browser:

https://pkg.julialang.org/artifact/4ccc575631c856942ae91cbb8294de9b0a746c9d
https://github.com/JuliaBinaryWrappers/Sundials_jll.jl/releases/download/Sundials-v5.2.1+0/Sundials.v5.2.1.x86_64-w64-mingw32-libgfortran5.tar.gz

What happens if you copy and paste these links in your browser?

Because from the message it is not clear to me if you are not able to download the files, or if the package manager is not able to store them on your hard drive…

I have downloaded them manually and tried to put them into my artifatcs folder under the correct hash but my Windows also errors Permission Denied when I try to copy them manually. I think that there must be some kind of problem with my computer but I have not found out exactly what it is causing those permission issues

Can you try to fix the permissions of the folder into which you want to copy the files? See for example: https://www.cyberciti.biz/tips/windows-change-access-permissions-from-the-command-line.html

Just a follow on: I have not identified the source of the problem but in a different Windows computer it worked fine, it was probably an anti-virus problem. Either case it worked fine on my WSL and I continued my development there.

1 Like