# Help tring to understand error 666

**URL:** <https://discourse.julialang.org/t/help-tring-to-understand-error-666/2909>\
**Category:** Visualization\
**Tags:** question\
**Created:** [March 27, 2017, 4:09pm UTC](https://discourse.julialang.org/t/help-tring-to-understand-error-666/2909 "2017-03-27T16:09:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![joa-quim](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/joa-quim/32/227_2.png) [@joa-quim](https://discourse.julialang.org/u/joa-quim)\
**Post date:** [March 27, 2017, 4:09pm UTC](https://discourse.julialang.org/t/help-tring-to-understand-error-666/2909/1 "2017-03-27T16:09:08Z")

</div>

Hi, the problem here (Windows) seams to be an interference between two C libraries (GMT and ImageMagick).

This first command generates a map and works well

```julia
julia> using FileIO, GMT
julia> P = gmt("pscoast -R-10/-3/35/45 -G200 -W0.5p -Ba -JM12c -P");

```

but if I now try to import an image with `FileIO`

```julia
julia> img1=load("lixa.JPG");
Error encountered while loading "lixa.JPG".
Fatal error:
ERROR: RegistryKeyLookupFailed `CoderModulesPath' @ error/module.c/GetMagickModulePath/666
 in error(::ImageMagick.MagickWand) at c:\j\.julia\v0.5\ImageMagick\src\libmagickwand.jl:198
 in readimage(::ImageMagick.MagickWand, ::String) at c:\j\.julia\v0.5\ImageMagick\src\libmagickwand.jl:277
 in #load_#20(::Type{T}, ::String, ::Void, ::Function, ::String) at c:\j\.julia\v0.5\ImageMagick\src\ImageMagick.jl:72
 in #load#13(::Array{Any,1}, ::Function, ::FileIO.File{FileIO.DataFormat{:JPEG}}) at c:\j\.julia\v0.5\ImageMagick\src\ImageMagick.jl:51
 in anonymous at .\<missing>:?
 in eval(::Module, ::Any) at .\boot.jl:234
 in #load#17(::Array{Any,1}, ::Function, ::FileIO.File{FileIO.DataFormat{:JPEG}}) at c:\j\.julia\v0.5\FileIO\src\loadsave.jl:87
 in load(::FileIO.File{FileIO.DataFormat{:JPEG}}) at c:\j\.julia\v0.5\FileIO\src\loadsave.jl:75
 in #load#13(::Array{Any,1}, ::Function, ::String) at c:\j\.julia\v0.5\FileIO\src\loadsave.jl:45
 in load(::String) at c:\j\.julia\v0.5\FileIO\src\loadsave.jl:45

```

If I just change the order of the operations than everything works well

```julia
julia> using FileIO, GMT
julia> img1=load("lixa.JPG");
julia> P = gmt("pscoast -R-10/-3/35/45 -G200 -W0.5p -Ba -JM12c -P");
julia>

```

So clearly some dependency loaded by GMT conflicts with ImageMagick. What can that be?  
Any idea on what might be that 666 error `error/module.c/GetMagickModulePath/666`. The Beast?
