-
Notifications
You must be signed in to change notification settings - Fork 76
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
unable to run when from escript #24
Comments
Hi Bryan Tzdata versions 0.5 and higher don't work with escripts currently. Because escript don't work with ETS tables. AFAIK in future Elixir versions they will. -- Lau |
Thanks Lau. Changed version as suggested. Worked. |
Thanks for this discussion. It helped me workaround the same issue. I'm now motivated to learn how I can launch my application without using escript so I can avoid having to use an old version of tzdata in my project. |
Thanks, I'll check the "data file load path" option out if I find I need a newer version of tzdata. |
I try to use tzdata as transitive dependency from Calendar with escript and failed again... I had to downgrade |
As explained in lau/tzdata#24 (comment), more recent versions of tzdata are not compatible with releases (nor with escripts).
Up until now, I've been holding off on this upgrade because newer versions were trying to download an updated timezone database, which didn't work in an escript (see lau/tzdata#24). But now, it is possible to turn off auto-updates and configure a different data directory, which solves the issue.
Hi, experimenting with various Elixir time libraries - https://github.com/binarytemple/poc_elixir_calendars/tree/escript_broken
Everything works fine in IEX session. But when escripted there is a crash at startup within the Tzdata application.
I build like so:
The error (formatted) is the following:
The escript contains all the Tzdata files, including the ETS dump, '2016c.ets':
Any suggestions?
The text was updated successfully, but these errors were encountered: