JuliaPlots / MakieGallery.jl

Documentation and Example Gallery for Makie
http://makie.juliaplots.org/dev
Other
47 stars 27 forks source link

Testing MakieGallery fails due to "type Zip has no field a" #7

Closed glemieux closed 5 years ago

glemieux commented 5 years ago

In troubleshooting why MakieGallery wasn't being added even though the add MakieGallery seemed to work fine, I decided to test MakieGallery and this came back:

(v1.1) pkg> test MakieGallery
   Testing MakieGallery
 Resolving package versions...
    Status `/tmp/tmpAf5smv/Manifest.toml`
  [621f4979] AbstractFFTs v0.3.2
  [537997a7] AbstractPlotting v0.9.3
  [13072b0f] AxisAlgorithms v0.3.0
  [39de3d68] AxisArrays v0.3.0
  [9e28174c] BinDeps v0.8.10
  [b99e7846] BinaryProvider v0.5.3
  [631607c0] CMake v1.1.1
  [d5fb7624] CMakeWrapper v0.2.2
  [336ed68f] CSV v0.4.3
  [aafaddc9] CatIndices v0.2.0
  [324d7699] CategoricalArrays v0.5.2
  [944b1d66] CodecZlib v0.5.1
  [a2cac450] ColorBrewer v0.4.0
  [3da002f7] ColorTypes v0.7.5
  [c3611d14] ColorVectorSpace v0.6.2
  [5ae59095] Colors v0.9.5
  [34da2185] Compat v1.4.0
  [ed09eef8] ComputationalResources v0.3.0
  [8f4d0f93] Conda v1.1.1
  [d38c429a] Contour v0.5.1
  [150eb455] CoordinateTransformations v0.5.0
  [dc8bdbbb] CustomUnitRanges v0.2.0
  [a93c6f00] DataFrames v0.17.0
  [9a8bc11e] DataStreams v0.4.1
  [864edb3b] DataStructures v0.15.0
  [ffbed154] DocStringExtensions v0.6.0
  [e30172f5] Documenter v0.21.0
  [8f5d6c58] EzXML v0.9.0
  [4f61f5a4] FFTViews v0.2.0
  [7a1cc6ca] FFTW v0.2.4
  [5789e2e9] FileIO v1.0.5
  [53c48c17] FixedPointNumbers v0.5.3
  [b38be410] FreeType v2.1.1
  [663a7486] FreeTypeAbstraction v0.4.1
  [add2ef01] GDAL v0.2.0
  [f7f18e0c] GLFW v2.3.0
  [e9467ef8] GLMakie v0.0.4
  [4d00f742] GeometryTypes v0.7.2
  [a2bd30eb] Graphics v0.4.0
  [d9be37ee] Homebrew v0.7.1
  [bbac6d45] IdentityRanges v0.2.0
  [2803e5a7] ImageAxes v0.5.0
  [a09fc81d] ImageCore v0.7.3
  [6a3955dd] ImageFiltering v0.5.2
  [6218d12a] ImageMagick v0.7.1
  [02fcd773] ImageTransformations v0.7.1
  [9b13fd28] IndirectArrays v0.5.0
  [a98d9a8b] Interpolations v0.11.1
  [8197267c] IntervalSets v0.3.1
  [c8e1da08] IterTools v1.1.1
  [82899510] IteratorInterfaceExtensions v0.1.1
  [682c06a0] JSON v0.20.0
  [1914dd2f] MacroTools v0.4.4
  [ee78f7c6] Makie v0.9.1
  [dbd62bd0] MakieGallery v0.0.2
  [dbb5928d] MappedArrays v0.2.1
  [7269a6da] MeshIO v0.3.1
  [e1d29d7a] Missings v0.4.0
  [78c3b35d] Mocking v0.5.7
  [66fc600b] ModernGL v1.0.0
  [77ba4419] NaNMath v0.3.2
  [4d1e1d77] Nullables v0.0.8
  [510215fc] Observables v0.2.3
  [6fe1bfb0] OffsetArrays v0.9.1
  [bac558e1] OrderedCollections v1.0.2
  [19eb6ba3] Packing v0.3.0
  [5432bcbf] PaddedViews v0.4.2
  [d96e819e] Parameters v0.10.3
  [69de0a69] Parsers v0.2.16
  [995b91a9] PlotUtils v0.5.5
  [27ebfcd6] Primes v0.4.0
  [dca85d43] QuartzImageIO v0.5.2
  [df47a6cb] RData v0.6.0
  [ce6b1742] RDatasets v0.6.1
  [b3c3ace0] RangeArrays v0.3.1
  [c84ed2f1] Ratios v0.3.0
  [189a3867] Reexport v0.2.0
  [ae029012] Requires v0.5.2
  [6038ab10] Rotations v0.10.0
  [992d4aef] Showoff v0.2.1
  [73760f76] SignedDistanceFields v0.4.0
  [699a6c99] SimpleTraits v0.8.0
  [a2af1166] SortingAlgorithms v0.3.1
  [276daf66] SpecialFunctions v0.7.2
  [90137ffa] StaticArrays v0.10.2
  [2913bbd2] StatsBase v0.27.0
  [3783bdb8] TableTraits v0.4.1
  [bd369af6] Tables v0.1.14
  [06e1c1a7] TiledIteration v0.2.3
  [f269a46b] TimeZones v0.8.5
  [3bb67fe8] TranscodingStreams v0.8.1
  [30578b45] URIParser v0.4.0
  [1cfade01] UnicodeFun v0.4.0
  [81def892] VersionParsing v1.1.3
  [ea10d353] WeakRefStrings v0.5.4
  [efce3f68] WoodburyMatrices v0.4.1
  [2a0f44e3] Base64  [`@stdlib/Base64`]
  [ade2ca70] Dates  [`@stdlib/Dates`]
  [8bb1440f] DelimitedFiles  [`@stdlib/DelimitedFiles`]
  [8ba89e20] Distributed  [`@stdlib/Distributed`]
  [9fa8497b] Future  [`@stdlib/Future`]
  [b77e0a4c] InteractiveUtils  [`@stdlib/InteractiveUtils`]
  [76f85450] LibGit2  [`@stdlib/LibGit2`]
  [8f399da3] Libdl  [`@stdlib/Libdl`]
  [37e2e46d] LinearAlgebra  [`@stdlib/LinearAlgebra`]
  [56ddb016] Logging  [`@stdlib/Logging`]
  [d6f4376e] Markdown  [`@stdlib/Markdown`]
  [a63ad114] Mmap  [`@stdlib/Mmap`]
  [44cfe95a] Pkg  [`@stdlib/Pkg`]
  [de0858da] Printf  [`@stdlib/Printf`]
  [9abbd945] Profile  [`@stdlib/Profile`]
  [3fa0cd96] REPL  [`@stdlib/REPL`]
  [9a3f8284] Random  [`@stdlib/Random`]
  [ea8e919c] SHA  [`@stdlib/SHA`]
  [9e88b42a] Serialization  [`@stdlib/Serialization`]
  [1a1011a3] SharedArrays  [`@stdlib/SharedArrays`]
  [6462fe0b] Sockets  [`@stdlib/Sockets`]
  [2f01184e] SparseArrays  [`@stdlib/SparseArrays`]
  [10745b16] Statistics  [`@stdlib/Statistics`]
  [8dfed614] Test  [`@stdlib/Test`]
  [cf7118a7] UUIDs  [`@stdlib/UUIDs`]
  [4ec0a83e] Unicode  [`@stdlib/Unicode`]
[ Info: starting from index 1
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 54961  100 54961    0     0   261k      0 --:--:-- --:--:-- --:--:--  261k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  106k  100  106k    0     0   127k      0 --:--:-- --:--:-- --:--:--  127k
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 1475k  100 1475k    0     0  1355k      0  0:00:01  0:00:01 --:--:-- 1355k
ERROR: LoadError: LoadError: type Zip has no field a
Stacktrace:
 [1] getproperty(::Any, ::Symbol) at ./sysimg.jl:18
 [2] (::getfield(AbstractPlotting, Symbol("##561#563")){Tuple{Base.Iterators.Zip{Tuple{Array{Float64,1},Array{String,1}}},Base.Iterators.Zip{Tuple{Array{Float64,1},Array{String,1}}},Base.Iterators.Zip{Tuple{Array{Float64,1},Array{String,1}}}},Tuple{Float32,Float32,Float32},Tuple{Float32,Float32,Float32}})(::Int64) at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/basic_recipes/axis.jl:493
 [3] iterate at ./generator.jl:47 [inlined]
 [4] _collect at ./array.jl:619 [inlined]
 [5] collect_similar at ./array.jl:548 [inlined]
 [6] map at ./abstractarray.jl:2018 [inlined]
 [7] draw_axis3d(::Annotations{...}, ::LineSegments{...}, ::Tuple{Tuple{Float32,Float32},Tuple{Float32,Float32},Tuple{Float32,Float32}}, ::Tuple{Array{Float64,1},Array{Float64,1},Array{Float64,1}}, ::Tuple{Array{String,1},Array{String,1},Array{String,1}}, ::Tuple{Bool,Bool,Bool}, ::Vararg{Any,N} where N) at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/basic_recipes/axis.jl:493
 [8] map_once(::Function, ::Observables.Observable{Annotations{...}}, ::Observables.Observable{LineSegments{...}}, ::Vararg{Observables.Observable,N} where N) at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/interaction/nodes.jl:82
 [9] plot!(::Scene, ::Type{Axis3D{...}}, ::Attributes, ::Observables.Observable{GeometryTypes.HyperRectangle{3,Float32}}) at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/basic_recipes/axis.jl:584
 [10] axis3d!(::Scene, ::Attributes, ::Observables.Observable{GeometryTypes.HyperRectangle{3,Float32}}) at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/recipes.jl:53
 [11] add_axis!(::Scene) at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/interfaces.jl:624
 [12] plot!(::Scene, ::Type{Mesh{...}}, ::Attributes, ::Tuple{Observables.Observable{GLNormalUVMesh}}, ::Observables.Observable{Tuple{GLNormalUVMesh}}) at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/interfaces.jl:552
 [13] #plot!#193(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Scene, ::Type{Mesh{...}}, ::Attributes, ::GLNormalUVMesh) at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/interfaces.jl:507
 [14] plot! at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/interfaces.jl:477 [inlined]
 [15] #mesh#126 at /home/gregorylemieux/.julia/packages/AbstractPlotting/MaWhS/src/recipes.jl:17 [inlined]
 [16] (::getfield(AbstractPlotting, Symbol("#kw##mesh")))(::NamedTuple{(:color, :shading),Tuple{Array{ColorTypes.RGB{FixedPointNumbers.Normed{UInt8,8}},2},Bool}}, ::typeof(mesh), ::GLNormalUVMesh) at ./none:0
 [17] top-level scope at none:0
 [18] include_string(::Module, ::String, ::String) at ./loading.jl:1008
 [19] #eval_example#74(::Base.Iterators.Pairs{Symbol,getfield(MakieGallery, Symbol("#output_path#99")){String},Tuple{Symbol},NamedTuple{(:outputfile,),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String}}}}, ::Function, ::MakieGallery.CellEntry) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/database.jl:536
 [20] #eval_example at ./none:0 [inlined]
 [21] (::getfield(MakieGallery, Symbol("##78#79")){Base.Iterators.Pairs{Symbol,getfield(MakieGallery, Symbol("#output_path#99")){String},Tuple{Symbol},NamedTuple{(:outputfile,),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String}}}},getfield(MakieGallery, Symbol("##98#101")){Tuple{Int64,Int64},String}})(::MakieGallery.CellEntry) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/database.jl:550
 [22] #enumerate_examples#61(::Int64, ::Nothing, ::Function, ::getfield(MakieGallery, Symbol("##78#79")){Base.Iterators.Pairs{Symbol,getfield(MakieGallery, Symbol("#output_path#99")){String},Tuple{Symbol},NamedTuple{(:outputfile,),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String}}}},getfield(MakieGallery, Symbol("##98#101")){Tuple{Int64,Int64},String}}) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/database.jl:498
 [23] #enumerate_examples at ./none:0 [inlined]
 [24] #eval_examples#77(::Int64, ::Nothing, ::Base.Iterators.Pairs{Symbol,getfield(MakieGallery, Symbol("#output_path#99")){String},Tuple{Symbol},NamedTuple{(:outputfile,),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String}}}}, ::Function, ::getfield(MakieGallery, Symbol("##98#101")){Tuple{Int64,Int64},String}) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/database.jl:549
 [25] (::getfield(MakieGallery, Symbol("#kw##eval_examples")))(::NamedTuple{(:outputfile, :start),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String},Int64}}, ::typeof(MakieGallery.eval_examples), ::Function) at ./none:0
 [26] #record_examples#96(::Tuple{Int64,Int64}, ::Bool, ::Bool, ::Function, ::String) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/io.jl:190
 [27] record_examples(::String) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/io.jl:175
 [28] top-level scope at none:0
 [29] include at ./boot.jl:326 [inlined]
 [30] include_relative(::Module, ::String) at ./loading.jl:1038
 [31] include(::Module, ::String) at ./sysimg.jl:29
 [32] include(::String) at ./client.jl:403
 [33] top-level scope at none:0
in expression starting at image_on_geometry__earth_:11
in expression starting at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/test/runtests.jl:20
ERROR: Package MakieGallery errored during testing
SimonDanisch commented 5 years ago

fixed on ]add AbstractPlotting#master;)

glemieux commented 5 years ago

Thanks @SimonDanisch . Updated AbstractPlotting and tested that and that ran clean. Reran test on MakieGallery and I have a new error. It starts running through the tests and then aborts here (I've only copied in the part of the test in which it fails; let me know if you need more info):

plots:
subscenes:
   *scene(500px, 440px)
   *scene(500px, 60px)ERROR: LoadError: LoadError: IOError: could not spawn `7z x -y prec.zip -oprec`: no such file or directory (ENOENT)
Stacktrace:
 [1] _spawn_primitive(::String, ::Cmd, ::Array{Any,1}) at ./process.jl:400
 [2] #505 at ./process.jl:413 [inlined]
 [3] setup_stdios(::getfield(Base, Symbol("##505#506")){Cmd}, ::Array{Any,1}) at ./process.jl:497
 [4] _spawn at ./process.jl:412 [inlined]
 [5] #run#515(::Bool, ::Function, ::Cmd) at ./process.jl:725
 [6] run at ./process.jl:724 [inlined]
 [7] unzip(::String, ::String) at ./worldclim_visualization:18
 [8] load_dataset(::String) at ./worldclim_visualization:47
 [9] top-level scope at none:0
 [10] include_string(::Module, ::String, ::String) at ./loading.jl:1008
 [11] #eval_example#74(::Base.Iterators.Pairs{Symbol,getfield(MakieGallery, Symbol("#output_path#99")){String},Tuple{Symbol},NamedTuple{(:outputfile,),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String}}}}, ::Function, ::MakieGallery.CellEntry) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/database.jl:536
 [12] #eval_example at ./none:0 [inlined]
 [13] (::getfield(MakieGallery, Symbol("##78#79")){Base.Iterators.Pairs{Symbol,getfield(MakieGallery, Symbol("#output_path#99")){String},Tuple{Symbol},NamedTuple{(:outputfile,),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String}}}},getfield(MakieGallery, Symbol("##98#101")){Tuple{Int64,Int64},String}})(::MakieGallery.CellEntry) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/database.jl:550
 [14] #enumerate_examples#61(::Int64, ::Nothing, ::Function, ::getfield(MakieGallery, Symbol("##78#79")){Base.Iterators.Pairs{Symbol,getfield(MakieGallery, Symbol("#output_path#99")){String},Tuple{Symbol},NamedTuple{(:outputfile,),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String}}}},getfield(MakieGallery, Symbol("##98#101")){Tuple{Int64,Int64},String}}) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/database.jl:498
 [15] #enumerate_examples at ./none:0 [inlined]
 [16] #eval_examples#77(::Int64, ::Nothing, ::Base.Iterators.Pairs{Symbol,getfield(MakieGallery, Symbol("#output_path#99")){String},Tuple{Symbol},NamedTuple{(:outputfile,),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String}}}}, ::Function, ::getfield(MakieGallery, Symbol("##98#101")){Tuple{Int64,Int64},String}) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/database.jl:549
 [17] (::getfield(MakieGallery, Symbol("#kw##eval_examples")))(::NamedTuple{(:outputfile, :start),Tuple{getfield(MakieGallery, Symbol("#output_path#99")){String},Int64}}, ::typeof(MakieGallery.eval_examples), ::Function) at ./none:0
 [18] #record_examples#96(::Tuple{Int64,Int64}, ::Bool, ::Bool, ::Function, ::String) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/io.jl:190
 [19] record_examples(::String) at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/src/io.jl:175
 [20] top-level scope at none:0
 [21] include at ./boot.jl:326 [inlined]
 [22] include_relative(::Module, ::String) at ./loading.jl:1038
 [23] include(::Module, ::String) at ./sysimg.jl:29
 [24] include(::String) at ./client.jl:403
 [25] top-level scope at none:0
in expression starting at worldclim_visualization:53
in expression starting at /home/gregorylemieux/.julia/packages/MakieGallery/86acG/test/runtests.jl:20
ERROR: Package MakieGallery errored during testing