ImageView.jl compile, error

Error when compiling ImageView.jl using Julia 0.6.4, Linux

julia> using ImageView
INFO: Precompiling module ImageView.
Failed to connect to Mir: Failed to connect to server socket: No such file or directory
Unable to init server: Could not connect: Connection refused
ERROR: LoadError: InitError: Cannot open display:
Stacktrace:
[1] Gtk.GLib.GError(::Gtk.##235#236) at /home/liye/.julia/v0.6/Gtk/src/GLib/gerror.jl:17
[2] init() at /home/liye/.julia/v0.6/Gtk/src/events.jl:10
[3] _include_from_serialized(::String) at ./loading.jl:157
[4] _require_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:200
[5] _require_search_from_serialized(::Int64, ::Symbol, ::String, ::Bool) at ./loading.jl:236
[6] _require(::Symbol) at ./loading.jl:441
[7] require(::Symbol) at ./loading.jl:405
[8] include_from_node1(::String) at ./loading.jl:576
[9] include(::String) at ./sysimg.jl:14
[10] anonymous at ./:2
during initialization of module Gtk
while loading /home/liye/.julia/v0.6/ImageView/src/ImageView.jl, in expression starting on line 7
ERROR: Failed to precompile ImageView to /home/liye/.julia/lib/v0.6/ImageView.ji.
Stacktrace:
[1] compilecache(::String) at ./loading.jl:710
[2] _require(::Symbol) at ./loading.jl:497
[3] require(::Symbol) at ./loading.jl:405

Version information:

Julia Version 0.6.4
Commit 9d11f62bcb (2018-07-09 19:09 UTC)
Platform Info:
OS: Linux (x86_64-pc-linux-gnu)
CPU: Intel(R) Xeon(R) CPU X5650 @ 2.67GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Nehalem MAX_THREADS=16)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, westmere)

Thanks!

You’ve posted this here and here also. In the first one I asked a question, and I’m waiting with bated breath for the answer.

2 Likes

Thank you so much! @tim.holy Sorry for the late reply! I logged a remote Linux server from the Window 7 laptop, not as a super user. This should be the problem, which cause Gtk.jl problems.
I found that the image can be shown automatically in IJulia, and no need to install ImageView.jl. The package Images.jl is extremely useful and convenient. Thanks for your great work! I have also replied on the Issue-report page of the two mentioned packages. Regards!