-
Notifications
You must be signed in to change notification settings - Fork 80
failed install in 1.0.0 version julia #364
Comments
The issue is this:
within LibCURL. |
Hi @tknopp , thank you for you advice. I installed the latest Windows Management Framework (version 5.1) Win7AndW2K8R2-KB3191566-x64.zip but the error still exists.
By the way, Gtk package runs well in my 0.6.4 version julia. So I guess this might not be the problem of my os but I have no idea about any other steps I need to do. Thank you. |
We only got Gtk to run on v0.7/v1.0 recently so there's probably some issues left with it. I managed to install it on my windows 7 machine, but I'm using v0,7 (which is the same as v1.0 btw, just with deprecations, so it's generally recommended to use it, more packages will work on it). It seems like Cairo doesn't work on windows, so there's still some work on upstream packages. |
Works for me locally. Time for a new release? |
@timholy Lets do it. Cairo makes us still fail on Mac since there is also a release missing (I fixed the Homebrew issue with a hack (JuliaGraphics/Cairo.jl#250) that works and got critique by Tony). So maybe (if you can live with the hack) you could push their so that Travis can go all green on Gtk. |
I tried using Julia's pkg command to
On both machines when I tried running the getting started example I got this error:
Thereafter trying to run (on both machines) produced a pause and then no window appears and the program finishes.
For the record, here's #!/usr/bin/env julia
using Gtk
win = GtkWindow("My First Gtk.jl Program", 400, 200)
b = GtkButton("Click Me")
push!(win,b)
function on_button_clicked(w)
println("The button has been clicked")
end
signal_connect(on_button_clicked, b, "clicked")
showall(win) |
For the first error does this path exists on your machine ?
Maybe you have Julia installed in a unusual path and that confuses LibCURL. You should also put a http://juliagraphics.github.io/Gtk.jl/latest/manual/nonreplusage.html#Non-REPL-Usage-1 |
Yes that exact path exists. I added the extra bit as per your suggestion at the end: if !isinteractive()
c = Condition()
signal_connect(win, :destroy) do widget
notify(c)
end
wait(c)
end And now the Window shows up and I can click the button. Tried this on both machines and both work. So I would say that this is a doc bug because the 'getting started' example as written does not work. |
It doesn't work if you run it in a script, but it does if you copy-paste it in the REPL, correct ? |
It works as a script if I add the |
I'm also getting the |
I think the reason is that curl is no longer installed by default in 18.04. I never use it myself (I use wget) so didn't notice. However the package is still there so it can be installed. |
Hi there,
I cannot add Gtk package in my 1.0.0 version julia and below are some more infos. Anyone can help?
Thank you.
Zd
julia> versioninfo()
julia> Pkg.add("Gtk")
When I tried to use Gtk ignoring these install errors, I got the following errors:
julia> using Gtk
The text was updated successfully, but these errors were encountered: