Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working : error when building Compose #361

Open
kirtsar opened this issue Oct 14, 2019 · 3 comments
Open

Not working : error when building Compose #361

kirtsar opened this issue Oct 14, 2019 · 3 comments

Comments

@kirtsar
Copy link

kirtsar commented Oct 14, 2019

Some errors with JSON and Compose:

julia> using Compose
[ Info: Precompiling Compose [a81c6b42-2e10-5240-aca2-a61377ecd94b]
ERROR: LoadError: LoadError: UndefVarError: xparse not defined
Stacktrace:
 [1] _float_from_bytes(::String, ::Int64, ::Int64) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:331
 [2] float_from_bytes at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:322 [inlined]
 [3] number_from_bytes(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState, ::Bool, ::JSON.Parser.MemoryParserState, ::Int64, ::Int64) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:377
 [4] parse_number(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState) at /home/kir/.julia/packages/JSON/d89fA/src/specialized.jl:156
 [5] parse_value(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:166
 [6] parse_object(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:232
 [7] parse_value(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:168
 [8] parse_object(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:232
 [9] parse_value(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:168
 [10] parse_object(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:232
 [11] parse_value(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nothing}, ::JSON.Parser.MemoryParserState) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:168
 [12] #parse#1(::Type, ::Type{Int64}, ::Bool, ::Nothing, ::Function, ::String) at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:463
 [13] #108 at /home/kir/.julia/packages/JSON/d89fA/src/Parser.jl:461 [inlined]
 [14] #open#294(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(Compose, Symbol("##108#109")), ::String) at ./iostream.jl:369
 [15] open(::Function, ::String) at ./iostream.jl:367
 [16] top-level scope at none:0
 [17] include at ./boot.jl:317 [inlined]
 [18] include_relative(::Module, ::String) at ./loading.jl:1038
 [19] include at ./sysimg.jl:29 [inlined]
 [20] include(::String) at /home/kir/.julia/packages/Compose/jNLbD/src/Compose.jl:1
 [21] top-level scope at none:0
 [22] include at ./boot.jl:317 [inlined]
 [23] include_relative(::Module, ::String) at ./loading.jl:1038
 [24] include(::Module, ::String) at ./sysimg.jl:29
 [25] top-level scope at none:2
 [26] eval at ./boot.jl:319 [inlined]
 [27] eval(::Expr) at ./client.jl:389
 [28] top-level scope at ./none:3
in expression starting at /home/kir/.julia/packages/Compose/jNLbD/src/fontfallback.jl:7
in expression starting at /home/kir/.julia/packages/Compose/jNLbD/src/Compose.jl:149
ERROR: Failed to precompile Compose [a81c6b42-2e10-5240-aca2-a61377ecd94b] to /home/kir/.julia/compiled/v1.0/Compose/sbiEw.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] macro expansion at ./logging.jl:311 [inlined]
 [5] _require(::Base.PkgId) at ./loading.jl:941
 [6] require(::Base.PkgId) at ./loading.jl:852
 [7] macro expansion at ./logging.jl:311 [inlined]
 [8] require(::Module, ::Symbol) at ./loading.jl:834

I've tried to remove JSON compeletely and re-build Compose, but this does not work.

(v1.0) pkg> status
    Status `~/.julia/environments/v1.0/Project.toml`
  [c3fe647b] AbstractAlgebra v0.5.4
  [15f4f7f2] AutoHashEquals v0.2.0
  [6e4b80f9] BenchmarkTools v0.4.3
  [9e28174c] BinDeps v0.8.10
  [336ed68f] CSV v0.4.3
  [159f3aea] Cairo v0.6.0
  [49dc2e85] Calculus v0.5.0
  [324d7699] CategoricalArrays v0.7.1
  [aaaa29a8] Clustering v0.13.3
  [5ae59095] Colors v0.9.6
  [861a8166] Combinatorics v0.7.0
  [a81c6b42] Compose v0.7.4 #master (https://github.com/GiovineItalia/Compose.jl.git)
  [d38c429a] Contour v0.5.1
  [a93c6f00] DataFrames v0.17.0
  [864edb3b] DataStructures v0.17.2
  [b4f34e82] Distances v0.8.2
  [31c24e10] Distributions v0.19.2
  [61744808] DynamicalSystems v1.3.0
  [6912e4f1] Espresso v0.6.0
  [86b6b26d] Evolutionary v0.2.0 #eb09056 (https://github.com/wildart/Evolutionary.jl.git)
  [7a1cc6ca] FFTW v0.3.0
  [587475ba] Flux v0.9.0
  [186bb1d3] Fontconfig v0.3.0
  [9dda63f9] ForceImport v0.0.3
  [da1fdf0e] FreqTables v0.3.1
  [f7f18e0c] GLFW v3.1.0
  [38e38edf] GLM v1.1.1
  [28b8d3ca] GR v0.41.0
  [92c85e6c] GSL v0.5.1
  [c91e804a] Gadfly v1.0.1
  [a2cc645c] GraphPlot v0.3.1
  [19dc6840] HCubature v1.4.0
  [cd3eb016] HTTP v0.8.6
  [3e1990a7] Hecke v0.6.5
  [09f84164] HypothesisTests v0.8.0
  [7073ff75] IJulia v1.20.0
  [6218d12a] ImageMagick v0.7.5
  [86fae568] ImageView v0.9.0
  [916415d5] Images v0.18.0
  [95701278] ImplicitEquations v0.6.0+ #master (https://github.com/jverzani/ImplicitEquations.jl.git)
  [d0351b0e] InspectDR v0.3.6
  [c601a237] Interact v0.10.3
  [c8e1da08] IterTools v1.2.0
  [a4bce56a] Iterators v0.0.0 #master (https://github.com/JuliaCollections/Iterators.jl.git)
  [4138dd39] JLD v0.9.1
  [4076af6c] JuMP v0.20.0
  [b964fa9f] LaTeXStrings v1.0.3
  [23fbe1c1] Latexify v0.12.0
  [7f8f8fb0] LearnBase v0.2.2
  [093fc24a] LightGraphs v1.3.0
  [30fc2ffe] LossFunctions v0.5.1
  [f0e99cf1] MLBase v0.8.0
  [9920b226] MLDataPattern v0.5.0
  [cc2ba9b6] MLDataUtils v0.5.0
  [add582a8] MLJ v0.1.0 #master (https://github.com/alan-turing-institute/MLJ.jl)
  [a7f614a8] MLJBase v0.1.0 #master (https://github.com/alan-turing-institute/MLJBase.jl)
  [d491faf4] MLJModels v0.1.0 #master (https://github.com/alan-turing-institute/MLJModels.jl)
  [ee78f7c6] Makie v0.9.3
  [7eb4fadd] Match v1.0.2
  [6f286f6a] MultivariateStats v0.7.0
  [76087f3c] NLopt v0.5.1
  [73a701b4] NamedTuples v5.0.0+ #master (https://github.com/JuliaData/NamedTuples.jl.git)
  [b8a86587] NearestNeighbors v0.4.3
  [2edaba10] Nemo v0.14.3
  [5fb14364] OhMyREPL v0.5.2
  [d96e819e] Parameters v0.12.0
  [f0f68f2c] PlotlyJS v0.13.0+ #master (https://github.com/sglyon/PlotlyJS.jl.git)
  [91a5bcdd] Plots v0.27.0
  [c8ed2632] PolynomialRings v0.4.0
  [f27b6e38] Polynomials v0.5.3
  [27ebfcd6] Primes v0.4.0
  [438e738f] PyCall v1.91.2
  [d330b81b] PyPlot v2.8.2
  [1a8c2f83] Query v0.12.2
  [612083be] Queryverse v0.3.1
  [ce6b1742] RDatasets v0.6.1
  [ee283ea6] Rebugger v0.3.2
  [93e0c654] Reduce v1.2.3
  [295af30f] Revise v2.2.2
  [329df15e] Rewrite v0.1.0 #master (https://github.com/HarrisonGrodin/Rewrite.jl)
  [f2b01f46] Roots v0.8.3
  [af85af4c] RowEchelon v0.1.1
  [3646fa90] ScikitLearn v0.5.1
  [55797a34] SimpleGraphs v0.3.0
  [276daf66] SpecialFunctions v0.8.0 #master (https://github.com/JuliaMath/SpecialFunctions.jl.git)
  [928aab9d] SpecialMatrices v1.0.0+ #master (https://github.com/JuliaMatrices/SpecialMatrices.jl.git)
  [c6b63f46] SpecialSets v0.1.0 #master (https://github.com/HarrisonGrodin/SpecialSets.jl)
  [90137ffa] StaticArrays v0.11.0
  [2913bbd2] StatsBase v0.32.0
  [4c63d2b9] StatsFuns v0.8.0
  [2cb19f9e] StatsKit v0.3.0
  [f3b207a7] StatsPlots v0.12.0
  [a4af3ec5] SyntaxTree v1.0.1
  [191fdcea] TOML v0.4.0 #master (https://github.com/wildart/TOML.jl)
  [5e47fb64] TestImages v0.5.1
  [b4f28e30] TikzGraphs v1.1.0
  [37f6aa50] TikzPictures v3.0.5
  [b8865327] UnicodePlots v1.1.0
  [ea8e919c] SHA 
@Mattriks
Copy link
Member

xparse is a function in Parsers.jl v0.3. One or more of your packages is holding Parsers back. It might be CSV: CSV v0.5 requires Parsers 0.3, but CSV 0.4.3 does not enforce a lower bound on Parsers. So try:

]up CSV

@kirtsar
Copy link
Author

kirtsar commented Oct 16, 2019

@Mattriks thanks, works as expected, but with different approach: up CSV and add Parsers does not help at all, but add Parsers#master works properly.

@Mattriks
Copy link
Member

Parsers.jl is up to v1.0.x, so I assume the above issue is outdated.

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

No branches or pull requests

2 participants