JuliaGraphics / Luxor.jl

Simple drawings using vector graphics; Cairo "for tourists!"

Home Page:http://juliagraphics.github.io/Luxor.jl/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MethodError: objects of type String are not callable

omofolarin opened this issue · comments

Please I’m trying out Luxor
@png begin
text(“Hello world”)
circle(Point(0, 0), 200, action = :stroke)
end
But I get this error:
┌ Error: Hint-handler #41 for MethodError in ImageCore caused an error
└ @ Base.Experimental experimental.jl:321
MethodError: objects of type String are not callable
Julia 1.9

It works fine on my environment. Could you please give us more information about your environment?

(2023-09-11_luxor) pkg> st
Status `~/tmp/2023-09-11_luxor/Project.toml`
  [ae8d54c2] Luxor v3.8.0

julia> versioninfo()
Julia Version 1.9.3
Commit bed2cd540a1 (2023-08-24 14:43 UTC)
Build Info:
  Official https://julialang.org/ release
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 16 × AMD Ryzen 7 2700X Eight-Core Processor
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, znver1)
  Threads: 1 on 16 virtual cores

julia> using Luxor

julia> @png begin
       text("Hello world")
       circle(Point(0, 0), 200, action = :stroke)
       end


julia> 

Hi! Luxor doesn't use Images, and that message is unrelated to anything in Luxor. Try again in a new Julia session, without having too many other packages in your current project.

Yes, it works. Thanks for the feedback