Skip to content

Magic File identifier "TZjf" not found error #101

Open
@tomdstone

Description

When trying to install RData, even in a fresh environment, I am getting an error stemming from the TimeZones package, although I'm able to install the TimeZones package by itself and things appear to work fine. For what its worth, I have the same error when trying to install Arrow.jl

I am on a Mac M2 Pro, MacOS Sequoia version 15.2

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.2 (2024-12-01)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> activate --temp
  Activating new project at `/var/folders/jp/zyr4gsmd07g14kyf5p1ymghr0000gq/T/jl_JuYwOO`

(jl_JuYwOO) pkg> add RData
   Resolving package versions...
    Updating `/private/var/folders/jp/zyr4gsmd07g14kyf5p1ymghr0000gq/T/jl_JuYwOO/Project.toml`
  [df47a6cb] + RData v1.0.0
    Updating `/private/var/folders/jp/zyr4gsmd07g14kyf5p1ymghr0000gq/T/jl_JuYwOO/Manifest.toml`
  [324d7699] + CategoricalArrays v0.10.8
  [944b1d66] + CodecZlib v0.7.6
  [34da2185] + Compat v4.16.0
  [a8cc5b0e] + Crayons v4.1.1
  [9a962f9c] + DataAPI v1.16.0
  [a93c6f00] + DataFrames v1.7.0
  [864edb3b] + DataStructures v0.18.20
  [e2d170a0] + DataValueInterfaces v1.0.0
  [e2ba6199] + ExprTools v0.1.10
  [5789e2e9] + FileIO v1.16.6
  [842dd82b] + InlineStrings v1.4.2
  [41ab1584] + InvertedIndices v1.3.1
  [82899510] + IteratorInterfaceExtensions v1.0.0
  [b964fa9f] + LaTeXStrings v1.4.0
  [e1d29d7a] + Missings v1.2.0
  [78c3b35d] + Mocking v0.8.1
  [bac558e1] + OrderedCollections v1.7.0
  [2dfb63ee] + PooledArrays v1.4.3
  [aea7be01] + PrecompileTools v1.2.1
  [21216c6a] + Preferences v1.4.3
  [08abe8d2] + PrettyTables v2.4.0
  [df47a6cb] + RData v1.0.0
  [189a3867] + Reexport v1.2.2
  [ae029012] + Requires v1.3.0
  [6c6a2e73] + Scratch v1.2.1
  [91c51154] + SentinelArrays v1.4.8
  [a2af1166] + SortingAlgorithms v1.2.1
  [10745b16] + Statistics v1.11.1
  [892a3eda] + StringManipulation v0.4.0
  [dc5dba14] + TZJData v1.3.1+2024b
  [3783bdb8] + TableTraits v1.0.1
  [bd369af6] + Tables v1.12.0
  [f269a46b] + TimeZones v1.20.0
  [3bb67fe8] + TranscodingStreams v0.11.3
  [0dad84c5] + ArgTools v1.1.2
  [56f22d72] + Artifacts v1.11.0
  [2a0f44e3] + Base64 v1.11.0
  [ade2ca70] + Dates v1.11.0
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching v1.11.0
  [9fa8497b] + Future v1.11.0
  [b77e0a4c] + InteractiveUtils v1.11.0
  [b27032c2] + LibCURL v0.6.4
  [76f85450] + LibGit2 v1.11.0
  [8f399da3] + Libdl v1.11.0
  [37e2e46d] + LinearAlgebra v1.11.0
  [56ddb016] + Logging v1.11.0
  [d6f4376e] + Markdown v1.11.0
  [ca575930] + NetworkOptions v1.2.0
  [44cfe95a] + Pkg v1.11.0
  [de0858da] + Printf v1.11.0
  [9a3f8284] + Random v1.11.0
  [ea8e919c] + SHA v0.7.0
  [fa267f1f] + TOML v1.0.3
  [a4e569a6] + Tar v1.10.0
  [cf7118a7] + UUIDs v1.11.0
  [4ec0a83e] + Unicode v1.11.0
  [e66e0078] + CompilerSupportLibraries_jll v1.1.1+0
  [deac9b47] + LibCURL_jll v8.6.0+0
  [e37daf67] + LibGit2_jll v1.7.2+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.6+0
  [14a3606d] + MozillaCACerts_jll v2023.12.12
  [4536629a] + OpenBLAS_jll v0.3.27+1
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850b90] + libblastrampoline_jll v5.11.0+0
  [8e850ede] + nghttp2_jll v1.59.0+0
  [3f19e933] + p7zip_jll v17.4.0+2
Precompiling project...
  ✗ RData
  0 dependencies successfully precompiled in 3 seconds. 61 already precompiled.
  1 dependency errored.
  For a report of the errors see `julia> err`. To retry use `pkg> precompile`

julia> err
PkgPrecompileError: The following 1 direct dependency failed to precompile:

RData 

Failed to precompile RData [df47a6cb-8c03-5eed-afd8-b6050d6c41da] to "/Users/tomstone/.julia/compiled/v1.11/RData/jl_nd0Qk2".
ERROR: LoadError: ArgumentError: Magic file identifier "TZjf" not found.
Stacktrace:
  [1] read_signature(io::IOStream)
    @ TimeZones.TZJFile ~/.julia/packages/TimeZones/OaM7f/src/tzjfile/read.jl:15
  [2] read(io::IOStream)
    @ TimeZones.TZJFile ~/.julia/packages/TimeZones/OaM7f/src/tzjfile/read.jl:8
  [3] open(::typeof(TimeZones.TZJFile.read), ::String, ::Vararg{String}; kwargs::@Kwargs{})
    @ Base ./io.jl:410
  [4] open
    @ ./io.jl:407 [inlined]
  [5] (::TimeZones.var"#9#10"{TimeZones.TimeZoneCache})(name::String, path::String)
    @ TimeZones ~/.julia/packages/TimeZones/OaM7f/src/types/timezonecache.jl:31
  [6] walk_tz_dir(f::TimeZones.var"#9#10"{TimeZones.TimeZoneCache}, dir::String)
    @ TimeZones ~/.julia/packages/TimeZones/OaM7f/src/utils.jl:125
  [7] reload!(cache::TimeZones.TimeZoneCache, compiled_dir::String)
    @ TimeZones ~/.julia/packages/TimeZones/OaM7f/src/types/timezonecache.jl:30
  [8] reload!
    @ ~/.julia/packages/TimeZones/OaM7f/src/types/timezonecache.jl:27 [inlined]
  [9] (::TimeZones.var"#11#14"{TimeZones.TimeZoneCache})()
    @ TimeZones ~/.julia/packages/TimeZones/OaM7f/src/types/timezonecache.jl:52
 [10] lock(f::TimeZones.var"#11#14"{TimeZones.TimeZoneCache}, l::ReentrantLock)
    @ Base ./lock.jl:232
 [11] get
    @ ~/.julia/packages/TimeZones/OaM7f/src/types/timezonecache.jl:49 [inlined]
 [12] Dates.TimeZone(str::String, mask::TimeZones.Class)
    @ TimeZones ~/.julia/packages/TimeZones/OaM7f/src/types/timezone.jl:42
 [13] var"@tz_str"(__source__::LineNumberNode, __module__::Module, str::Any)
    @ TimeZones ~/.julia/packages/TimeZones/OaM7f/src/types/timezone.jl:72
 [14] include(mod::Module, _path::String)
    @ Base ./Base.jl:557
 [15] include(x::String)
    @ RData ~/.julia/packages/RData/L5u8v/src/RData.jl:1
 [16] top-level scope
    @ ~/.julia/packages/RData/L5u8v/src/RData.jl:30
 [17] include
    @ ./Base.jl:557 [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::Nothing)
    @ Base ./loading.jl:2881
 [19] top-level scope
    @ stdin:6
in expression starting at /Users/tomstone/.julia/packages/RData/L5u8v/src/convert.jl:282
in expression starting at /Users/tomstone/.julia/packages/RData/L5u8v/src/convert.jl:282
in expression starting at /Users/tomstone/.julia/packages/RData/L5u8v/src/RData.jl:1
in expression starting at stdin:

julia> 

When installing just TimeZones:

               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.2 (2024-12-01)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> activate --temp
  Activating new project at `/var/folders/jp/zyr4gsmd07g14kyf5p1ymghr0000gq/T/jl_wJU3H4`

(jl_wJU3H4) pkg> add TimeZones
   Resolving package versions...
    Updating `/private/var/folders/jp/zyr4gsmd07g14kyf5p1ymghr0000gq/T/jl_wJU3H4/Project.toml`
  [f269a46b] + TimeZones v1.20.0
    Updating `/private/var/folders/jp/zyr4gsmd07g14kyf5p1ymghr0000gq/T/jl_wJU3H4/Manifest.toml`
  [34da2185] + Compat v4.16.0
  [e2ba6199] + ExprTools v0.1.10
  [842dd82b] + InlineStrings v1.4.2
  [78c3b35d] + Mocking v0.8.1
  [6c6a2e73] + Scratch v1.2.1
  [dc5dba14] + TZJData v1.3.1+2024b
  [f269a46b] + TimeZones v1.20.0
  [0dad84c5] + ArgTools v1.1.2
  [56f22d72] + Artifacts v1.11.0
  [ade2ca70] + Dates v1.11.0
  [f43a241f] + Downloads v1.6.0
  [7b1f6079] + FileWatching v1.11.0
  [b27032c2] + LibCURL v0.6.4
  [8f399da3] + Libdl v1.11.0
  [ca575930] + NetworkOptions v1.2.0
  [de0858da] + Printf v1.11.0
  [9a3f8284] + Random v1.11.0
  [ea8e919c] + SHA v0.7.0
  [fa267f1f] + TOML v1.0.3
  [cf7118a7] + UUIDs v1.11.0
  [4ec0a83e] + Unicode v1.11.0
  [deac9b47] + LibCURL_jll v8.6.0+0
  [29816b5a] + LibSSH2_jll v1.11.0+1
  [c8ffd9c3] + MbedTLS_jll v2.28.6+0
  [14a3606d] + MozillaCACerts_jll v2023.12.12
  [83775a58] + Zlib_jll v1.2.13+1
  [8e850ede] + nghttp2_jll v1.59.0+0
  [3f19e933] + p7zip_jll v17.4.0+2

julia> using TimeZones

julia> 

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions