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

Error with Immerse #11

Closed
KajWiik opened this issue Apr 13, 2016 · 2 comments
Closed

Error with Immerse #11

KajWiik opened this issue Apr 13, 2016 · 2 comments

Comments

@KajWiik
Copy link

KajWiik commented Apr 13, 2016

WARNING: Method definition closefig(Integer) in module Immerse at /home/kjwiik/.julia/v0.4/Immerse/src/display_gadfly.jl:284 overwritten in module Main at /home/kjwiik/.julia/v0.4/GtkIDE/src/PlotWindow.jl:158.
ERROR: LoadError: MethodError: convert has no method matching convert(::Type{Immerse.Figure})
This may have arisen from a call to the constructor Immerse.Figure(...),
since type constructors fall back to convert methods.
Closest candidates are:
  convert{T}(::Type{T}, ::T)
  Immerse.Figure(, ::Gtk.GtkCanvas)
  Immerse.Figure(, ::Gtk.GtkCanvas, ::Gadfly.Plot)
  ...
 in figure at /home/kjwiik/.julia/v0.4/GtkIDE/src/PlotWindow.jl:127
 in include at ./boot.jl:261
 in include_from_node1 at ./loading.jl:320
 in require at ./loading.jl:259
while loading /home/kjwiik/.julia/v0.4/GtkIDE/src/GtkIDE.jl, in expression starting on line 171

julia> 
julia> versioninfo()
Julia Version 0.4.5
Commit 2ac304d (2016-03-18 00:58 UTC)
Platform Info:
  System: Linux (x86_64-unknown-linux-gnu)
  CPU: Intel(R) Core(TM) i5 CPU       M 520  @ 2.40GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.3

I followed the instructions (checkout). It is strange that versioninfo() returns nothing after trying to start GtkIDE...

@jonathanBieler
Copy link
Owner

Looks like you somehow still have the old version of Immerse, that's the current constructors for Figure:

https://github.com/JuliaGraphics/Immerse.jl/blob/master/src/display_gadfly.jl#L53

Maybe it's dirty ? You can check with Pkg.status() to make sure it's annotated as master.

Otherwise I redirect Julia standard output so that's probably why versioninfo() doesn't work (it gets printed in the console you cannot see).

@KajWiik
Copy link
Author

KajWiik commented Apr 13, 2016

Yes, doing Pkg.rm("Immerse") and Pkg.checkout("Immerse") does the trick.

Looks very nice, also a great example of Gtk.jl.

Thanks.
Kaj

@KajWiik KajWiik closed this as completed Apr 13, 2016
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

2 participants