ImageView gives errors


#1

Hi,

I recently upgraded to Julia 1.0.1 from 0.6.
Now I have added Images package but on running:
using ImageView
on the terminal I am getting this error:

[ Info: Precompiling ImageView [86fae568-95e7-573e-a6b2-d8a6b900c9ef]
ERROR: LoadError: error compiling top-level scope: could not load library “libgtk-3”
libgtk-3.so: cannot open shared object file: No such file or directory
Stacktrace:
[1] include at ./boot.jl:317 [inlined]
[2] include_relative(::Module, ::String) at ./loading.jl:1041
[3] include(::Module, ::String) at ./sysimg.jl:29
[4] top-level scope at none:2
[5] eval at ./boot.jl:319 [inlined]
[6] eval(::Expr) at ./client.jl:389
[7] top-level scope at ./none:3
in expression starting at /home/subhankar/.julia/packages/Gtk/ADDrn/src/Gtk.jl:43
ERROR: LoadError: Failed to precompile Gtk [4c0ca9eb-093a-5379-98c5-f87ac0bbbf44] to /home/subhankar/.julia/compiled/v1.0/Gtk/Vjnq0.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1187
[4] _require(::Base.PkgId) at ./logging.jl:311
[5] require(::Base.PkgId) at ./loading.jl:855
[6] macro expansion at ./logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at ./loading.jl:837
[8] include at ./boot.jl:317 [inlined]
[9] include_relative(::Module, ::String) at ./loading.jl:1041
[10] include(::Module, ::String) at ./sysimg.jl:29
[11] top-level scope at none:2
[12] eval at ./boot.jl:319 [inlined]
[13] eval(::Expr) at ./client.jl:389
[14] top-level scope at ./none:3
in expression starting at /home/subhankar/.julia/packages/ImageView/fBkoO/src/ImageView.jl:5
ERROR: Failed to precompile ImageView [86fae568-95e7-573e-a6b2-d8a6b900c9ef] to /home/subhankar/.julia/compiled/v1.0/ImageView/4mtgY.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] macro expansion at ./logging.jl:313 [inlined]
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1187
[4] macro expansion at ./logging.jl:311 [inlined]
[5] _require(::Base.PkgId) at ./loading.jl:944
[6] require(::Base.PkgId) at ./loading.jl:855
[7] macro expansion at ./logging.jl:311 [inlined]
[8] require(::Module, ::Symbol) at ./loading.jl:837

Any suggestions please?


#2

I also got errors, during add ImageView
julia 1.0.0, win 7 (x86_64-w64-mingw32)

Error building Cairo (v0.5.6)
WinRPM.RPM failed to satisfy pangocairo
Error building Gtk (v0.16.4)
WinRPM.RPM failed to satisfy gtk


using ImageView gives similar errors

could not load library “libgobject-2.0-0”
failed to precompile gtk
failed to precompile ImageView


#3

These are Gtk.jl and/or Cairo.jl errors, not ImageView errors. You might consider filing an issue in those repositories.

Note that searching Gtk.jl issues for ‘could not load library “libgtk-3”’ yields quite a few hits (both open and closed), so you may want to read through them and see if any apply to your platform(s). Likewise for the Cairo error.


#4

just a comment here,

isnt’t correct. In most cases it’s a problem in the providers WinRPM and/or Homebrew