Trouble with installing AlphaShapes package

I am very interested in using the AlphaShapes.jl package.
However after installation, I get the following error when I try to load it for the first time. I would appreciate any help with troubleshoorting.

julia> using AlphaShapes
[ Info: Precompiling AlphaShapes [23a43136-1936-4ec7-b2ed-3a5dbec7203f]
ERROR: LoadError: ArgumentError: Platform `riscv64-linux-gnu` is not an officially supported platform
Stacktrace:
 [1] parse(::Type{Base.BinaryPlatforms.Platform}, triplet::String; validate_strict::Bool)
   @ Base.BinaryPlatforms ./binaryplatforms.jl:752
 [2] parse(::Type{Base.BinaryPlatforms.Platform}, triplet::String)
   @ Base.BinaryPlatforms ./binaryplatforms.jl:670
 [3] (::Qhull_jll.var"#parse_wrapper_platform#1")(x::Any)
   @ Qhull_jll ~/.julia/packages/JLLWrappers/QpMQW/src/toplevel_generators.jl:113
 [4] (::Qhull_jll.var"#make_wrapper_dict#2"{Qhull_jll.var"#parse_wrapper_platform#1"})(dir::Any, x::Any)
   @ Qhull_jll ~/.julia/packages/JLLWrappers/QpMQW/src/toplevel_generators.jl:141
 [5] top-level scope
   @ ~/.julia/packages/JLLWrappers/QpMQW/src/toplevel_generators.jl:156
 [6] include
   @ ./Base.jl:419 [inlined]
 [7] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
   @ Base ./loading.jl:1554
 [8] top-level scope
   @ stdin:1
in expression starting at /home/suddhas/.julia/packages/Qhull_jll/IUkFz/src/Qhull_jll.jl:2
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile Qhull_jll [784f63db-0788-585a-bace-daefebcd302b] to /home/suddhas/.julia/compiled/v1.8/Qhull_jll/jl_t5I7Ce.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include(mod::Module, _path::String)
    @ Base ./Base.jl:419
 [10] top-level scope
    @ ~/.julia/packages/JLLWrappers/QpMQW/src/toplevel_generators.jl:188
 [11] include
    @ ./Base.jl:419 [inlined]
 [12] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [13] top-level scope
    @ stdin:1
in expression starting at /home/suddhas/.julia/packages/QhullMiniWrapper_jll/Wa07v/src/wrappers/x86_64-linux-gnu.jl:4
in expression starting at /home/suddhas/.julia/packages/QhullMiniWrapper_jll/Wa07v/src/QhullMiniWrapper_jll.jl:2
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile QhullMiniWrapper_jll [460c41e3-6112-5d7f-b78c-b6823adb3f2d] to /home/suddhas/.julia/compiled/v1.8/QhullMiniWrapper_jll/jl_QhlmUt.
Stacktrace:
  [1] error(s::String)
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
    @ Base ./loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /home/suddhas/.julia/packages/MiniQhull/cY6wk/src/MiniQhull.jl:1
in expression starting at stdin:1
    @ Base ./error.jl:35
  [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
    @ Base ./loading.jl:1707
  [3] compilecache
    @ ./loading.jl:1651 [inlined]
  [4] _require(pkg::Base.PkgId)
    @ Base ./loading.jl:1337
  [5] _require_prelocked(uuidkey::Base.PkgId)
    @ Base ./loading.jl:1200
  [6] macro expansion
    @ ./loading.jl:1180 [inlined]
  [7] macro expansion
    @ ./lock.jl:223 [inlined]
  [8] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
  [9] include
    @ ./Base.jl:419 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1554
 [11] top-level scope
    @ stdin:1
in expression starting at /home/suddhas/.julia/packages/AlphaShapes/40jJV/src/AlphaShapes.jl:1
in expression starting at stdin:1
ERROR: Failed to precompile AlphaShapes [23a43136-1936-4ec7-b2ed-3a5dbec7203f] to /home/suddhas/.julia/compiled/v1.8/AlphaShapes/jl_hMeIi5.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:35
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
   @ Base ./loading.jl:1707
 [3] compilecache
   @ ./loading.jl:1651 [inlined]
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1337
 [5] _require_prelocked(uuidkey::Base.PkgId)
   @ Base ./loading.jl:1200
 [6] macro expansion
   @ ./loading.jl:1180 [inlined]
 [7] macro expansion
   @ ./lock.jl:223 [inlined]
 [8] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:1144

Here is the version-info

Julia Version 1.8.5
Commit 17cfb8e65ea (2023-01-08 06:45 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 5825U with Radeon Graphics
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-13.0.1 (ORCJIT, znver3)
  Threads: 36 on 16 virtual cores
Environment:
  JULIA_NUM_THREADS = 36

Can you share the output of:

versioninfo()

?

I installed it on Linux on Julia 1.12, and that worked.

However, the package is not well-maintained; it lacks working unit tests for all operating systems.

TLDR you have an old version of the package JLLWrappers in your environment (<v1.7.0) and you’re using an old version of Julia (<v1.10.8, or <v1.11.3 in the 1.11 series). Update either JLLWrappers or your Julia version, ideally both of them.

Mine is 1.8.5. I have updated my entry and mentioned this now.

Thank you for sharing your experience with this package. I am mostly in search of a triangulation algorithm that works for submanifolds embedded in Euclidean space. The Delauney method does not quite do the job, as it creates simplices of the same dimension as the ambient space.

Thanks for the feedback. My version is 1.8.5. I was not aware of this feature called JLLWrappers. Could I request you to point me towards a page where I could know more about this ?

JLLWrappers.jl is simply a package you have in your environment. In the REPL type

]status -m JLLWrappers

to see the version of the package (] is for entering the Pkg REPL mode). You should see that JLLWrappers is older than v1.7.0.

The key point: Always use project-specific, not global, environments, as explained here.

And use:

using Pkg
Pkg.status()

to check if the versions of your key packages are up to date and that no packages you no longer need are in your environment.

And Julia 1.8.x is no longer maintained. If possible, try updating to Julia 1.10.x or 1.12.x Switching Julia versions is easy with juliaup .