# Problems with environment - Tree Hash Mismatch!

**URL:** <https://discourse.julialang.org/t/problems-with-environment-tree-hash-mismatch/60103>\
**Category:** General Usage\
**Tags:** question\
**Created:** [April 27, 2021, 12:45pm UTC](https://discourse.julialang.org/t/problems-with-environment-tree-hash-mismatch/60103 "2021-04-27T12:45:03Z")\
**Posts on this page:** 4\
**Page:** 2

<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:** [May 22, 2021, 12:03pm UTC](https://discourse.julialang.org/t/problems-with-environment-tree-hash-mismatch/60103/21 "2021-05-22T12:03:01Z")

</div>

> [@roi.holtzman](#):
>
> does this mean I should always start julia like that?

I’d say yes, in your cluster.

> [@roi.holtzman](#):
>
> is there a way to configure this environment variable?

I don’t recommend changing the environment variable for the rest of your system, I’d create an alias for Julia, or a small shell wrapper

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [May 22, 2021, 12:04pm UTC](https://discourse.julialang.org/t/problems-with-environment-tree-hash-mismatch/60103/22 "2021-05-22T12:04:55Z")

</div>

I guess you are right.  
actually, most of my use is to run julia scripts. So adding `LD_LIBRARY_PATH=""` as a prefix before running the script is quite easy.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [May 24, 2021, 3:34pm UTC](https://discourse.julialang.org/t/problems-with-environment-tree-hash-mismatch/60103/23 "2021-05-24T15:34:01Z")

</div>

so apparently running

```julia
LD_LIBRARY_PATH="" julia script.jl

```

does not make the errors go away.  
Namely, I still see this error in the output (since I am importing PyPlot):

```julia
┌ Warning: No working GUI backend found for matplotlib
└ @ PyPlot ~/.julia/packages/PyPlot/XHEG0/src/init.jl:165

```

@giordano, do you know what should be done in this case?  
Is there a way to set it from “inside” the script?

---

<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:** [May 24, 2021, 3:44pm UTC](https://discourse.julialang.org/t/problems-with-environment-tree-hash-mismatch/60103/24 "2021-05-24T15:44:29Z")

</div>

To be clear, you are experiencing multiple different unrelated issues:

1. uncommon filesystem on which computation of the git tree sha1 fails
2. `LD_LIBRARY_PATH` environment variable being set which causes JLL packages to not be loaded correctly
3. matplotlib GUI not working for some other reasons which at the moment I have no clue about (might be loosely related to point 2 though)

My suggestion would be to use some other plotting libraries. Honestly I’m not familiar with internals of `PyPlot.jl` to know what’s going on. If you really want to use `PyPlot.jl` I suggest you to open a new thread, this has been resolved long ago (the original problem with the git tree sha1 was solved by upgrading to Julia v1.6)

[Previous page](https://discourse.julialang.org/t/problems-with-environment-tree-hash-mismatch/60103.md?page=1)
