StatCan / aaw-kubeflow-containers

Containers built to be used with Kubeflow for Data Science
Other
24 stars 21 forks source link

Julia install is broken by permissions issue #291

Closed blairdrummond closed 4 weeks ago

blairdrummond commented 3 years ago
(hey) pkg> add VegaLite
ERROR: IOError: stat("/opt/julia/registries/General/Registry.toml"): permission denied (EACCES)
Stacktrace:
  [1] uv_error
    @ ./libuv.jl:97 [inlined]
  [2] stat(path::String)
    @ Base.Filesystem ./stat.jl:69
  [3] isfile
    @ ./stat.jl:311 [inlined]
  [4] collect_registries(depot::String)

I think some stuff needs to get chowned or something

Jose-Matsuda commented 1 year ago

The permission issue seems to be resolved, but theres a different issue

  1. Entering Julia from terminal typing in julia
  2. Enter the Pkg REPL [as instructed here by typing in ]](https://docs.julialang.org/en/v1/stdlib/Pkg/)
  3. type add Example

Result is

(@v1.9) pkg> add Example
   Resolving package versions...
   Installed Example ─ v0.5.3
    Updating `/opt/julia/environments/v1.9/Project.toml`
  [7876af07] + Example v0.5.3
    Updating `/opt/julia/environments/v1.9/Manifest.toml`
  [7876af07] + Example v0.5.3
Killed

So it just gets killed somewhere

Souheil-Yazji commented 4 months ago

To Verify

Souheil-Yazji commented 4 weeks ago

Works:

(@v1.10) pkg> (base) jovyan@sy-0:~$ julia
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.10.4 (2024-06-04)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.10) pkg> add Example
   Resolving package versions...
   Installed Example ─ v0.5.5
    Updating `/opt/julia/environments/v1.10/Project.toml`
  [7876af07] + Example v0.5.5
    Updating `/opt/julia/environments/v1.10/Manifest.toml`
  [7876af07] + Example v0.5.5
Precompiling project...
  1 dependency successfully precompiled in 1 seconds. 76 already precompiled.