Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MethodError: objects of type String are not callable #272

Closed
omofolarin opened this issue Sep 11, 2023 · 3 comments
Closed

MethodError: objects of type String are not callable #272

omofolarin opened this issue Sep 11, 2023 · 3 comments

Comments

@omofolarin
Copy link

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
Copy link
Contributor

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
Copy link
Member

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
Copy link
Author

Yes, it works. Thanks for the feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants