# ImageView gives errors

**URL:** https://discourse.julialang.org/t/imageview-gives-errors/17105
**Category:** General Usage
**Created:** [November 2, 2018, 9:37pm UTC](https://discourse.julialang.org/t/imageview-gives-errors/17105 "2018-11-02T21:37:19Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![microlifecc](https://avatars.discourse-cdn.com/v4/letter/m/ed655f/32.png) [@microlifecc](https://discourse.julialang.org/u/microlifecc)
#### Post date: [November 2, 2018, 9:37pm UTC](https://discourse.julialang.org/t/imageview-gives-errors/17105/1 "2018-11-02T21:37:19Z")

</div>

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?

---

<div class="post-metadata">

### Author: ![y4lu](https://avatars.discourse-cdn.com/v4/letter/y/47e85d/32.png) [@y4lu](https://discourse.julialang.org/u/y4lu)
#### Post date: [November 3, 2018, 7:55am UTC](https://discourse.julialang.org/t/imageview-gives-errors/17105/2 "2018-11-03T07:55:25Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)
#### Post date: [November 3, 2018, 12:21pm UTC](https://discourse.julialang.org/t/imageview-gives-errors/17105/3 "2018-11-03T12:21:19Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![lobingera](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lobingera/32/211_2.png) [@lobingera](https://discourse.julialang.org/u/lobingera)
#### Post date: [November 3, 2018, 1:37pm UTC](https://discourse.julialang.org/t/imageview-gives-errors/17105/4 "2018-11-03T13:37:45Z")

</div>

just a comment here,

> [@tim.holy](#):
>
> These are Gtk.jl and/or Cairo.jl errors

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

---

<div class="post-metadata">

### Author: ![Animadversio](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/animadversio/32/7411_2.png) [@Animadversio](https://discourse.julialang.org/u/Animadversio)
#### Post date: [March 24, 2019, 7:59pm UTC](https://discourse.julialang.org/t/imageview-gives-errors/17105/5 "2019-03-24T19:59:28Z")

</div>

Have just got exact same error as you. I suppose it’s a macOS error?  
Seems related to issue 271, which is caused by a precompiling error in Cairo. If you try to Pkg.build(“Cairo”) you will experience the same error.  
[https://github.com/JuliaGraphics/Cairo.jl/issues/271](https://github.com/JuliaGraphics/Cairo.jl/issues/271)
