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

Fail to precompile Gadfly #1305

Closed
YP-Ye opened this issue Aug 12, 2019 · 2 comments
Closed

Fail to precompile Gadfly #1305

YP-Ye opened this issue Aug 12, 2019 · 2 comments

Comments

@YP-Ye
Copy link

YP-Ye commented Aug 12, 2019

It happens when I precompile Gadfly. The package Compose does not work well either, how can I solve it?

julia> using Gadfly
[ Info: Precompiling Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004]
ERROR: LoadError: LoadError: UndefVarError: xparse not defined
Stacktrace:
 [1] _float_from_bytes(::String, ::Int64, ::Int64) at C:\Users\YipengYe\.j
 [2] float_from_bytes at C:\Users\YipengYe\.julia\packages\JSON\d89fA\src\
 [3] number_from_bytes(::JSON.Parser.ParserContext{Dict{String,Any},Int64,, ::Int64, ::Int64) at C:\Users\YipengYe\.julia\packages\JSON\d89fA\src\Pa
 [4] parse_number(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,9fA\src\specialized.jl:156
 [5] parse_value(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nfA\src\Parser.jl:166
 [6] parse_object(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,9fA\src\Parser.jl:232
 [7] parse_value(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nfA\src\Parser.jl:168
 [8] parse_object(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,9fA\src\Parser.jl:232
 [9] parse_value(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,nfA\src\Parser.jl:168
 [10] parse_object(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true89fA\src\Parser.jl:232
 [11] parse_value(::JSON.Parser.ParserContext{Dict{String,Any},Int64,true,9fA\src\Parser.jl:168
 [12] #parse#1(::Type, ::Type{Int64}, ::Bool, ::Nothing, ::Function, ::Str
 [13] #108 at C:\Users\YipengYe\.julia\packages\JSON\d89fA\src\Parser.jl:4
 [14] #open#294(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{ream.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:1041
 [19] include at .\sysimg.jl:29 [inlined]
 [20] include(::String) at C:\Users\YipengYe\.julia\packages\Compose\UIDMc
 [21] top-level scope at none:0
 [22] include at .\boot.jl:317 [inlined]
 [23] include_relative(::Module, ::String) at .\loading.jl:1041
 [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 C:\Users\YipengYe\.julia\packages\Compose\UIDMc\
in expression starting at C:\Users\YipengYe\.julia\packages\Compose\UIDMc\
ERROR: LoadError: Failed to precompile Compose [a81c6b42-2e10-5240-aca2-a6
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] macro expansion at .\logging.jl:313 [inlined]
 [3] compilecache(::Base.PkgId, ::String) at .\loading.jl:1187
 [4] _require(::Base.PkgId) at .\logging.jl:311
 [5] require(::Base.PkgId) at .\loading.jl:855
 [6] macro expansion at .\logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at .\loading.jl:837
 [8] include at .\boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at .\loading.jl:1041
 [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 C:\Users\YipengYe\.julia\packages\Gadfly\09PWZ\s
ERROR: Failed to precompile Gadfly [c91e804a-d5a3-530f-b6f0-dfbca275c004] 
Stacktrace:
 [1] macro expansion at .\logging.jl:313 [inlined]
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1187
 [3] macro expansion at .\logging.jl:311 [inlined]
 [4] _require(::Base.PkgId) at .\loading.jl:944
 [5] require(::Base.PkgId) at .\loading.jl:855
 [6] macro expansion at .\logging.jl:311 [inlined]
 [7] require(::Module, ::Symbol) at .\loading.jl:837
@Mattriks
Copy link
Member

#1301

@YP-Ye
Copy link
Author

YP-Ye commented Aug 13, 2019

#1301

I solved it after removing JSON package.

@YP-Ye YP-Ye closed this as completed Aug 13, 2019
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