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

Failed to precompile Mocha when i "using Mocha" #249

Open
ghost opened this issue Sep 3, 2018 · 3 comments
Open

Failed to precompile Mocha when i "using Mocha" #249

ghost opened this issue Sep 3, 2018 · 3 comments

Comments

@ghost
Copy link

ghost commented Sep 3, 2018

[ Info: Precompiling Mocha [f17d6557-5fdd-57bf-a30c-27e301b4ff87]
ERROR: LoadError: InitError: ArgumentError: Unknown time zone "Asia/Shanghai"
Stacktrace:
[1] (::getfield(TimeZones, Symbol("##1#3")){SubString{String}})() at /Users/marxia/.julia/packages/TimeZones/wytr8/src/TimeZones.jl:70
[2] get!(::getfield(TimeZones, Symbol("##1#3")){SubString{String}}, ::Dict{AbstractString,Dates.TimeZone}, ::SubString{String}) at ./dict.jl:453
[3] Type at /Users/marxia/.julia/packages/TimeZones/wytr8/src/TimeZones.jl:64 [inlined]
[4] localzone() at /Users/marxia/.julia/packages/TimeZones/wytr8/src/local.jl:25
[5] Type at /Users/marxia/.julia/packages/Memento/QMKyB/src/formatters.jl:35 [inlined]
[6] #config!#71(::String, ::Dict{AbstractString,Int64}, ::Bool, ::Bool, ::Bool, ::Bool, ::Function, ::Memento.Logger, ::String) at /Users/marxia/.julia/packages/Memento/QMKyB/src/config.jl:39
[7] #config!#69 at /Users/marxia/.julia/packages/Memento/QMKyB/src/config.jl:36 [inlined]
[8] config! at /Users/marxia/.julia/packages/Memento/QMKyB/src/config.jl:25 [inlined]
[9] init() at /Users/marxia/.julia/packages/Memento/QMKyB/src/Memento.jl:67
[10] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:627
[11] macro expansion at ./logging.jl:312 [inlined]
[12] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:698
[13] _require(::Base.PkgId) at ./loading.jl:931
[14] require(::Base.PkgId) at ./loading.jl:852
[15] macro expansion at ./logging.jl:311 [inlined]
[16] require(::Module, ::Symbol) at ./loading.jl:834
[17] include at ./boot.jl:317 [inlined]
[18] include_relative(::Module, ::String) at ./loading.jl:1038
[19] include(::Module, ::String) at ./sysimg.jl:29
[20] top-level scope at none:2
[21] eval at ./boot.jl:319 [inlined]
[22] eval(::Expr) at ./client.jl:389
[23] top-level scope at ./none:3
during initialization of module Memento
in expression starting at /Users/marxia/.julia/dev/Mocha/src/Mocha.jl:3
ERROR: Failed to precompile Mocha [f17d6557-5fdd-57bf-a30c-27e301b4ff87] to /Users/marxia/.julia/compiled/v1.0/Mocha/Kv2xC.ji.
Stacktrace:
[1] macro expansion at ./logging.jl:313 [inlined]
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184
[3] macro expansion at ./logging.jl:311 [inlined]
[4] _require(::Base.PkgId) at ./loading.jl:941
[5] require(::Base.PkgId) at ./loading.jl:852
[6] macro expansion at ./logging.jl:311 [inlined]
[7] require(::Module, ::Symbol) at ./loading.jl:834

@pluskid
Copy link
Owner

pluskid commented Sep 4, 2018

Hi @Marsxia , which version of Julia are you using? Mocha is probably not compatible with Julia v1.0 yet.

@ghost
Copy link
Author

ghost commented Sep 5, 2018

Thanks for your reply @pluskid, which version is suitable for Mocha?

@pluskid
Copy link
Owner

pluskid commented Sep 6, 2018

@Marsxia Mocha.jl currently works with Julia 0.6. I will try to update it when I have time, meanwhile, you could try out KNet.jl which seem to be quite up-to-date with latest Julia and well maintained.

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

1 participant