arrow-julia icon indicating copy to clipboard operation
arrow-julia copied to clipboard

Arrow.jl fails to precompile with error "Magic file identifier "TZjf" not found."

Open kobusherbst opened this issue 7 months ago • 5 comments

When I try to precompile Arrow, I get the following error:

Julia V1.10.4

Platform Info: OS: macOS (arm64-apple-darwin22.4.0) CPU: 14 × Apple M3 Max WORD_SIZE: 64 LIBM: libopenlibm LLVM: libLLVM-15.0.7 (ORCJIT, apple-m1)

Failed to precompile PIPCore [5f73200a-36c0-42cd-9607-31bc8d8705ce] to "/Users/kobush/.julia/compiled/v1.10/PIPCore/jl_l3YSez".
ERROR: LoadError: ArgumentError: Magic file identifier "TZjf" not found.
Stacktrace:
  [1] read_signature
    @ ~/.julia/packages/TimeZones/cI9dc/src/tzjfile/read.jl:15 [inlined]
  [2] read(io::IOStream)
    @ TimeZones.TZJFile ~/.julia/packages/TimeZones/cI9dc/src/tzjfile/read.jl:8
  [3] open(::typeof(TimeZones.TZJFile.read), ::String, ::Vararg{String}; kwargs::@Kwargs{})
    @ Base ./io.jl:396
  [4] open
    @ ./io.jl:393 [inlined]
  [5] (::TimeZones.var"#7#8"{TimeZones.TimeZoneCache})(name::String, path::String)
    @ TimeZones ~/.julia/packages/TimeZones/cI9dc/src/types/timezonecache.jl:29
  [6] walk_tz_dir(f::TimeZones.var"#7#8"{TimeZones.TimeZoneCache}, dir::String)
    @ TimeZones ~/.julia/packages/TimeZones/cI9dc/src/utils.jl:125
  [7] reload!
    @ ~/.julia/packages/TimeZones/cI9dc/src/types/timezonecache.jl:28 [inlined]
  [8] reload!
    @ ~/.julia/packages/TimeZones/cI9dc/src/types/timezonecache.jl:25 [inlined]
  [9] (::TimeZones.var"#9#12"{TimeZones.TimeZoneCache})()
    @ TimeZones ~/.julia/packages/TimeZones/cI9dc/src/types/timezonecache.jl:50
 [10] lock(f::TimeZones.var"#9#12"{TimeZones.TimeZoneCache}, l::ReentrantLock)
    @ Base ./lock.jl:229
 [11] get
    @ ~/.julia/packages/TimeZones/cI9dc/src/types/timezonecache.jl:47 [inlined]
 [12] Dates.TimeZone(str::String, mask::TimeZones.Class)
    @ TimeZones ~/.julia/packages/TimeZones/cI9dc/src/types/timezone.jl:42
 [13] var"@tz_str"(__source__::LineNumberNode, __module__::Module, str::Any)
    @ TimeZones ~/.julia/packages/TimeZones/cI9dc/src/types/timezone.jl:72
 [14] include(mod::Module, _path::String)
    @ Base ./Base.jl:495
 [15] include(x::String)
    @ Arrow ~/.julia/dev/Arrow/src/Arrow.jl:42
 [16] top-level scope
    @ ~/.julia/dev/Arrow/src/Arrow.jl:77
 [17] include
    @ ./Base.jl:495 [inlined]
 [18] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt128}}, source::String)
    @ Base ./loading.jl:2222
 [19] top-level scope

kobusherbst avatar Jul 15 '24 07:07 kobusherbst