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

Trying to upgrade project v1.6 with 1.6.0-rc2 on W10, error installing artifact #40015

Closed
jdadavid opened this issue Mar 14, 2021 · 5 comments
Closed

Comments

@jdadavid
Copy link

Just installed rc2 (I used rc1 prior), then doing ]up, getting artifact install error

(@v1.6) pkg> up
    Updating registry at `C:\Users\davidj\.julia\registries\General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
┌ Warning: failed to extract archive downloaded from https://pkg.julialang.org/package/f50d1b31-88e8-58de-be2c-1cc445318
75f/1b7bf41258f6c5c9c31df8c1ba34c1fc88674957
└ @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:590
┌ Warning: failed to extract archive downloaded from https://api.github.com/repos/JuliaBinaryWrappers/Rmath_jll.jl/tarba
ll/1b7bf41258f6c5c9c31df8c1ba34c1fc88674957
└ @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:590
     Cloning [f50d1b31-88e8-58de-be2c-1cc44531875f] Rmath_jll from https://github.com/JuliaBinaryWrappers/Rmath_jll.jl.g
it
   Installed Rmath_jll ─ v0.2.2+2
  Downloaded artifact: Rmath
  Downloaded artifact: Rmath
ERROR: Unable to automatically install 'Rmath' from 'C:\Users\davidj\.julia\packages\Rmath_jll\lgYeQ\Artifacts.toml'
Stacktrace:
  [1] error(s::String)
    @ Base .\error.jl:33
  [2] ensure_artifact_installed(name::String, meta::Dict{String, Any}, artifacts_toml::String; platform::Base.BinaryPlat
forms.Platform, verbose::Bool, quiet_download::Bool)
    @ Pkg.Artifacts C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Artifacts.jl:436
  [3] ensure_all_artifacts_installed(artifacts_toml::String; platform::Base.BinaryPlatforms.Platform, pkg_uuid::Nothing,
 include_lazy::Bool, verbose::Bool, quiet_download::Bool)
    @ Pkg.Artifacts C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Artifacts.jl:501
  [4] download_artifacts(ctx::Pkg.Types.Context, pkg_roots::Vector{String}; platform::Base.BinaryPlatforms.Platform, ver
bose::Bool)
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:702
  [5] download_artifacts(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; platform::Base.BinaryPlatforms.Pla
tform, julia_version::VersionNumber, verbose::Bool)
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:680
  [6] download_artifacts
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:675 [inlined]
  [7] up(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}, level::Pkg.Types.UpgradeLevel)
    @ Pkg.Operations C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\Operations.jl:1319
  [8] up(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; level::Pkg.Types.UpgradeLevel, mode::Pkg.Types.Pac
  [9] up
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:230 [inlined]
 [10] up(pkgs::Vector{Pkg.Types.PackageSpec}; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tup
le{}}})
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:73
 [11] up(pkgs::Vector{Pkg.Types.PackageSpec})
    @ Pkg.API C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\API.jl:72
 [12] do_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)
    @ Pkg.REPLMode C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\REPLMode\REPLMode.jl:408
 [13] do_cmd(repl::REPL.LineEditREPL, input::String; do_rethrow::Bool)
    @ Pkg.REPLMode C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\REPLMode\REPLMode.jl:386
 [14] do_cmd
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\REPLMode\REPLMode.jl:377 [inlined]
 [15] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok:
:Bool)
    @ Pkg.REPLMode C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\REPLMode\REPLMode.jl:550
 [16] #invokelatest#2
    @ .\essentials.jl:708 [inlined]
 [17] invokelatest
    @ .\essentials.jl:706 [inlined]
 [18] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\LineEdit.jl:2441
 [19] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\REPL\src\REPL.jl:1126
 [20] (::REPL.var"#44#49"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL .\task.jl:406

julia> versioninfo()
Julia Version 1.6.0-rc2
Commit 4b6b9fe4d7 (2021-03-11 07:05 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, znver1)
Environment:
  JULIA_EDITOR = "C:\Program Files\Notepad++\notepad++.exe"

julia>

Trying again with ]instantiate, same error.
Reverting to rc1, up works.

@KristofferC
Copy link
Member

Dup of #40000. Did you install Julia as administrator?

@jdadavid
Copy link
Author

No, as ordinary user

@KristofferC
Copy link
Member

Can you try execute:

using Pkg
Pkg.add(url="https://github.com/giordano/DebugArtifacts.jl")
using DebugArtifacts
debug_artifact("Rmath")

@KristofferC
Copy link
Member

KristofferC commented Mar 14, 2021

I did it myself, looks like a problem with julia symlink handling on windows

[ Info: Unpacking C:\Users\KRISTO~1\AppData\Local\Temp\jl_xI3BvI1yDw-download.gz into C:\Users\KRISTO~1\AppData\Local\Temp\jl_5uTkkm\unpacked...
ERROR: MethodError: no method matching !(::Int64)
Closest candidates are:
  !(::Bool) at bool.jl:33
  !(::Function) at operators.jl:969
  !(::Missing) at missing.jl:101
Stacktrace:
  [1] symlink(target::String, link::String; dir_target::Bool)
    @ Base.Filesystem .\file.jl:1042
  [2] symlink
    @ .\file.jl:1010 [inlined]
  [3] can_symlink(dir::String)
    @ Tar C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:25
  [4] #75
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:198 [inlined]
  [5] arg_mkdir(f::Tar.var"#75#78"{Base.Process, Base.DevNull, Tar.var"#1#2"}, arg::String)
    @ ArgTools C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\ArgTools\src\ArgTools.jl:163
  [6] #74
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:196 [inlined]
  [7] arg_read(f::Tar.var"#74#77"{Base.DevNull, Tar.var"#1#2", String}, arg::Base.Process)
    @ ArgTools C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\ArgTools\src\ArgTools.jl:61
  [8] extract(predicate::Function, tarball::Base.Process, dir::String; skeleton::Nothing, copy_symlinks::Nothing)
    @ Tar C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:195

@jdadavid
Copy link
Author

I confirm symlink problem - note I am using Julia under cygwin, but result is similar under Windows/Powershell (only change is name of tempdir)

julia> debug_artifact("Rmath")
[ Info: Platform: Windows x86_64 {cxxstring_abi=cxx11, julia_version=1.6.0, libgfortran_version=5.0.0}
Julia Version 1.6.0-rc2
Commit 4b6b9fe4d7 (2021-03-11 07:05 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: AMD Ryzen 5 3500U with Radeon Vega Mobile Gfx
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.1 (ORCJIT, znver1)
Environment:
  JULIA_EDITOR = "C:\Program Files\Notepad++\notepad++.exe"

[ Info: Downloading Artifacts.toml to C:\cygwin64\tmp\jl_dz5krX\Artifacts.toml...
[ Info: Extracting artifact info for platform x86_64-w64-mingw32-libgfortran5-cxx11-julia_version+1.6.0...
[ Info: Found meta object with git-tree-sha1 72e73d324066b2760195d47f2b659d818cd65c42, attempting download...
[ Info: No hash cache found
[ Info: Calculated hash 6662a51b784988cdb83a5f0fede944ad1530ae84ecb816baeaa27e808fdf4cac for file C:\cygwin64\tmp\jl_rUZ
MqXSChL-download.gz
[ Info: Unpacking C:\cygwin64\tmp\jl_rUZMqXSChL-download.gz into C:\cygwin64\tmp\jl_dz5krX\unpacked...
ERROR: IOError: unlink("C:\\cygwin64\\tmp\\jl_rUZMqXSChL-download.gz"): resource busy or locked (EBUSY)
Stacktrace:
  [1] uv_error
    @ .\libuv.jl:97 [inlined]
  [2] unlink(p::String)
    @ Base.Filesystem .\file.jl:934
  [3] rm(path::String; force::Bool, recursive::Bool)
    @ Base.Filesystem .\file.jl:272
  [4] rm
    @ .\file.jl:263 [inlined]
  [5] download_verify_unpack(url::String, hash::String, dest::String; tarball_path::Nothing, ignore_existence::Bool, for
ce::Bool, verbose::Bool, quiet_download::Bool)
    @ Pkg.PlatformEngines C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\PlatformEngines.jl:
514
  [6] (::DebugArtifacts.var"#3#4"{String, Base.BinaryPlatforms.Platform, String})(tmp_dir::String)
    @ DebugArtifacts ~\.julia\packages\DebugArtifacts\VcVh2\src\DebugArtifacts.jl:65
  [7] mktempdir(fn::DebugArtifacts.var"#3#4"{String, Base.BinaryPlatforms.Platform, String}, parent::String; prefix::Str
ing)
    @ Base.Filesystem .\file.jl:729
  [8] mktempdir
    @ .\file.jl:727 [inlined]
  [9] debug_artifact(artifact_name::String, platform::Base.BinaryPlatforms.Platform)
    @ DebugArtifacts ~\.julia\packages\DebugArtifacts\VcVh2\src\DebugArtifacts.jl:53
 [10] debug_artifact(artifact_name::String)
    @ DebugArtifacts ~\.julia\packages\DebugArtifacts\VcVh2\src\DebugArtifacts.jl:43
 [11] top-level scope
    @ REPL[4]:1

caused by: MethodError: no method matching !(::Int64)
Closest candidates are:
  !(::Bool) at bool.jl:33
  !(::Function) at operators.jl:969
  !(::Missing) at missing.jl:101
Stacktrace:
  [1] symlink(target::String, link::String; dir_target::Bool)
    @ Base.Filesystem .\file.jl:1042
  [2] symlink
    @ .\file.jl:1010 [inlined]
  [3] can_symlink(dir::String)
    @ Tar C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:25
  [4] #75
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:198 [inlined]
  [5] arg_mkdir(f::Tar.var"#75#78"{Base.Process, Base.DevNull, Tar.var"#1#2"}, arg::String)
    @ ArgTools C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\ArgTools\src\ArgTools.jl:163
  [6] #74
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:196 [inlined]
  [7] arg_read(f::Tar.var"#74#77"{Base.DevNull, Tar.var"#1#2", String}, arg::Base.Process)
    @ ArgTools C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\ArgTools\src\ArgTools.jl:61
  [8] extract(predicate::Function, tarball::Base.Process, dir::String; skeleton::Nothing, copy_symlinks::Nothing)
    @ Tar C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:195
  [9] #extract#80
    @ C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Tar\src\Tar.jl:217 [inlined]
 [10] (::Pkg.PlatformEngines.var"#24#26"{String})(io::Base.Process)
    @ Pkg.PlatformEngines C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\PlatformEngines.jl:
510
 [11] open(::Pkg.PlatformEngines.var"#24#26"{String}, ::Cmd; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, Nam
edTuple{(), Tuple{}}})
    @ Base .\process.jl:393
 [12] open
    @ .\process.jl:391 [inlined]
 [13] download_verify_unpack(url::String, hash::String, dest::String; tarball_path::Nothing, ignore_existence::Bool, for
ce::Bool, verbose::Bool, quiet_download::Bool)
    @ Pkg.PlatformEngines C:\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.6\Pkg\src\PlatformEngines.jl:
509
 [14] (::DebugArtifacts.var"#3#4"{String, Base.BinaryPlatforms.Platform, String})(tmp_dir::String)
    @ DebugArtifacts ~\.julia\packages\DebugArtifacts\VcVh2\src\DebugArtifacts.jl:65
 [15] mktempdir(fn::DebugArtifacts.var"#3#4"{String, Base.BinaryPlatforms.Platform, String}, parent::String; prefix::Str
ing)
    @ Base.Filesystem .\file.jl:729
 [16] mktempdir
    @ .\file.jl:727 [inlined]
 [17] debug_artifact(artifact_name::String, platform::Base.BinaryPlatforms.Platform)
    @ DebugArtifacts ~\.julia\packages\DebugArtifacts\VcVh2\src\DebugArtifacts.jl:53
 [18] debug_artifact(artifact_name::String)
    @ DebugArtifacts ~\.julia\packages\DebugArtifacts\VcVh2\src\DebugArtifacts.jl:43
 [19] top-level scope
    @ REPL[4]:1

julia>

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