Winston.jl
Winston.jl copied to clipboard
Test failure: `getgc` has no method matching getgc(::Canvas)
Just started getting this error today.
julia> Pkg.test("Winston")
INFO: Testing Winston
ERROR: `getgc` has no method matching getgc(::Canvas)
in anonymous at /home/wkearn/.julia/v0.3/Winston/src/tk.jl:23
in display at /home/wkearn/.julia/v0.3/Winston/src/tk.jl:35
in include at ./boot.jl:245
in include_from_node1 at ./loading.jl:128
in include at ./boot.jl:245
in include_from_node1 at loading.jl:128
in process_options at ./client.jl:285
in _start at ./client.jl:354
while loading /home/wkearn/.julia/v0.3/Winston/test/canvas.jl, in expression starting on line 20
while loading /home/wkearn/.julia/v0.3/Winston/test/runtests.jl, in expression starting on line 1
I got the same error on a couple different versions of Julia:
0.3
julia> versioninfo()
Julia Version 0.3.6-pre+69
Commit 8a75610* (2015-02-06 21:07 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
I tried it again on an 0.4 commit (a couple of days off of master) and got the same error.
julia> versioninfo()
Julia Version 0.4.0-dev+3229
Commit bb43210 (2015-02-09 16:15 UTC)
Platform Info:
System: Linux (x86_64-linux-gnu)
CPU: Intel(R) Core(TM) i7-3770 CPU @ 3.40GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Sandybridge)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
Thought it might be something weird going on with my desktop, so I tried in on my Macbook Air and got the same error:
julia> versioninfo()
Julia Version 0.3.5
Commit a05f87b* (2015-01-08 22:33 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM i5-4250U CPU @ 1.30 GHz
WORD_SIZE: 64
BLAS: libopenblas (DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3
I suspect this will be fixed by #202, but I haven't had time to test yet.
I am having similar error
julia> using Winston
Warning: imported binding for Graphics overwritten in module Main
julia> imagesc(eye(3))
Error showing value of type error during Tk callback:
ERROR: `getgc` has no method matching getgc(::Canvas)
in anonymous at /home/weijian/.julia/v0.3/Winston/src/tk.jl:23
in configure at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:246
in init_canvas at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:407
in anonymous at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:386
in jl_tcl_callback at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:145
FramedPlot:
ERROR: `getgc` has no method matching getgc(::Canvas)
in anonymous at /home/weijian/.julia/v0.3/Winston/src/tk.jl:23
in configure at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:246
in init_canvas at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:407
in anonymous at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:386
in jl_tcl_callback at /home/weijian/.julia/v0.3/Tk/src/tkwidget.jl:145
Confirmed that this is fixed by #202
Thanks, @timholy for pointing that out.
Thanks for testing.
Yes, #202 fixed my problem as well. Thanks!
Just to summarize the above (a nice exercise until the fix gets "in"): Pkg.status() Pkg.test("Winston") gives the getgc error (fix is "out") Pkg.checkout("Winston") puts Winston on the master (fix is in) Pkg.status() Pkg.test("Winston") passes tests Pkg.free("Winston") (fix is back out) Pkg.test("Winston") gives the getgc error again
This error has reappeared on 0.3 for me.
It's related to JuliaLang/Graphics.jl#1
The temporary fix in that issue (Pkg.checkout("Graphics","jcb/exportbase")
) seems to solve it.