Skip to content
This repository has been archived by the owner on Apr 28, 2021. It is now read-only.

MAC Plots.jl warning and testing errors #171

Open
GravityAssisted opened this issue May 11, 2017 · 5 comments
Open

MAC Plots.jl warning and testing errors #171

GravityAssisted opened this issue May 11, 2017 · 5 comments

Comments

@GravityAssisted
Copy link

Hi I am trying to install GLVisualize on mac and I keep on getting this warning and then errors:

WARNING: Plots.jl is not installed, excluding a lot of interesting examples from the tests
and a nice summary.
Please consider doing: `Pkg.add("Plots"); Pkg.checkout("Plots", "dev")`

ERROR: LoadError: LoadError: LoadError: Unable to load 

libwand (/Users/arora/.julia/v0.5/Homebrew/deps/usr/lib/libMagickWand-6.Q16.dylib)

Please re-run Pkg.build(package), and restart Julia.
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
 in macro expansion; at ./none:2 [inlined]
 in anonymous at ./<missing>:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in eval(::Module, ::Any) at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
 in process_options(::Base.JLOptions) at ./client.jl:239
 in _start() at ./client.jl:318
 in _start() at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
while loading /Users/arora/.julia/v0.5/ImageMagick/src/../deps/deps.jl, in expression starting on line 18
while loading /Users/arora/.julia/v0.5/ImageMagick/src/libmagickwand.jl, in expression starting on line 26
while loading /Users/arora/.julia/v0.5/ImageMagick/src/ImageMagick.jl, in expression starting on line 18
Errors encountered while loading "/Users/arora/.julia/v0.5/GLVisualize/assets/rewind_inactive.png".
All errors:
   FileIO.NotInstalledError(:QuartzImageIO,"")
   ErrorException("Failed to precompile ImageMagick to /Users/arora/.julia/lib/v0.5/ImageMagick.ji.")
Fatal error:
Library "QuartzImageIO" is not installed but is recommended as a library to load format: ".png"
ERROR: LoadError: LoadError: QuartzImageIO is not installed.

 in compilecache(::String) at ./loading.jl:593
 in require(::Symbol) at ./loading.jl:422
 in require(::Symbol) at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
 in eval(::Module, ::Any) at ./boot.jl:234
 in eval(::Module, ::Any) at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
 in checked_import(::Symbol) at /Users/arora/.julia/v0.5/FileIO/src/loadsave.jl:13
 in #load#17(::Array{Any,1}, ::Function, ::FileIO.File{FileIO.DataFormat{:PNG}}) at /Users/arora/.julia/v0.5/FileIO/src/loadsave.jl:83
 in load(::FileIO.File{FileIO.DataFormat{:PNG}}) at /Users/arora/.julia/v0.5/FileIO/src/loadsave.jl:75
 in #load#13(::Array{Any,1}, ::Function, ::String) at /Users/arora/.julia/v0.5/FileIO/src/loadsave.jl:45
 in #loadasset#1(::Array{Any,1}, ::Function, ::String, ::Vararg{String,N}) at /Users/arora/.julia/v0.5/GLVisualize/src/GLVisualize.jl:69
 in #5 at /Users/arora/.julia/v0.5/GLVisualize/src/../examples/ExampleRunner.jl:141 [inlined]
 in next at ./generator.jl:26 [inlined]
 in _collect(::Array{String,1}, ::Base.Generator{Array{String,1},ExampleRunner.##5#10}, ::Base.EltypeUnknown, ::Base.HasShape) at ./array.jl:320
 in create_screens(::GLWindow.Screen) at /Users/arora/.julia/v0.5/GLVisualize/src/../examples/ExampleRunner.jl:140
 in #RunnerConfig#15(::Tuple{Int64,Int64}, ::Bool, ::Array{String,1}, ::Array{String,1}, ::Int64, ::Float64, ::Int64, ::String, ::Bool, ::Bool, ::Bool, ::GLWindow.Screen, ::Type{T}) at /Users/arora/.julia/v0.5/GLVisualize/src/../examples/ExampleRunner.jl:275
 in (::Core.#kw#Type)(::Array{Any,1}, ::Type{ExampleRunner.RunnerConfig}) at ./<missing>:0
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
 in include_from_node1(::String) at ./loading.jl:488
 in include_from_node1(::String) at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
 in process_options(::Base.JLOptions) at ./client.jl:262
 in _start() at ./client.jl:318
 in _start() at /Users/arora/src/julia_v5p/julia/usr/lib/julia/sys.dylib:?
while loading /Users/arora/.julia/v0.5/GLVisualize/test/test_interactive.jl, in expression starting on line 30
while loading /Users/arora/.julia/v0.5/GLVisualize/test/runtests.jl, in expression starting on line 13

Here is my version info:

Julia Version 0.5.1-pre+31
Commit 6a1e339 (2016-11-17 17:50 UTC)
Platform Info:
  System: Darwin (x86_64-apple-darwin15.0.0)
  CPU: Intel(R) Core(TM) i7-4980HQ CPU @ 2.80GHz
  WORD_SIZE: 64
  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
  LAPACK: libopenblas64_
  LIBM: libopenlibm
  LLVM: libLLVM-3.7.1 (ORCJIT, haswell)
@GravityAssisted
Copy link
Author

BTW: I have Plots.jl already installed.

@SimonDanisch
Copy link
Member

That's just a warning! The real error is, that ImageMagick isn't build correctly..
Please re-run Pkg.build("ImageMagick")... And maybe update it!

@GravityAssisted
Copy link
Author

Thanks @SimonDanisch . After running the following commands to fix ImageMagick and then reinstalling GLVisualize, it seems to work. I am still getting the Plots.jl warning, even though I have Plots already installed.

brew = Pkg.dir("Homebrew", "deps", "usr", "bin", "brew")
run(`$brew remove imagemagick@6`)
run(`$brew prune`)
Pkg.build("ImageMagick")

@SimonDanisch
Copy link
Member

Uh, for some reason it seems I've disabled the Plot detection:
https://github.com/JuliaGL/GLVisualize.jl/blob/master/examples/ExampleRunner.jl#L22
Let me try out, if the plots backend is functional right now

@mkborregaard
Copy link

It isn't right now #175

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants