yeesian / ArchGDAL.jl

A high level API for GDAL - Geospatial Data Abstraction Library
https://yeesian.github.io/ArchGDAL.jl/stable/
Other
141 stars 27 forks source link

ArchGDAL test fails #335

Open MitraAMitra opened 1 year ago

MitraAMitra commented 1 year ago

Hi, I have installed ArchGDAL using the mac (M2) terminal, when I use the command "status ArchGDAL" I get the following "⌅ [c9ce4bd3] ArchGDAL v0.6.0". However, when I run "test ArchGDAL". I receive the following errors: " ERROR: LoadError: UndefVarError: probe_platform_engines! not defined Stacktrace: [1] top-level scope @ ~/.julia/packages/ArchGDAL/CUiBS/test/remotefiles.jl:6 [2] include(fname::String) @ Base.MainInclude ./client.jl:476 [3] top-level scope @ ~/.julia/packages/ArchGDAL/CUiBS/test/runtests.jl:6 [4] include(fname::String) @ Base.MainInclude ./client.jl:476 [5] top-level scope @ none:6 in expression starting at /Users/myname/.julia/packages/ArchGDAL/CUiBS/test/remotefiles.jl:6 in expression starting at /Users/myname/.julia/packages/ArchGDAL/CUiBS/test/runtests.jl:6 ERROR: Package ArchGDAL errored during testing " I would very much appreciate it if you can help me to overcome this problem. I also need the package GriddingMachine, but I encounter a similar issue. The command status also gives me the following info, in case it is needed. " ⌅ [c9ce4bd3] ArchGDAL v0.6.0 [a93c6f00] DataFrames v1.4.1 [add2ef01] GDAL v1.4.0 ⌅ [f20cf718] GriddingMachine v0.1.8 ⌅ [0d262f2c] PkgUtility v0.1.13 [3a884ed6] UnPack v1.0.2 [4af54fe1] LazyArtifacts [10745b16] Statistics "

evetion commented 1 year ago

I expect you're using an old Julia version, because you also have an old ArchGDAL version.

Could you update both to see if the problem persists?

MitraAMitra commented 1 year ago

Julia --version is 1.8.2 which is released on 29th of Sep 2022, I assume. So it should be the latest version. When trying to install the version 0.9.2 of ArchGDAL, I get the following errors (I have tried a few other versions and it gives me a very similar error). " pkg> add ArchGDAL@0.9.2 Resolving package versions... ERROR: Unsatisfiable requirements detected for package ArchGDAL [c9ce4bd3]: ArchGDAL [c9ce4bd3] log: ├─possible versions are: 0.1.0-0.9.2 or uninstalled ├─restricted to versions 0.9.2 by an explicit requirement, leaving only versions 0.9.2 └─restricted by compatibility requirements with GriddingMachine [f20cf718] to versions: 0.5.0-0.6.0 — no versions left └─GriddingMachine [f20cf718] log: ├─possible versions are: 0.1.0-0.2.8 or uninstalled └─restricted to versions 0.1.8-0.1 by an explicit requirement, leaving only versions 0.1.8 " and " julia> Pkg.status("ArchGDAL@0.9.2") No Matches in ~/myfilename/Project.toml " and when I use "pkg> update ArchGDAL", I get the following message " Updating registry at ~/.julia/registries/General.toml No Changes to ~/myfilename/Project.toml

" So any clues how I can update the ArchGDAL to the latest version? Thanks.

rafaqz commented 1 year ago

GriddingaMachine.jl doesn't depend on ArchGDAL.jl, so the problem seems to be lower in your error. Can you post the whole thing?

Oh maybe it did previously? You seem to be stuck on an old GriddingMachine version.

MitraAMitra commented 1 year ago

test ArchGDAL Testing ArchGDAL Status /private/var/folders/3b/n7cqhsc511xfr33_bn3yf1t40000gn/T/jl_SBiRDb/Project.toml ⌃ [c9ce4bd3] ArchGDAL v0.6.0 ⌅ [3c3547ce] DiskArrays v0.2.13 [add2ef01] GDAL v1.4.0 ⌅ [68eda718] GeoFormatTypes v0.3.0 ⌅ [cf35fbd7] GeoInterface v0.5.7 [bd369af6] Tables v1.9.0 [ade2ca70] Dates @stdlib/Dates [44cfe95a] Pkg v1.8.0 @stdlib/Pkg [10745b16] Statistics @stdlib/Statistics [8dfed614] Test @stdlib/Test Status /private/var/folders/3b/n7cqhsc511xfr33_bn3yf1t40000gn/T/jl_SBiRDb/Manifest.toml ⌃ [c9ce4bd3] ArchGDAL v0.6.0 [fa961155] CEnum v0.4.2 [9a962f9c] DataAPI v1.12.0 [e2d170a0] DataValueInterfaces v1.0.0 ⌅ [3c3547ce] DiskArrays v0.2.13 [add2ef01] GDAL v1.4.0 ⌅ [68eda718] GeoFormatTypes v0.3.0 ⌅ [cf35fbd7] GeoInterface v0.5.7 [82899510] IteratorInterfaceExtensions v1.0.0 [692b3bcd] JLLWrappers v1.4.1 [bac558e1] OrderedCollections v1.4.1 [21216c6a] Preferences v1.3.0 [3cdcf5f2] RecipesBase v1.3.0 [66db9d55] SnoopPrecompile v1.0.1 [3783bdb8] TableTraits v1.0.1 [bd369af6] Tables v1.9.0 [2e619515] Expat_jll v2.4.8+0 [a7073274] GDAL_jll v300.500.102+0 [d604d12d] GEOS_jll v3.11.0+0 [0234f1f7] HDF5_jll v1.12.2+2 [aacddb02] JpegTurbo_jll v2.1.2+0 [88015f11] LERC_jll v3.0.0+1 [94ce4f54] Libiconv_jll v1.16.1+1 [89763e89] Libtiff_jll v4.4.0+0 [d3a379c0] LittleCMS_jll v2.12.0+0 [7243133f] NetCDF_jll v400.902.5+1 [643b3616] OpenJpeg_jll v2.4.0+0 [458c3c95] OpenSSL_jll v1.1.17+0 [58948b4f] PROJ_jll v900.100.0+0 [76ed43ae] SQLite_jll v3.39.2+0 [02c8fc9c] XML2_jll v2.9.14+0 [3161d3a3] Zstd_jll v1.5.2+0 [06c338fa] libgeotiff_jll v100.700.100+0 [b53b4c65] libpng_jll v1.6.38+0 [0dad84c5] ArgTools v1.1.1 @stdlib/ArgTools [56f22d72] Artifacts @stdlib/Artifacts [2a0f44e3] Base64 @stdlib/Base64 [ade2ca70] Dates @stdlib/Dates [f43a241f] Downloads v1.6.0 @stdlib/Downloads [7b1f6079] FileWatching @stdlib/FileWatching [b77e0a4c] InteractiveUtils @stdlib/InteractiveUtils [b27032c2] LibCURL v0.6.3 @stdlib/LibCURL [76f85450] LibGit2 @stdlib/LibGit2 [8f399da3] Libdl @stdlib/Libdl [37e2e46d] LinearAlgebra @stdlib/LinearAlgebra [56ddb016] Logging @stdlib/Logging [d6f4376e] Markdown @stdlib/Markdown [ca575930] NetworkOptions v1.2.0 @stdlib/NetworkOptions [44cfe95a] Pkg v1.8.0 @stdlib/Pkg [de0858da] Printf @stdlib/Printf [3fa0cd96] REPL @stdlib/REPL [9a3f8284] Random @stdlib/Random [ea8e919c] SHA v0.7.0 @stdlib/SHA [9e88b42a] Serialization @stdlib/Serialization [6462fe0b] Sockets @stdlib/Sockets [2f01184e] SparseArrays @stdlib/SparseArrays [10745b16] Statistics @stdlib/Statistics [fa267f1f] TOML v1.0.0 @stdlib/TOML [a4e569a6] Tar v1.10.1 @stdlib/Tar [8dfed614] Test @stdlib/Test [cf7118a7] UUIDs @stdlib/UUIDs [4ec0a83e] Unicode @stdlib/Unicode [e66e0078] CompilerSupportLibraries_jll v0.5.2+0 @stdlib/CompilerSupportLibraries_jll [deac9b47] LibCURL_jll v7.84.0+0 @stdlib/LibCURL_jll [29816b5a] LibSSH2_jll v1.10.2+0 @stdlib/LibSSH2_jll [c8ffd9c3] MbedTLS_jll v2.28.0+0 @stdlib/MbedTLS_jll [14a3606d] MozillaCACerts_jll v2022.2.1 @stdlib/MozillaCACerts_jll [4536629a] OpenBLAS_jll v0.3.20+0 @stdlib/OpenBLAS_jll [83775a58] Zlib_jll v1.2.12+3 @stdlib/Zlib_jll [8e850b90] libblastrampoline_jll v5.1.1+0 @stdlib/libblastrampoline_jll [8e850ede] nghttp2_jll v1.48.0+0 @stdlib/nghttp2_jll [3f19e933] p7zip_jll v17.4.0+0 @stdlib/p7zip_jll Info Packages marked with ⌃ and ⌅ have new versions available, but those with ⌅ are restricted by compatibility constraints from upgrading. Precompiling project... ✗ ArchGDAL 0 dependencies successfully precompiled in 1 seconds. 39 already precompiled. 1 dependency errored. To see a full report either run import Pkg; Pkg.precompile() or load the package Testing Running tests... ERROR: LoadError: UndefVarError: probe_platform_engines! not defined Stacktrace: [1] top-level scope @ ~/.julia/packages/ArchGDAL/CUiBS/test/remotefiles.jl:6 [2] include(fname::String) @ Base.MainInclude ./client.jl:476 [3] top-level scope @ ~/.julia/packages/ArchGDAL/CUiBS/test/runtests.jl:6 [4] include(fname::String) @ Base.MainInclude ./client.jl:476 [5] top-level scope @ none:6 in expression starting at /Users/myname/.julia/packages/ArchGDAL/CUiBS/test/remotefiles.jl:6 in expression starting at /Users/myname/.julia/packages/ArchGDAL/CUiBS/test/runtests.jl:6 ERROR: Package ArchGDAL errored during testing

MitraAMitra commented 1 year ago

Here is the error when I use update, and above you can see the error when I use test ArchGDAL update ArchGDAL Updating registry at ~/.julia/registries/General.toml Installed OpenSSL_jll ─ v1.1.18+0 Downloaded artifact: OpenSSL No Changes to ~/myfile/Project.toml Updating ~/myfile/Manifest.toml [458c3c95] ↑ OpenSSL_jll v1.1.17+0 ⇒ v1.1.18+0 Precompiling project... ✗ ArchGDAL ✗ GriddingMachine 16 dependencies successfully precompiled in 13 seconds. 78 already precompiled. 2 dependencies errored. To see a full report either run import Pkg; Pkg.precompile() or load the packages

felixcremer commented 1 year ago

Can you please check what is holding back ArchGDAL from updating? To do that use st --outdated in the PKG repl.

yeesian commented 1 year ago

Sorry @MitraAMitra I'm not able to reproduce this either; can you try the suggestion in https://github.com/yeesian/ArchGDAL.jl/issues/335#issuecomment-1276778740 ?