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

Error building OpenDSSDirect: ERROR: LoadError: ArgumentError: Package Downloads does not have NetworkOptions in its dependencies #104

Closed
NLaws opened this issue Oct 29, 2024 · 2 comments

Comments

@NLaws
Copy link

NLaws commented Oct 29, 2024

in my latest release of CommonOPF I get this error in the AutoMerge task of the Julia registry CI
(traceback pasted below).

I found a similar issue here, but no resolution was found.

Any idea @PMeira ?

ERROR: Error building `OpenDSSDirect`: 
ERROR: LoadError: ArgumentError: Package Downloads does not have NetworkOptions in its dependencies:
- You may have a partially installed environment. Try `Pkg.instantiate()`
  to ensure all packages in the environment are installed.
- Or, if you have Downloads checked out for development and have
  added NetworkOptions as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with Downloads
Stacktrace:
 [1] macro expansion
   @ ./loading.jl:2226 [inlined]
 [2] macro expansion
   @ ./lock.jl:273 [inlined]
 [3] __require(into::Module, mod::Symbol)
   @ Base ./loading.jl:2198
 [4] #invoke_in_world#3
   @ ./essentials.jl:1089 [inlined]
 [5] invoke_in_world
   @ ./essentials.jl:1086 [inlined]
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:2191
 [7] include
   @ ./Base.jl:557 [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, UInt128}}, source::String)
   @ Base ./loading.jl:2790
 [9] top-level scope
   @ stdin:5
in expression starting at /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Downloads/src/Downloads.jl:1
in expression starting at stdin:5
ERROR: LoadError: Failed to precompile Downloads [f43a241f-c20a-4ad4-852c-f6b1247861c6] to "/tmp/jl_Sdwyh6/compiled/v1.11/Downloads/jl_Na0z4f".
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool; flags::Cmd, cacheflags::Base.CacheFlags, reasons::Dict{String, Int64}, isext::Bool)
    @ Base ./loading.jl:3085
  [3] (::Base.var"#1082#1083"{Base.PkgId})()
    @ Base ./loading.jl:2492
  [4] mkpidlock(f::Base.var"#1082#1083"{Base.PkgId}, at::String, pid::Int32; kwopts::@Kwargs{stale_age::Int64, wait::Bool})
    @ FileWatching.Pidfile /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:95
  [5] #mkpidlock#6
    @ /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:90 [inlined]
  [6] trymkpidlock(::Function, ::Vararg{Any}; kwargs::@Kwargs{stale_age::Int64})
    @ FileWatching.Pidfile /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/FileWatching/src/pidfile.jl:116
  [7] #invokelatest#2
    @ ./essentials.jl:1057 [inlined]
  [8] invokelatest
    @ ./essentials.jl:1052 [inlined]
  [9] maybe_cachefile_lock(f::Base.var"#1082#1083"{Base.PkgId}, pkg::Base.PkgId, srcpath::String; stale_age::Int64)
    @ Base ./loading.jl:3609
 [10] maybe_cachefile_lock
    @ ./loading.jl:3606 [inlined]
 [11] _require(pkg::Base.PkgId, env::Nothing)
    @ Base ./loading.jl:2488
 [12] __require_prelocked(uuidkey::Base.PkgId, env::Nothing)
    @ Base ./loading.jl:2315
 [13] #invoke_in_world#3
    @ ./essentials.jl:1089 [inlined]
 [14] invoke_in_world
    @ ./essentials.jl:1086 [inlined]
 [15] _require_prelocked
    @ ./loading.jl:2302 [inlined]
 [16] _require_prelocked
    @ ./loading.jl:2301 [inlined]
 [17] macro expansion
    @ ./lock.jl:273 [inlined]
 [18] require(uuidkey::Base.PkgId)
    @ Base ./loading.jl:2298
 [19] Downloads
    @ ./download.jl:3 [inlined]
 [20] do_download(url::String, path::String)
    @ Base ./download.jl:24
 [21] download
    @ ./download.jl:19 [inlined]
 [22] download(::Type{Linux})
    @ Main /tmp/jl_Sdwyh6/packages/OpenDSSDirect/nXy50/deps/build.jl:45
 [23] top-level scope
    @ /tmp/jl_Sdwyh6/packages/OpenDSSDirect/nXy50/deps/build.jl:141
 [24] include(fname::String)
    @ Main ./sysimg.jl:38
 [25] top-level scope
    @ none:5
in expression starting at /tmp/jl_Sdwyh6/packages/OpenDSSDirect/nXy50/deps/build.jl:141
url = "https://github.com/dss-extensions/dss_capi/releases/download/0.14.1/dss_capi_0.14.1_linux_x64.tar.gz"
Stacktrace:
  [1] pkgerror(msg::String)
    @ Pkg.Types /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Types.jl:68
  [2] (::Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String})()
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1177
  [3] withenv(::Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, ::Pair{String, String}, ::Vararg{Pair{String}})
    @ Base ./env.jl:265
  [4] (::Pkg.Operations.var"#118#123"{String, Pkg.Types.EnvCache, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.PackageSpec})()
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1913
  [5] with_temp_env(fn::Pkg.Operations.var"#118#123"{String, Pkg.Types.EnvCache, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.PackageSpec}, temp_env::String)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1[771](https://github.com/JuliaRegistries/General/actions/runs/11566676274/job/32195736504?pr=118265#step:17:772)
  [6] (::Pkg.Operations.var"#116#121"{Dict{String, Any}, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, String})(tmp::String)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1880
  [7] mktempdir(fn::Pkg.Operations.var"#116#121"{Dict{String, Any}, Bool, Bool, Bool, Pkg.Operations.var"#67#74"{Bool, Pkg.Types.Context, String, Pkg.Types.PackageSpec, String}, Pkg.Types.Context, Pkg.Types.PackageSpec, String, String}, parent::String; prefix::String)
    @ Base.Filesystem ./file.jl:819
  [8] mktempdir(fn::Function, parent::String)
    @ Base.Filesystem ./file.jl:815
  [9] mktempdir
    @ ./file.jl:815 [inlined]
 [10] #sandbox#115
    @ /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1827 [inlined]
 [11] build_versions(ctx::Pkg.Types.Context, uuids::Set{Base.UUID}; verbose::Bool)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1158
 [12] build_versions
    @ /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1076 [inlined]
 [13] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, new_git::Set{Base.UUID}; allow_autoprecomp::Bool, preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol)
    @ Pkg.Operations /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1454
 [14] add
    @ /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/Operations.jl:1400 [inlined]
 [15] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, target::Symbol, allow_autoprecomp::Bool, kwargs::@Kwargs{io::IOContext{IO}})
    @ Pkg.API /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/API.jl:306
 [16] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::IOContext{IO}, kwargs::@Kwargs{})
    @ Pkg.API /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/API.jl:159
 [17] add(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/API.jl:148
 [18] add(pkg::Pkg.Types.PackageSpec)
    @ Pkg.API /opt/hostedtoolcache/julia/1.11.1/x64/share/julia/stdlib/v1.11/Pkg/src/API.jl:146
 [19] top-level scope
    @ none:13
┌ Error: Was not able to successfully `import` the package
└ @ RegistryCI.AutoMerge ~/.julia/packages/RegistryCI/yGxwC/src/AutoMerge/guidelines.jl:972
@PMeira
Copy link
Member

PMeira commented Oct 29, 2024

Weird that it doesn't trigger locally, but it's kinda common for something to break with new Julia releases.

This thread has interesting comments: https://discourse.julialang.org/t/using-download-during-dep-build-julia-v1-11/121393/7

It seems that the next Julia release (v1.11.2) might fix it, but we should move to Downloads.jl anyway.

The plan on DSS-Extensions is to release updates matching the engine next week, but I can try updating the deps on ODD.jl now if it doesn't take too long, since we need to do that sooner or later.

@PMeira
Copy link
Member

PMeira commented Oct 30, 2024

@NLaws Please try v0.9.9, just released

@NLaws NLaws closed this as completed Nov 1, 2024
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

2 participants