# Iso\_codes tree hash mismatch

**URL:** <https://discourse.julialang.org/t/iso-codes-tree-hash-mismatch/108240>\
**Category:** General Usage\
**Created:** [January 2, 2024, 1:49am UTC](https://discourse.julialang.org/t/iso-codes-tree-hash-mismatch/108240 "2024-01-02T01:49:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [January 2, 2024, 1:49am UTC](https://discourse.julialang.org/t/iso-codes-tree-hash-mismatch/108240/1 "2024-01-02T01:49:30Z")

</div>

> <https://github.com/JuliaPackaging/Yggdrasil/issues/7888>
>
> (Examples) pkg\> add https://github.com/PetrKryslUCSD/VisualStructures.jl.git …                                                                                                                                 
> Updating git-repo \`https://github.com/PetrKryslUCSD/VisualStructures.jl.git\`                                                                                                                                 
> Resolving package versions...                                                                                                                                                                                 
> Downloaded artifact: iso\_codes                                                                                                                                                                                 
> Downloaded artifact: iso\_codes                                                                                                                                                                                 
> ERROR: Unable to automatically download/install artifact 'iso\_codes' from sources listed in 'C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\.julia-1.10.0-depot\\packages\\iso\_codes\_jll\\wcUPz\\Artifacts.toml'.         
> Sources attempted:                                                                                                                                                                                               
> \- https://pkg.julialang.org/artifact/71f68a3d55d73f2e15a3969c241fae2349b1feb5                                                                                                                                    
> Error: Tree Hash Mismatch!                                                                                                                                                                                   
> Expected git-tree-sha1: 71f68a3d55d73f2e15a3969c241fae2349b1feb5                                                                                                                                             
> Calculated git-tree-sha1: 409d6ac4c02dae43ff4fe576b5c5820d0386fb3f                                                                                                                                             
> \- https://github.com/JuliaBinaryWrappers/iso\_codes\_jll.jl/releases/download/iso\_codes-v4.11.0+0/iso\_codes.v4.11.0.any.tar.gz                                                                                     
> Error: Tree Hash Mismatch!                                                                                                                                                                                   
> Expected git-tree-sha1: 71f68a3d55d73f2e15a3969c241fae2349b1feb5                                                                                                                                             
> Calculated git-tree-sha1: 409d6ac4c02dae43ff4fe576b5c5820d0386fb3f                                                                                                                                             
>                                                                                                                                                                                                                  
> 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\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\Artifacts.jl:422                                                                                     
> \[3\] download\_artifacts(env::Pkg.Types.EnvCache; platform::Base.BinaryPlatforms.Platform, julia\_version::VersionNumber, verbose::Bool, io::Base.TTY)                                                            
> @ Pkg.Operations C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\Operations.jl:755                                                                                   
> \[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\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\Operations.jl:1394                                                                                  
> \[5\] add                                                                                                                                                                                                        
> @ C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\Operations.jl:1376 \[inlined\]                                                                                       
> \[6\] add(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{io::Base.TTY})                                
> @ Pkg.API C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\API.jl:278                                                                                                 
> \[7\] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{})                                                                                                                                  
> @ Pkg.API C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\API.jl:159                                                                                                 
> \[8\] add(pkgs::Vector{Pkg.Types.PackageSpec})                                                                                                                                                                   
> @ Pkg.API C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\API.jl:148                                                                                                 
> \[9\] do\_cmd!(command::Pkg.REPLMode.Command, repl::REPL.LineEditREPL)                                                                                                                                            
> @ Pkg.REPLMode C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\REPLMode\\REPLMode.jl:412                                                                              
> \[10\] do\_cmd(repl::REPL.LineEditREPL, input::String; do\_rethrow::Bool)                                                                                                                                           
> @ Pkg.REPLMode C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\REPLMode\\REPLMode.jl:390                                                                              
> \[11\] do\_cmd                                                                                                                                                                                                     
> @ Pkg.REPLMode C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\REPLMode\\REPLMode.jl:380 \[inlined\]                                                                    
> \[12\] (::Pkg.REPLMode.var"#24#27"{REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)                                                                                   
> @ Pkg.REPLMode C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\Pkg\\src\\REPLMode\\REPLMode.jl:557                                                                              
> \[13\] #invokelatest#2                                                                                                                                                                                            
> @ Base .\\essentials.jl:887 \[inlined\]                                                                                                                                                                         
> \[14\] invokelatest                                                                                                                                                                                               
> @ Base .\\essentials.jl:884 \[inlined\]                                                                                                                                                                         
> \[15\] run\_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)                                                                                            
> @ REPL.LineEdit C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\REPL\\src\\LineEdit.jl:2656                                                                                    
> \[16\] run\_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)                                                                                                                                        
> @ REPL C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\REPL\\src\\REPL.jl:1312                                                                                                 
> \[17\] (::REPL.var"#62#68"{REPL.LineEditREPL, REPL.REPLBackendRef})()                                                                                                                                             
> @ REPL C:\\Users\\pkonl\\SublimeJulia\_1\_10\_0\\assets\\julia-1.10.0\\share\\julia\\stdlib\\v1.10\\REPL\\src\\REPL.jl:386                                                                                                  
>                                                                                                                                                                                                                  
> (Examples) pkg\>

Anyone else has the problem? Is there a solution?

---

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [January 2, 2024, 2:03am UTC](https://discourse.julialang.org/t/iso-codes-tree-hash-mismatch/108240/2 "2024-01-02T02:03:27Z")

</div>

Seems to work for me. What happens if you `] add Gtk` without a Julia depot?

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [January 2, 2024, 2:38am UTC](https://discourse.julialang.org/t/iso-codes-tree-hash-mismatch/108240/3 "2024-01-02T02:38:13Z")

</div>

Same thing. Btw: I am using Julia 1.10. Windows 11.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [January 2, 2024, 6:07am UTC](https://discourse.julialang.org/t/iso-codes-tree-hash-mismatch/108240/4 "2024-01-02T06:07:21Z")

</div>

> [@Cannot instantiate env in Julia 1.10: adwaita\_icon\_theme\_jll git tree hash error - anyone else?](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105):
>
> Hello all, long-time lurker, first time caller, etc. etc. When excitedly trying to instantiate an environment w/ shiny new Julia 1.10 today (Windows), I encountered an odd error, which I’ve submitted/summarized here: [Cannot instantiate env in Julia 1.10, "ERROR: Unable to automatically download/install artifact 'adwaita\_icon\_theme'" · Issue #7860 · JuliaPackaging/Yggdrasil · GitHub](https://github.com/JuliaPackaging/Yggdrasil/issues/7860). tl;dr version, an autogenerated / generic JuliaBinary adwaita\_icon\_theme\_jll gives a calculated git tree sha1 ha…

---

<div class="post-metadata">

**Author:** ![PetrKryslUCSD](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/petrkryslucsd/32/215825_2.png) [@PetrKryslUCSD](https://discourse.julialang.org/u/PetrKryslUCSD)\
**Post date:** [January 2, 2024, 4:30pm UTC](https://discourse.julialang.org/t/iso-codes-tree-hash-mismatch/108240/5 "2024-01-02T16:30:37Z")

</div>

Use `JULIA_PKG_IGNORE_HASHES=true` environment setting. It bypasses this error.

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [January 8, 2024, 8:40am UTC](https://discourse.julialang.org/t/iso-codes-tree-hash-mismatch/108240/6 "2024-01-08T08:40:31Z")

</div>

Tracking issue:

> <https://github.com/JuliaLang/Pkg.jl/issues/3643>
>
> I'm encountering an error when trying to install P4est\_jll in Julia v1.10-beta2 …(installed via juliaup) on two different Windows 10 machines - the issue is not encountered on v1.9.3:
> \`\`\`
> (jl\_tdZRQD) pkg\> add P4est\_jll
> Resolving package versions...
> Downloaded artifact: P4est
> Downloaded artifact: P4est
> ERROR: Unable to automatically download/install artifact 'P4est' from sources listed in 'C:\\Users\\Alex\\.julia\\packages\\P4est\_jll\\kfjxs\\Artifacts.toml'.
> Sources attempted:
> \- https://pkg.julialang.org/artifact/89a337ea6f60a4fd58999ab73dea099e41032138
> Error: Tree Hash Mismatch!
> Expected git-tree-sha1: 89a337ea6f60a4fd58999ab73dea099e41032138
> Calculated git-tree-sha1: ed75b82e0dd9b53c4ac4e70376f3e6f330c72767
> \- https://github.com/JuliaBinaryWrappers/P4est\_jll.jl/releases/download/P4est-v2.8.1+2/P4est.v2.8.1.x86\_64-w64-mingw32-mpi+microsoftmpi.tar.gz
> Error: Tree Hash Mismatch!
> Expected git-tree-sha1: 89a337ea6f60a4fd58999ab73dea099e41032138
> Calculated git-tree-sha1: ed75b82e0dd9b53c4ac4e70376f3e6f330c72767
> \`\`\`
> 
> Troubleshooting on Slack with @sloede and @fredrikekre:
> \`\`\`
> julia\> using Tar, CodecZlib, Downloads, SHA
> 
> julia\> artifact = Downloads.download("https://pkg.julialang.org/artifact/89a337ea6f60a4fd58999ab73dea099e41032138")
> "C:\\\\Users\\\\Alex\\\\AppData\\\\Local\\\\Temp\\\\jl\_glqlGnAL6b"
> 
> julia\> shasum = bytes2hex(open(SHA.sha256, artifact))
> "1abe2cd4e2c31d34c840d3042f94d6b34d85762c6be0fbd480eaf52136b566e1"
> 
> julia\> open(GzipDecompressorStream, artifact) do io
> tree\_hash = Tar.tree\_hash(io)
> end
> "89a337ea6f60a4fd58999ab73dea099e41032138"
> 
> julia\> open(GzipDecompressorStream, artifact) do io
> mktempdir() do tmp
> Tar.extract(io, tmp)
> tree\_hash = bytes2hex(Pkg.GitTools.tree\_hash(tmp))
> end
> end
> "ed75b82e0dd9b53c4ac4e70376f3e6f330c72767"
> \`\`\`
> 
> \`\`\`
> julia\> versioninfo()
> Julia Version 1.10.0-beta2
> Commit a468aa198d (2023-08-17 06:27 UTC)
> Build Info:
> Official https://julialang.org/ release
> Platform Info:
> OS: Windows (x86\_64-w64-mingw32)
> CPU: 24 × 12th Gen Intel(R) Core(TM) i9-12900K
> WORD\_SIZE: 64
> LIBM: libopenlibm
> LLVM: libLLVM-15.0.7 (ORCJIT, alderlake)
> Threads: 1 on 24 virtual cores
> \`\`\`
> \<!--
> If you have a question please search or post to our Discourse site: https://discourse.julialang.org.
> We use the GitHub issue tracker for bug reports and feature requests only.
> 
> If you're submitting a bug report, be sure to include as much relevant information as
> possible, including:
> 
> 1. The output of \`versioninfo()\`
> 2. How you installed Julia
> 3. A minimal working example (MWE), also known as a minimum reproducible example
> 
> If you're experiencing a problem with a particular package, open an issue on that
> package's repository instead.
> 
> Thanks for contributing to the Julia project!
> \--\>
