JuliaIO / ImageMagick.jl

Thin Wrapper for the library ImageMagick
Other
53 stars 37 forks source link

ImageMagick test fails on Julia 1.0 #126

Closed GravityAssisted closed 4 years ago

GravityAssisted commented 6 years ago

I was testing Plots.jl on Julia 1.0 and found that ImageMagick fails on Juli-1.0. just wanted to bring to this to light. Dump below: ` ERROR: LoadError: UndefVarError: ctranspose not defined Stacktrace: [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13 [2] top-level scope at none:0 [3] include at ./boot.jl:317 [inlined] [4] include_relative(::Module, ::String) at ./loading.jl:1038 [5] include(::Module, ::String) at ./sysimg.jl:29 [6] top-level scope at none:2 [7] eval at ./boot.jl:319 [inlined] [8] eval(::Expr) at ./client.jl:389 [9] top-level scope at ./none:3 in expression starting at /Users/arora/.julia/packages/ImageCore/5V03p/src/ImageCore.jl:132 ERROR: LoadError: Failed to precompile ImageCore [a09fc81d-aa75-5fe9-8630-4744c3626534] to /Users/arora/.julia/compiled/v1.0/ImageCore/cqNLm.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:1184 [4] _require(::Base.PkgId) at ./logging.jl:311 [5] require(::Base.PkgId) at ./loading.jl:852 [6] macro expansion at ./logging.jl:311 [inlined] [7] require(::Module, ::Symbol) at ./loading.jl:834 [8] include at ./boot.jl:317 [inlined] [9] include_relative(::Module, ::String) at ./loading.jl:1038 [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 /Users/arora/.julia/packages/Images/HB5LL/src/Images.jl:45 ERROR: LoadError: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to /Users/arora/.julia/compiled/v1.0/Images/H8Vxc.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:1184 [4] _require(::Base.PkgId) at ./logging.jl:311 [5] require(::Base.PkgId) at ./loading.jl:852 [6] macro expansion at ./logging.jl:311 [inlined] [7] require(::Module, ::Symbol) at ./loading.jl:834 [8] include at ./boot.jl:317 [inlined] [9] include_relative(::Module, ::String) at ./loading.jl:1038 [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 /Users/arora/.julia/packages/ImageMagick/Z7NvQ/src/ImageMagick.jl:5 ERROR: LoadError: Failed to precompile ImageMagick [6218d12a-5da1-5696-b52f-db25d2ecc6d1] to /Users/arora/.julia/compiled/v1.0/ImageMagick/0LbNX.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:1184 [4] _require(::Base.PkgId) at ./logging.jl:311 [5] require(::Base.PkgId) at ./loading.jl:852 [6] macro expansion at ./logging.jl:311 [inlined] [7] require(::Module, ::Symbol) at ./loading.jl:834 [8] include at ./boot.jl:317 [inlined] [9] include_relative(::Module, ::String) at ./loading.jl:1038 [10] include(::Module, ::String) at ./sysimg.jl:29 [11] include(::String) at ./client.jl:388 [12] top-level scope at none:0 in expression starting at /Users/arora/.julia/packages/ImageMagick/Z7NvQ/test/runtests.jl:1 ERROR: Package ImageMagick errored during testing `

gzhang8 commented 6 years ago

The same error

dvp2015 commented 6 years ago

There's a bit different error:

(v1.0) pkg> test ImageMagick Testing ImageMagick Resolving package versions... Installed ZipFile ─ v0.7.0 Status /tmp/tmpptRFT7/Manifest.toml [621f4979] AbstractFFTs v0.3.2 [13072b0f] AxisAlgorithms v0.3.0 [39de3d68] AxisArrays v0.3.0 [9e28174c] BinDeps v0.8.10 [b99e7846] BinaryProvider v0.4.1 [aafaddc9] CatIndices v0.2.0 [3da002f7] ColorTypes v0.7.4 [c3611d14] ColorVectorSpace v0.6.1 [5ae59095] Colors v0.9.3 [34da2185] Compat v1.0.1 [ed09eef8] ComputationalResources v0.3.0 [8f4d0f93] Conda v1.0.1 [150eb455] CoordinateTransformations v0.5.0 [dc8bdbbb] CustomUnitRanges v0.2.0 [864edb3b] DataStructures v0.11.0 [b4f34e82] Distances v0.7.3 [4f61f5a4] FFTViews v0.2.0 [7a1cc6ca] FFTW v0.2.4 [5789e2e9] FileIO v1.0.1 [53c48c17] FixedPointNumbers v0.5.2 [a2bd30eb] Graphics v0.3.0 [d9be37ee] Homebrew v0.7.0 [bbac6d45] IdentityRanges v0.2.0 [2803e5a7] ImageAxes v0.5.0 [a09fc81d] ImageCore v0.7.1 [51556ac3] ImageDistances v0.1.0 [6a3955dd] ImageFiltering v0.4.1 [6218d12a] ImageMagick v0.5.2 [bc367c6b] ImageMetadata v0.5.0 [787d08f9] ImageMorphology v0.1.1 [02fcd773] ImageTransformations v0.5.0 [916415d5] Images v0.14.0 [9b13fd28] IndirectArrays v0.5.0 [a98d9a8b] Interpolations v0.8.0 [8197267c] IntervalSets v0.2.0 [c8e1da08] IterTools v1.0.0 [682c06a0] JSON v0.19.0 [1914dd2f] MacroTools v0.4.4 [dbb5928d] MappedArrays v0.2.1 [e1d29d7a] Missings v0.3.0 [77ba4419] NaNMath v0.3.2 [6fe1bfb0] OffsetArrays v0.8.1 [5432bcbf] PaddedViews v0.4.1 [92933f4c] ProgressMeter v0.6.0 [b3c3ace0] RangeArrays v0.3.1 [c84ed2f1] Ratios v0.3.0 [189a3867] Reexport v0.2.0 [ae029012] Requires v0.5.2 [6038ab10] Rotations v0.8.0 [b9d75638] SIUnits v0.1.0 [9966252f] ShowItLikeYouBuildIt v0.2.0 [699a6c99] SimpleTraits v0.8.0 [a2af1166] SortingAlgorithms v0.3.1 [276daf66] SpecialFunctions v0.7.0 [90137ffa] StaticArrays v0.8.3 [2913bbd2] StatsBase v0.25.0 [9b435220] TexExtensions v0.1.0 [06e1c1a7] TiledIteration v0.2.3 [30578b45] URIParser v0.4.0 [81def892] VersionParsing v1.1.2 [efce3f68] WoodburyMatrices v0.4.1 [a5390f91] ZipFile v0.7.0 [2a0f44e3] Base64 [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Base64] [ade2ca70] Dates [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Dates] [8bb1440f] DelimitedFiles [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/DelimitedFiles] [8ba89e20] Distributed [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Distributed] [b77e0a4c] InteractiveUtils [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/InteractiveUtils] [76f85450] LibGit2 [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/LibGit2] [8f399da3] Libdl [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Libdl] [37e2e46d] LinearAlgebra [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/LinearAlgebra] [56ddb016] Logging [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Logging] [d6f4376e] Markdown [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Markdown] [a63ad114] Mmap [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Mmap] [44cfe95a] Pkg [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Pkg] [de0858da] Printf [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Printf] [3fa0cd96] REPL [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/REPL] [9a3f8284] Random [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Random] [ea8e919c] SHA [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SHA] [9e88b42a] Serialization [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Serialization] [1a1011a3] SharedArrays [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SharedArrays] [6462fe0b] Sockets [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Sockets] [2f01184e] SparseArrays [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/SparseArrays] [10745b16] Statistics [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Statistics] [8dfed614] Test [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Test] [cf7118a7] UUIDs [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/UUIDs] [4ec0a83e] Unicode [/opt/julia-1.0.0/bin/../share/julia/stdlib/v1.0/Unicode] WARNING: could not import Base.atan2 into Images WARNING: could not import Base.ctranspose into Images WARNING: could not import Base.fft into Images WARNING: could not import Base.ifft into Images WARNING: could not import Base.linearindexing into Images WARNING: could not import Base.mimewritable into Images WARNING: could not import Base.showcompact into Images WARNING: could not import Base.squeeze into Images WARNING: could not import Base.atan2 into ColorVectorSpace WARNING: could not import LinearAlgebra.gradient into Interpolations WARNING: could not import Base.start into ImageTransformations WARNING: could not import Base.next into ImageTransformations WARNING: could not import Base.done into ImageTransformations ┌ Warning: Package Images does not have TiledIteration in its dependencies: │ - If you have Images checked out for development and have │ added TiledIteration as a dependency but haven't updated your primary │ environment's manifest file, try Pkg.resolve(). │ - Otherwise you may need to report an issue with Images └ Loading TiledIteration into Images from project dependency, future warnings for Images are suppressed. ERROR: LoadError: LoadError: UndefVarError: indices not defined Stacktrace: [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13 [2] top-level scope at none:0 [3] include at ./boot.jl:317 [inlined] [4] include_relative(::Module, ::String) at ./loading.jl:1038 [5] include at ./sysimg.jl:29 [inlined] [6] include(::String) at /home/dvp/.julia/packages/Images/HB5LL/src/Images.jl:3 [7] top-level scope at none:0 [8] include at ./boot.jl:317 [inlined] [9] include_relative(::Module, ::String) at ./loading.jl:1038 [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/dvp/.julia/packages/Images/HB5LL/src/labeledarrays.jl:34 in expression starting at /home/dvp/.julia/packages/Images/HB5LL/src/Images.jl:116 ERROR: LoadError: Failed to precompile Images [916415d5-f1e6-5110-898d-aaa5f9f070e0] to /home/dvp/.julia/compiled/v1.0/Images/H8Vxc.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:1184 [4] _require(::Base.PkgId) at ./logging.jl:311 [5] require(::Base.PkgId) at ./loading.jl:852 [6] macro expansion at ./logging.jl:311 [inlined] [7] require(::Module, ::Symbol) at ./loading.jl:834 [8] include at ./boot.jl:317 [inlined] [9] include_relative(::Module, ::String) at ./loading.jl:1038 [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/dvp/.julia/packages/ImageMagick/Z7NvQ/src/ImageMagick.jl:5 ERROR: LoadError: Failed to precompile ImageMagick [6218d12a-5da1-5696-b52f-db25d2ecc6d1] to /home/dvp/.julia/compiled/v1.0/ImageMagick/0LbNX.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:1184 [4] _require(::Base.PkgId) at ./logging.jl:311 [5] require(::Base.PkgId) at ./loading.jl:852 [6] macro expansion at ./logging.jl:311 [inlined] [7] require(::Module, ::Symbol) at ./loading.jl:834 [8] include at ./boot.jl:317 [inlined] [9] include_relative(::Module, ::String) at ./loading.jl:1038 [10] include(::Module, ::String) at ./sysimg.jl:29 [11] include(::String) at ./client.jl:388 [12] top-level scope at none:0 in expression starting at /home/dvp/.julia/packages/ImageMagick/Z7NvQ/test/runtests.jl:1 ERROR: Package ImageMagick errored during testing

(v1.0) pkg> ^C

timholy commented 4 years ago

These errors should be fixed if you use Julia 1.3+