# DEPOT\_PATH undefined despite JULIA\_DEPOT\_PATH being defined in the Environment

**URL:** https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453
**Category:** New to Julia
**Tags:** question
**Created:** [January 16, 2020, 7:45pm UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453 "2020-01-16T19:45:37Z")
**Posts on this page:** 8
**Page:** 2

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [January 21, 2020, 6:25pm UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453/21 "2020-01-21T18:25:11Z")

</div>

> [@compleat](#):
>
> I will try what you suggestion. What should I look for?

If `ENV["HOME"]` doesn’t look sane or the `write` command gives an error, you need to do something about it.

---

<div class="post-metadata">

### Author: ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)
#### Post date: [January 21, 2020, 6:26pm UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453/22 "2020-01-21T18:26:04Z")

</div>

Please see above

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [January 21, 2020, 6:32pm UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453/23 "2020-01-21T18:32:30Z")

</div>

> [@compleat](#):
>
> ERROR: LoadError: MethodError: `write` has no method matching write(::ASCIIString, ::ASCIIString)  
> Closest candidates are:  
> write(!Matched::IO, ::ASCIIString)  
> write(!Matched::IO, ::AbstractString)  
> write{T\<:Base.AbstractPipe}(!Matched::T\<:Base.AbstractPipe, ::Any…)  
> …

Well, this doesn’t make any sense at all. As far as I know `ASCIIString` disappeared at some point around Julia 0.4 or so. What output does `versioninfo()` give?

---

<div class="post-metadata">

### Author: ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)
#### Post date: [January 21, 2020, 6:37pm UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453/24 "2020-01-21T18:37:17Z")

</div>

> [@compleat](#):
>
> ERROR: LoadError: MethodError: `write` has no method matching

You are right. It seems I have started the wrong version of julia.

Julia Version 0.4.5  
Commit 2ac304d (2016-03-18 00:58 UTC)  
Platform Info:  
System: Linux (x86\_64-linux-gnu)  
CPU: Intel(R) Xeon(R) CPU E5-2680 v4 @ 2.40GHz  
WORD\_SIZE: 64  
BLAS: libopenblas (NO\_LAPACKE DYNAMIC\_ARCH NO\_AFFINITY Haswell)  
LAPACK: libopenblas  
LIBM: libopenlibm  
LLVM: libLLVM-3.8  
nothing

\*\*\*\*\*\*\* UPDATE I gave explicit paths for the right version and Pkg loaded !!!

Thanks all for your help!!! Getting julia to work as a www-data user is no picnic!!!  
One little (non-fatal) glitch: versioninfo does not seem to get loaded (a known issue, I think)

ANYWAY - YOU MAY MARK THESE ISSUES AS ‘RESOLVED’ Thanks All!

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [January 21, 2020, 10:24pm UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453/25 "2020-01-21T22:24:27Z")

</div>

Hah! Thats what I suspected/suggested in my first post from 4 days ago:

> [@fredrikekre](#):
>
> Alternatively you are not running Julia 1.2, but maybe Julia 0.6 which does not have this variable.

---

<div class="post-metadata">

### Author: ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)
#### Post date: [January 21, 2020, 10:26pm UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453/26 "2020-01-21T22:26:40Z")

</div>

I’m sorry not to have checked that earlier, but we had a situation where for one user typing julia meant getting 1.2 and for another user on the same machine typing the same thing resulted in 0.4something.

But anyway, thank you.

There probably are not many people trying to use julia as ‘www-data’ users, but some of this may be of interest to them.

---

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [January 22, 2020, 8:47am UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453/27 "2020-01-22T08:47:01Z")

</div>

> [@compleat](#):
>
> we had a situation where for one user typing julia meant getting 1.2 and for another user on the same machine typing the same thing resulted in 0.4something.

I suspect this came from a missed `PATH` setting, which is not very specific to `www-data` in general.

---

<div class="post-metadata">

### Author: ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)
#### Post date: [January 22, 2020, 10:32am UTC](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453/28 "2020-01-22T10:32:30Z")

</div>

Hi Tamas,

I had suspected that earlier and tried setting the path, but it turned out to be more than that,  
partly because www-data has no ‘home directory’ set, and I suspect certain initialisation scripts  
didn’t get run when the shell opened, etc., plus there were permission issues which had to be fixed  
(with the help of an unusually sympathetic - though very busy - system administrator).

Anyway, with the help of everyone (especially yourself, Friedrik, Stefan, and Gunnar) I eventually  
got it working! Thanks again guys!

[Previous page](https://discourse.julialang.org/t/depot-path-undefined-despite-julia-depot-path-being-defined-in-the-environment/33453.md?page=1)
