JuliaDynamics / Agents.jl

Agent-based modeling framework in Julia
https://juliadynamics.github.io/Agents.jl/stable/
MIT License
717 stars 115 forks source link

flocking model example does not work #951

Closed lmiq closed 5 months ago

lmiq commented 7 months ago

The flocking model example is not working, because the Polygon type apparently is not available anymore in Makie:

julia> const bird_polygon = Makie.Polygon(Point2f[(-1, -1), (2, 0), (-1, 1)])
ERROR: UndefVarError: `Polygon` not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ REPL[16]:1

(jl_rogOgj) pkg> st
Status `/tmp/jl_rogOgj/Project.toml`
  [46ada45e] Agents v5.17.1
  [13f3f980] CairoMakie v0.11.4
  [ee78f7c6] Makie v0.20.3

julia> Makie.Polygon
ERROR: UndefVarError: `Polygon` not defined
Stacktrace:
 [1] getproperty(x::Module, f::Symbol)
   @ Base ./Base.jl:31
 [2] top-level scope
   @ REPL[21]:1
Tortar commented 7 months ago

mmmh, It seems like that pinning the version of Makie should be the right choice to avoid these problems in the future

Tortar commented 6 months ago

Adding to v6.0 because we will update anyway to Makie 0.20 (even if the released version now includes the previous version of Makie so flocking should work)

fbanning commented 6 months ago

This issue should be fixed with #934