JuliaGraphics / Luxor.jl

Simple drawings using vector graphics; Cairo "for tourists!"
http://juliagraphics.github.io/Luxor.jl/
Other
588 stars 71 forks source link

MethodError: objects of type String are not callable #272

Closed omofolarin closed 1 year ago

omofolarin commented 1 year ago

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

hyrodium commented 1 year ago

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> 
cormullion commented 1 year ago

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.

omofolarin commented 1 year ago

Yes, it works. Thanks for the feedback