# Cannot instantiate env in Julia 1.10: adwaita\_icon\_theme\_jll git tree hash error - anyone else?

**URL:** <https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105>\
**Category:** General Usage\
**Tags:** package\
**Created:** [December 27, 2023, 4:58pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105 "2023-12-27T16:58:42Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![harvestdeparture729](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@harvestdeparture729](https://discourse.julialang.org/u/harvestdeparture729)\
**Post date:** [December 27, 2023, 4:58pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/1 "2023-12-27T16:58:42Z")

</div>

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 hash that doesn’t match any of the hashes for its releases including the target release ([Releases · JuliaBinaryWrappers/adwaita\_icon\_theme\_jll.jl · GitHub](https://github.com/JuliaBinaryWrappers/adwaita_icon_theme_jll.jl/releases)), so it throws an error.

Has anyone else ran into this? It seems like a substantive issue given that this is all auto-generated, and I’ve never run into a similar issue previously. Doubting a MITM attack, it seems the downloaded/extracted tree is getting altered unintentionally somewhere i.e. would apply to others.

Here’s the top of the REPL error/output (the full stack trace is in the linked issue):

```julia
  Downloaded artifact: adwaita_icon_theme
  Downloaded artifact: adwaita_icon_theme
ERROR: Unable to automatically download/install artifact 'adwaita_icon_theme' from sources listed in 'C:\1\.julia\packages\adwaita_icon_theme_jll\YjPmX\Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/65eca7c48dea1e32203b205613441ce9506045b4
    Error: Tree Hash Mismatch!
  Expected git-tree-sha1: 65eca7c48dea1e32203b205613441ce9506045b4
  Calculated git-tree-sha1: 043d0732f572e66059278f5964e3752f018a5cdf

```

---

<div class="post-metadata">

**Author:** ![harvestdeparture729](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@harvestdeparture729](https://discourse.julialang.org/u/harvestdeparture729)\
**Post date:** [December 27, 2023, 5:25pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/2 "2023-12-27T17:25:54Z")

</div>

Apologies for double-posting, but I’m not allowed to have more than 2 links in a post as a new user. Here’s an update:

Update: upon trying again about an hour after the initial attempt, the instantiation progressed through a couple dozen additional artifact files. I don’t have anything in the artifacts directory matching the above expected hash “65eca7c48dea1e32203b205613441ce9506045b4”, but nonetheless the process skipped it / changed the order of things, seemingly.

Now, iso\_codes\_jll is giving me the same type of error. A quick reply on my issue above suggested this is a Pkg issue, which indeed seems more obviously relevant than Yggdrasil itself given that it is a tree hash.

Given that it is now happening with a 2nd \_jll, it seems it may be fairly common/widespread. This issue was linked to me on github: “[Artifact hash mismatch with P4est\_jll on Julia v1.10 · Issue #3643 · JuliaLang/Pkg.jl · GitHub](https://github.com/JuliaLang/Pkg.jl/issues/3643)” (and my above issue was linked to this one), so it is the more relevant one for any discussion.

Here’s the iso\_codes\_jll tree hash error:

```julia
(JL1XVENV) pkg> up
    Updating registry at `C:\1\.julia\registries\General.toml`
  Downloaded artifact: iso_codes
  Downloaded artifact: iso_codes
ERROR: Unable to automatically download/install artifact 'iso_codes' from sources listed in 'C:\1\.julia\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

```

I’ve never had this happen with any previous version of Julia, so I presume it is likely related to the 1.10 release. At least in my case it seems to be pretty significant speedbump in what is normally a friendly, automated process that takes minutes.

---

<div class="post-metadata">

**Author:** ![harvestdeparture729](https://avatars.discourse-cdn.com/v4/letter/h/f14d63/32.png) [@harvestdeparture729](https://discourse.julialang.org/u/harvestdeparture729)\
**Post date:** [December 29, 2023, 5:18pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/3 "2023-12-29T17:18:28Z")

</div>

I was going to edit the title to reflect that this is a V1.10 Pkg issue (from what I can tell), but it appears I can’t edit it now.

In any case, as a generic Windows user trying to use Julia 1.10 with a large environment, I would hope there is some way to bypass this issue? It seems like somewhat of a “show-stopper” type of issue for a new version (unless I am somehow very unique), so certainly I wouldn’t want this to be experienced by newer users (I ❤ Julia and want it to gain popularity!).

I have simply reverted to 1.9.4 as I am low on time, not a big deal at all, but if anyone is working on fixing this / has a fix available, you sharing that would be appreciated!

---

<div class="post-metadata">

**Author:** ![mihalybaci](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mihalybaci/32/13528_2.png) [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Post date:** [December 29, 2023, 5:32pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/4 "2023-12-29T17:32:49Z")

</div>

Do you know to which packages/dependencies these artifacts belong? Maybe it’s possible to trim your environment to eliminate the error in the short term?

Edit: Typing `?` at the `pkg>` prompt told me that in Pkg mode, `why PackageA` will give the dependency relations for PackageA. So you could start there.

---

<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:** [December 29, 2023, 7:01pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/5 "2023-12-29T19:01:31Z")

</div>

As a _temporary_ workaround until the issue is properly resolved you can try setting the environment variable [`JULIA_PKG_IGNORE_HASHES`](https://docs.julialang.org/en/v1/manual/environment-variables/#JULIA_PKG_IGNORE_HASHES) to `true` (no idea how to do that on Windows).

---

<div class="post-metadata">

**Author:** ![mihalybaci](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mihalybaci/32/13528_2.png) [@mihalybaci](https://discourse.julialang.org/u/mihalybaci)\
**Post date:** [December 29, 2023, 7:06pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/6 "2023-12-29T19:06:52Z")

</div>

For Windows it would be something like

- go to search bar and type “environment”, then open “edit variables for user account”
- Click “New…” to add a new variable with Variable name = `JULIA_PKG_IGNORE_HASHES` and Variable value = `true`
- Hit `Okay` to apply settings and restart the machine or log off and back in for it to take effect.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 4, 2024, 5:20pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/7 "2024-01-04T17:20:02Z")

</div>

Given this is a regression in 1.10, maybe a safer workaround is to just add the required package in 1.9, which will download the jll and make it available to 1.10 as well? Worked for me.

---

<div class="post-metadata">

**Author:** ![sairus7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sairus7/32/10816_2.png) [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Post date:** [January 19, 2024, 10:02pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/8 "2024-01-19T22:02:25Z")

</div>

Isn’t that solved already? I cannot instantiate some of my environments because of this…

---

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [January 19, 2024, 10:05pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/9 "2024-01-19T22:05:41Z")

</div>

One easy workaround is to install the same packages (and thus the same artifacts) in Julia 1.9. Then the artifacts will be already downloaded and they will be available for 1.10

(Well, the same said above)

---

<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 20, 2024, 6:59am UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/10 "2024-01-20T06:59:56Z")

</div>

Did you try one of the above workarounds?

---

<div class="post-metadata">

**Author:** ![sairus7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sairus7/32/10816_2.png) [@sairus7](https://discourse.julialang.org/u/sairus7)\
**Post date:** [January 20, 2024, 1:05pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/11 "2024-01-20T13:05:04Z")

</div>

I’ve used temporary workaround to set `ENV["JULIA_PKG_IGNORE_HASHES"] = true` in current REPL.

---

<div class="post-metadata">

**Author:** ![nhz2](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nhz2/32/44428_2.png) [@nhz2](https://discourse.julialang.org/u/nhz2)\
**Post date:** [January 27, 2024, 6:58pm UTC](https://discourse.julialang.org/t/cannot-instantiate-env-in-julia-1-10-adwaita-icon-theme-jll-git-tree-hash-error-anyone-else/108105/12 "2024-01-27T18:58:02Z")

</div>

If you update your environment using `Pkg.update()`, adwaita\_icon\_theme\_jll should install on Windows now without needing “Developer Mode” or `ENV["JULIA_PKG_IGNORE_HASHES"] = true`.
