My script fails at `using`

You didn’t do anything wrong. I get the same error in a new temporary environment.

(@v1.10) pkg> activate --temp
  Activating new project at `C:\Users\nboyer.AIP\AppData\Local\Temp\jl_7RVDrF`

(jl_7RVDrF) pkg> add GeoIO
   Resolving package versions...
    Updating `C:\Users\nboyer.AIP\AppData\Local\Temp\jl_7RVDrF\Project.toml`
  [f5a160d5] + GeoIO v1.12.13
    Updating `C:\Users\nboyer.AIP\AppData\Local\Temp\jl_7RVDrF\Manifest.toml`
.
.
.
Precompiling project...
  ✗ GDAL_jll
  ✗ GDAL
  ✗ ArchGDAL
  ✗ GeoIO
  3 dependencies successfully precompiled in 35 seconds. 271 already precompiled.
  4 dependencies errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> using GeoIO
Precompiling GeoIO
        Info Given GeoIO was explicitly requested, output will be shown live
ERROR: LoadError: InitError: could not load library "C:\Users\nboyer.AIP\.julia\artifacts\dcd0721a2a49cfb8916395419701035173b57955\bin\libarrow.dll"
.
.
.

There seems to be a problem with one of GeoIO’s dependencies. I tracked the issue down to here. You will want to follow that issue for a fix. The current workaround seems to be to add snappy_jll@1.1.10 to your environment.

(jl_7RVDrF) pkg> st
Status `C:\Users\nboyer.AIP\AppData\Local\Temp\jl_7RVDrF\Project.toml`
  [f5a160d5] GeoIO v1.12.13

(jl_7RVDrF) pkg> add snappy_jll@1.1.10
   Resolving package versions...
   Installed snappy_jll ─ v1.1.10+0
  Downloaded artifact: snappy
    Updating `C:\Users\nboyer.AIP\AppData\Local\Temp\jl_7RVDrF\Project.toml`
⌃ [fe1e1685] + snappy_jll v1.1.10+0
    Updating `C:\Users\nboyer.AIP\AppData\Local\Temp\jl_7RVDrF\Manifest.toml`
⌃ [fe1e1685] ↓ snappy_jll v1.2.0+0 ⇒ v1.1.10+0
        Info Packages marked with ⌃ have new versions available and may be upgradable.
Precompiling project...
  5 dependencies successfully precompiled in 40 seconds. 269 already precompiled. 4 skipped during auto due to previous errors.

julia> using GeoIO
Precompiling GeoIO
  4 dependencies successfully precompiled in 59 seconds. 274 already precompiled.

This blog post is my favorite resource on environments.
jkrumbiegel.com - Pkg.jl and Julia Environments for Beginners

4 Likes