-
Notifications
You must be signed in to change notification settings - Fork 54
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
Julia 1.6 - ArgumentError: Unable to find time zone "America/New_York". Try running TimeZones.build()
.
#331
Comments
The Julia 1.6 build behavior shouldn't have changed. If you remove the TimeZones package and re-add it can you reproduce the problem? Also, can you post your |
Note the problem was originally found in an internal Invenia CI job. I reproduced it locally with fresh But it's true that I can't reproduce the problem after removing and re-adding the package. So I guess this is a problem with Invenia's CI for 1.6. 1.6:
1.5:
|
It's possible that a network issue resulted in the build step failing. Thanks for mentioning |
Could the files being created by the build process be being removed by Pkg? I know they're moving towards using stuff like https://github.com/JuliaPackaging/Scratch.jl, maybe that's because there's some problem with package-local, package-managed files in 1.6? |
Updating to 1.6, I ran into this "issue" (the fix is straightforward as the error message is very informative) as well on two different computers. I do not think this is related to a network issue. |
I also ran into this issue in two different contexts. |
I'll try to get this fixed tomorrow |
Suddenly, it now works when building Heroku on Julia 1.6.1. Logs for the failing build
Logs for the passing build
I notice that the TimeZones versions differ. So, maybe this has already been fixed? |
I'm not having any luck reproducing the problem today. The failures previously seemed limited to Julia 1.6.0 and TimeZones 1.5.3.
The new 1.5.4 release mainly adds tz2021a as the default release. The only way I could see this fixing the issue is if people are using I'll take another run at this but I may need more information. |
We're still observing this with Julia 1.6.5 and TimeZones 1.7.0. It's hard to predict when it will happen but it seems to happen periodically on users' machines (the issue is mitigated in CI where we call |
TimeZones has a strange heisenbug where it will sometimes fail to build the TZ data, often appearing in headless systems such as CI and documentation generation. Apparently a workaround is to explicitly call `Pkg.build()` after instantiation to ensure a successful build, as noted in JuliaTime/TimeZones.jl#331 (comment).
In PR #441 the |
It seems that Julia 1.6 does not build the package automatically. Is this a bug?
Julia 1.6:
Julia 1.5:
The text was updated successfully, but these errors were encountered: