chakravala/Fatou.jl

Plotting don't work with PyPlot

hammerfunctor opened this issue · 1 comments

Hello, I'm new to Fatou.jl. This is a fancy project. But for the first try, I cannot make it work properly.

This is the environment and I use v1.6.0, the same error appears for both add PyPlot and dev PyPlot

(phys_poster) pkg> status
      Status ~/phys_poster/Project.toml
  [5f923234] Fatou v1.1.1 ~/.julia/dev/Fatou
  [e9467ef8] GLMakie v0.2.9
  [438e738f] PyCall v1.92.3
  [d330b81b] PyPlot v2.9.0 ~/.julia/dev/PyPlot

And this is the error trace (after using Fatou)

julia> using PyPlot
[ Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]
┌ Warning: Error requiring PyPlot from Fatou
│   exception =
│    LoadError: syntax: malformed expression
│    Stacktrace:
│      [1] top-level scope
│        @ ~/.julia/dev/Fatou/src/pyplot.jl:4
│      [2] include(mod::Module, _path::String)
│        @ Base ./Base.jl:386
│      [3] include(x::String)
│        @ Fatou ~/.julia/dev/Fatou/src/Fatou.jl:1
│      [4] top-level scope
│        @ ~/.julia/packages/Requires/7Ncym/src/Requires.jl:40
│      [5] eval
│        @ ./boot.jl:360 [inlined]
│      [6] eval
│        @ ~/.julia/dev/Fatou/src/Fatou.jl:1 [inlined]
│      [7] (::Fatou.var"#20#35")()
│        @ Fatou ~/.julia/packages/Requires/7Ncym/src/require.jl:99
│      [8] err(f::Any, listener::Module, modname::String)
│        @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:47
│      [9] (::Fatou.var"#19#34")()
│        @ Fatou ~/.julia/packages/Requires/7Ncym/src/require.jl:98
│     [10] withpath(f::Any, path::String)
│        @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:37
│     [11] (::Fatou.var"#18#33")()
│        @ Fatou ~/.julia/packages/Requires/7Ncym/src/require.jl:97
│     [12] #invokelatest#2
│        @ ./essentials.jl:708 [inlined]
│     [13] invokelatest
│        @ ./essentials.jl:706 [inlined]
│     [14] foreach(f::typeof(Base.invokelatest), itr::Vector{Function})
│        @ Base ./abstractarray.jl:2141
│     [15] loadpkg(pkg::Base.PkgId)
│        @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:27
│     [16] #invokelatest#2
│        @ ./essentials.jl:708 [inlined]
│     [17] invokelatest
│        @ ./essentials.jl:706 [inlined]
│     [18] require(uuidkey::Base.PkgId)
│        @ Base ./loading.jl:920
│     [19] require(into::Module, mod::Symbol)
│        @ Base ./loading.jl:901
│     [20] eval
│        @ ./boot.jl:360 [inlined]
│     [21] eval_user_input(ast::Any, backend::REPL.REPLBackend)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:139
│     [22] repl_backend_loop(backend::REPL.REPLBackend)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:200
│     [23] start_repl_backend(backend::REPL.REPLBackend, consumer::Any)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:185
│     [24] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:317
│     [25] run_repl(repl::REPL.AbstractREPL, consumer::Any)
│        @ REPL /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.6/REPL/src/REPL.jl:305
│     [26] (::Base.var"#874#876"{Bool, Bool, Bool})(REPL::Module)
│        @ Base ./client.jl:387
│     [27] #invokelatest#2
│        @ ./essentials.jl:708 [inlined]
│     [28] invokelatest
│        @ ./essentials.jl:706 [inlined]
│     [29] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
│        @ Base ./client.jl:372
│     [30] exec_options(opts::Base.JLOptions)
│        @ Base ./client.jl:302
│     [31] _start()
│        @ Base ./client.jl:485in expression starting at /home/huzf/.julia/dev/Fatou/src/pyplot.jl:4
└ @ Requires ~/.julia/packages/Requires/7Ncym/src/require.jl:49

Alright, issue is fixed in latest commit now