Pkg.jl: Tree Hash Mismatch from Pkg.Artifacts

Created on 14 Dec 2019  ยท  4Comments  ยท  Source: JuliaLang/Pkg.jl

Not sure where to report this, but with Julia 1.3 and an empty ~/.julia config, I get a Tree Hash Mismatch! when installing a package. This is on manjaro (kernel detalis below):

[stephen@light ~]$ cd
[stephen@light ~]$ rm -fr .julia
[stephen@light ~]$ julia 
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.3.0 (2019-11-26)
 _/ |\__'_|_|_|\__'_|  |  
|__/                   |

โ”Œ Warning: Terminal not fully functional
โ”” @ Base client.jl:373
julia> using Pkg

julia> Pkg.add("Images")
   Cloning default registries into `~/.julia`
   Cloning registry from "https://github.com/JuliaRegistries/General.git"
     Added registry `General` to `~/.julia/registries/General`
 Resolving package versions...
 Installed AxisAlgorithms โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.0.0
 Installed ImageMorphology โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.4
 Installed SortingAlgorithms โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.1
 Installed AbstractFFTs โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.5.0
 Installed Graphics โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.0.0
 Installed JSON โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.21.0
 Installed FileIO โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.2.0
 Installed Images โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.19.1
 Installed Rotations โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.12.0
 Installed WoodburyMatrices โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.4.1
 Installed NaNMath โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.3
 Installed ComputationalResources โ”€โ”€โ”€โ”€ v0.3.0
 Installed AxisArrays โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.3
 Installed DataStructures โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.17.6
 Installed ImageShow โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.0
 Installed Missings โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.4.3
 Installed SimpleTraits โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.9.1
 Installed FFTW โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.1.0
 Installed ImageCore โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.8.6
 Installed ImageTransformations โ”€โ”€โ”€โ”€โ”€โ”€ v0.8.0
 Installed CoordinateTransformations โ”€ v0.5.0
 Installed DataAPI โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.1.0
 Installed Requires โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.0.0
 Installed ImageDistances โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.5
 Installed Parsers โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.10
 Installed StatsBase โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.32.0
 Installed FixedPointNumbers โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.6.1
 Installed Interpolations โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.12.5
 Installed VersionParsing โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.2.0
 Installed RangeArrays โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.1
 Installed Compat โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v2.2.0
 Installed ColorVectorSpace โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.7.1
 Installed Reexport โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.0
 Installed IntervalSets โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.2
 Installed OrderedCollections โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.1.0
 Installed MacroTools โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.5.3
 Installed IterTools โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.3.0
 Installed OffsetArrays โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.11.3
 Installed IdentityRanges โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.0
 Installed TiledIteration โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.3
 Installed Conda โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v1.3.0
 Installed BinaryProvider โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.5.8
 Installed MappedArrays โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.2
 Installed FFTViews โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.0
 Installed ImageMetadata โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.7.2
 Installed Ratios โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.3.1
 Installed Distances โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.8.2
 Installed ImageAxes โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.6.1
 Installed CustomUnitRanges โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.0
 Installed StaticArrays โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.12.1
 Installed PaddedViews โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.4.2
 Installed SpecialFunctions โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.9.0
 Installed ColorTypes โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.8.0
 Installed OpenSpecFun_jll โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.5.3+1
 Installed CatIndices โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.2.0
 Installed IndirectArrays โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.5.0
 Installed Colors โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.9.6
 Installed ImageFiltering โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€ v0.6.7
โ”Œ Error: Tree Hash Mismatch!
โ”‚   Expected git-tree-sha1:   b7df333bca517adecd37cf639f4dc94629336f71
โ”‚   Calculated git-tree-sha1: 73a53af3d489be84e1ba618448f6383cca09d931
โ”” @ Pkg.Artifacts /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Pkg/src/Artifacts.jl:724
ERROR: Unable to automatically install 'OpenSpecFun' from '/home/stephen/.julia/packages/OpenSpecFun_jll/XrUb6/Artifacts.toml'
Stacktrace:
 [1] #ensure_artifact_installed#42(::Pkg.BinaryPlatforms.Linux, ::Bool, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at /build/julia/src/julia-1.3.0/usr/share/julia/stdlib/v1.3/Pkg/src/Artifacts.jl:810
 [2] (::Pkg.Artifacts.var"#kw##ensure_artifact_installed")(::NamedTuple{(:platform, :verbose),Tuple{Pkg.BinaryPlatforms.Linux,Bool}}, ::typeof(Pkg.Artifacts.ensure_artifact_installed), ::String, ::Dict{String,Any}, ::String) at ./none:0
 [3] top-level scope at none:1

julia> exit()
[stephen@light ~]$ uname -a
Linux light 5.4.2-1-MANJARO #1 SMP PREEMPT Thu Dec 5 09:55:57 UTC 2019 x86_64 GNU/Linux

Most helpful comment

indeed, the pretest 1.3.1-pre.20 does not have this error! Thanks.

All 4 comments

Should be fixed in 1.3.1 which should be out in not too long.

indeed, the pretest 1.3.1-pre.20 does not have this error! Thanks.

Thanks for checking!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cossio picture cossio  ยท  3Comments

timholy picture timholy  ยท  4Comments

dpsanders picture dpsanders  ยท  3Comments

GregPlowman picture GregPlowman  ยท  3Comments

KristofferC picture KristofferC  ยท  4Comments