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

LoadError: LoadError: InitError: ArgumentError: Unknown time zone "America/Indianapolis" trying to run using Genie #59

Closed
abannsunny opened this issue Sep 26, 2018 · 12 comments

Comments

@abannsunny
Copy link

I saw that this issue is closed but I am still getting the error
#48

I am on a corporate network I am not sure if that is why. Thank you!

ERROR: LoadError: LoadError: InitError: ArgumentError: Unknown time zone "America/Indianapolis"

Stacktrace:
[1] (::getfield(TimeZones, Symbol("##1#3")){String})() at %userprofile%.julia\packages\TimeZones\wytr8\src\TimeZones.jl:70
[2] get!(::getfield(TimeZones, Symbol("##1#3")){String}, ::Dict{AbstractString,Dates.TimeZone}, ::String) at .\dict.jl:453
[3] Type at %userprofile%.julia\packages\TimeZones\wytr8\src\TimeZones.jl:64 [inlined]
[4] localzone() at %userprofile%.julia\packages\TimeZones\wytr8\src\local.jl:146
[5] Type at %userprofile%.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 %userprofile%.julia\packages\Memento\QMKyB\src\config.jl:39
[7] #config!#69 at %userprofile%.julia\packages\Memento\QMKyB\src\config.jl:36 [inlined]
[8] config! at %userprofile%.julia\packages\Memento\QMKyB\src\config.jl:25 [inlined]
[9] init() at %userprofile%.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 at .\sysimg.jl:29 [inlined]
[20] include(::String) at %userprofile%.julia\packages\Genie\VQydg\src\Genie.jl:4
[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
during initialization of module Memento
in expression starting at %userprofile%.julia\packages\Genie\VQydg\src\Loggers.jl:6
in expression starting at %userprofile%.julia\packages\Genie\VQydg\src\Genie.jl:24
ERROR: Failed to precompile Genie [c43c736e-a2d1-11e8-161f-af95117fbd1e] to %userprofile%.julia\compiled\v1.0\Genie\8eazC.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

@essenciary
Copy link
Member

It's a problem in TimeZones.jl which is used by Memento.jl
TimeZones.jl basically can't download the timezones database.

What OS are you running on?

@abannsunny
Copy link
Author

I am on Windows 10
image

@essenciary
Copy link
Member

essenciary commented Sep 26, 2018

Try
pkg> add TimeZones
See if that works (and if not, how it fails).

@abannsunny
Copy link
Author

abannsunny commented Sep 26, 2018

(v1.0) pkg> add TimeZones
Resolving package versions...
Updating %userprofile%.julia\environments\v1.0\Project.toml [no changes] Updating %userprofile%\.julia\environments\v1.0\Manifest.toml
[no changes]

still giving the error

@essenciary
Copy link
Member

essenciary commented Sep 26, 2018

Can you use it?
julia> using TimeZones
julia> TimeZone("America/Indianapolis")

Line 70 is
isfile(tz_path) || throw(ArgumentError("Unknown time zone \"$str\""))

@abannsunny
Copy link
Author

I can try on my PC at home which is running the latest version of windows 10. and update if that helps! thank you for the quick reply!

@abannsunny
Copy link
Author

abannsunny commented Sep 26, 2018

Yup that breaks
image

@essenciary
Copy link
Member

Hmmm... very weird...

Can you also try
julia> TimeZone("America/Indianapolis")
and
pkg> up

And maybe
pkg> add Memento and
julia> using Memento

@EricForgy
Copy link
Contributor

julia> using TimeZones

julia> TimeZone("America/Indianapolis")
ERROR: ArgumentError: Unknown time zone "America/Indianapolis"
Stacktrace:
 [1] (::getfield(TimeZones, Symbol("##1#3")){String})() at C:\Users\Eric\.julia\packages\TimeZones\wytr8\src\TimeZones.jl:70
 [2] get!(::getfield(TimeZones, Symbol("##1#3")){String}, ::Dict{AbstractString,TimeZone}, ::String) at .\dict.jl:453
 [3] TimeZone(::String) at C:\Users\Eric\.julia\packages\TimeZones\wytr8\src\TimeZones.jl:64
 [4] top-level scope at none:0

@abannsunny
Copy link
Author

image

@omus
Copy link

omus commented Sep 26, 2018

I'll note this is issue is fully a TimeZones.jl issue. The America/Indianapolis is part of the backwards compatible time zone list and more modern equivalent is America/Indiana/Indianapolis.

As a quick fix you can change your system time zone which will result in this issue being addressed for you. A more long term fix is to have the localzone call support these backwards compatible names. I'll be starting work on this soon.

@abannsunny
Copy link
Author

abannsunny commented Sep 27, 2018

I'll note this is issue is fully a TimeZones.jl issue. The America/Indianapolis is part of the backwards compatible time zone list and more modern equivalent is America/Indiana/Indianapolis.

As a quick fix you can change your system time zone which will result in this issue being addressed for you. A more long term fix is to have the localzone call support these backwards compatible names. I'll be starting work on this soon.

Thank you!
I changed the timezone to eastern time US Canada and it worked!

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

4 participants