JuliaData/CSV.jl

1.12.0-DEV.317 ERROR: LoadError: TypeError: in typeassert, expected Tuple{Vector{UInt8}, Int64, Int64, Union{Nothing, String}}, got a value of type Tuple{Memory{UInt8}, Int64, Int64, Nothing}

Opened this issue · 0 comments

When adding the CSV package in the nightly dev version I get the error report below.
For completeness I was adding RDatasets, but this seems to be triggered by pkg> add CSV

Julia Version 1.12.0-DEV.317
Commit 0e28cf6abff (2024-04-08 10:46 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: Linux (x86_64-linux-gnu)
CPU: 4 × Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, skylake)
Threads: 1 default, 0 interactive, 1 GC (on 4 virtual cores)
Environment:
JULIA_PKG_SERVER = https://staging.pkg.julialang.org

PkgPrecompileError: The following 1 direct dependency failed to precompile:

CSV

Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to "/home/hearnsj/.julia/compiled/v1.12/CSV/jl_9iV5MS".
ERROR: LoadError: TypeError: in typeassert, expected Tuple{Vector{UInt8}, Int64, Int64, Union{Nothing, String}}, got a value of type Tuple{Memory{UInt8}, Int64, Int64, Nothing}
Stacktrace:
[1] getsource(x::Any, buffer_in_memory::Bool)
@ CSV ~/.julia/packages/CSV/tmZyn/src/utils.jl:297
[2] CSV.Context(source::CSV.Arg, header::CSV.Arg, normalizenames::CSV.Arg, datarow::CSV.Arg, skipto::CSV.Arg, footerskip::CSV.Arg, transpose::CSV.Arg, comment::CSV.Arg, ignoreemptyrows::CSV.Arg, ignoreemptylines::CSV.Arg, select::CSV.Arg, drop::CSV.Arg, limit::CSV.Arg, buffer_in_memory::CSV.Arg, threaded::CSV.Arg, ntasks::CSV.Arg, tasks::CSV.Arg, rows_to_check::CSV.Arg, lines_to_check::CSV.Arg, missingstrings::CSV.Arg, missingstring::CSV.Arg, delim::CSV.Arg, ignorerepeated::CSV.Arg, quoted::CSV.Arg, quotechar::CSV.Arg, openquotechar::CSV.Arg, closequotechar::CSV.Arg, escapechar::CSV.Arg, dateformat::CSV.Arg, dateformats::CSV.Arg, decimal::CSV.Arg, groupmark::CSV.Arg, truestrings::CSV.Arg, falsestrings::CSV.Arg, stripwhitespace::CSV.Arg, type::CSV.Arg, types::CSV.Arg, typemap::CSV.Arg, pool::CSV.Arg, downcast::CSV.Arg, lazystrings::CSV.Arg, stringtype::CSV.Arg, strict::CSV.Arg, silencewarnings::CSV.Arg, maxwarnings::CSV.Arg, debug::CSV.Arg, parsingdebug::CSV.Arg, validate::CSV.Arg, streaming::CSV.Arg)
@ CSV ~/.julia/packages/CSV/tmZyn/src/context.jl:258
[3] CSV.File(source::IOBuffer; header::Int64, normalizenames::Bool, datarow::Int64, skipto::Int64, footerskip::Int64, transpose::Bool, comment::Nothing, ignoreemptyrows::Bool, ignoreemptylines::Nothing, select::Nothing, drop::Nothing, limit::Nothing, buffer_in_memory::Bool, threaded::Nothing, ntasks::Nothing, tasks::Nothing, rows_to_check::Int64, lines_to_check::Nothing, missingstrings::Vector{String}, missingstring::String, delim::Nothing, ignorerepeated::Bool, quoted::Bool, quotechar::Char, openquotechar::Nothing, closequotechar::Nothing, escapechar::Char, dateformat::Nothing, dateformats::Nothing, decimal::UInt8, groupmark::Nothing, truestrings::Vector{String}, falsestrings::Vector{String}, stripwhitespace::Bool, type::Nothing, types::Nothing, typemap::IdDict{Type, Type}, pool::Tuple{Float64, Int64}, downcast::Bool, lazystrings::Bool, stringtype::Type{InlineStrings.InlineString}, strict::Bool, silencewarnings::Bool, maxwarnings::Int64, debug::Bool, parsingdebug::Bool, validate::Bool)
@ CSV ~/.julia/packages/CSV/tmZyn/src/file.jl:222
[4] CSV.File(source::IOBuffer)
@ CSV ~/.julia/packages/CSV/tmZyn/src/file.jl:162
[5] macro expansion
@ ~/.julia/packages/CSV/tmZyn/src/precompile.jl:10 [inlined]
[6] macro expansion
@ ~/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:78 [inlined]
[7] macro expansion
@ ~/.julia/packages/CSV/tmZyn/src/precompile.jl:7 [inlined]
[8] macro expansion
@ ~/.julia/packages/PrecompileTools/L8A3n/src/workloads.jl:140 [inlined]
[9] top-level scope
@ ~/.julia/packages/CSV/tmZyn/src/precompile.jl:139
[10] include(mod::Module, _path::String)
@ Base ./Base.jl:559
[11] include(x::String)
@ CSV ~/.julia/packages/CSV/tmZyn/src/CSV.jl:24
[12] top-level scope
@ ~/.julia/packages/CSV/tmZyn/src/CSV.jl:120
[13] include
@ ./Base.jl:559 [inlined]
[14] 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:2762
[15] top-level scope
@ stdin:4
[16] eval
@ ./boot.jl:432 [inlined]
[17] include_string(mapexpr::typeof(identity), mod::Module, code::String, filename::String)
@ Base ./loading.jl:2584
[18] include_string
@ ./loading.jl:2594 [inlined]
[19] exec_options(opts::Base.JLOptions)
@ Base ./client.jl:255
[20] _start()
@ Base ./client.jl:533
in expression starting at /home/hearnsj/.julia/packages/CSV/tmZyn/src/precompile.jl:3
in expression starting at /home/hearnsj/.julia/packages/CSV/tmZyn/src/CSV.jl:1
in expression starting at stdin: