CSV Parser Error

Package CSV does not have Parsers in its dependencies:
│ - If you have CSV checked out for development and have
│ added Parsers as a dependency but haven’t updated your primary
│ environment’s manifest file, try Pkg.resolve().
│ - Otherwise you may need to report an issue with CSV
└ Loading Parsers into CSV from project dependency, future warnings for CSV are suppressed.
ERROR: LoadError: UndefVarError: tostr_sizehint not defined

What version of CSV is this? Can you post the full output of ]st of the relevant environment?

[ Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
┌ Warning: Package CSV does not have Parsers in its dependencies:
│ - If you have CSV checked out for development and have
│ added Parsers as a dependency but haven’t updated your primary
│ environment’s manifest file, try Pkg.resolve().
│ - Otherwise you may need to report an issue with CSV
└ Loading Parsers into CSV from project dependency, future warnings for CSV are suppressed.
ERROR: LoadError: UndefVarError: tostr_sizehint not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base .\Base.jl:35
[2] top-level scope
@ C:\Users\.julia\packages\CategoricalArrays\qcwgl\src\deprecated.jl:101
[3] include(mod::Module, _path::String)
@ Base .\Base.jl:418
[4] include(x::String)
@ CategoricalArrays C:\Users\.julia\packages\CategoricalArrays\qcwgl\src\CategoricalArrays.jl:1
[5] top-level scope
@ C:\Users\.julia\packages\CategoricalArrays\qcwgl\src\CategoricalArrays.jl:39
[6] include
@ .\Base.jl:418 [inlined]
[7] 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, UInt64}}, source::String)
@ Base .\loading.jl:1318
[8] top-level scope
@ none:1
[9] eval
@ .\boot.jl:373 [inlined]
[10] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[11] top-level scope
@ none:1
in expression starting at C:\Users\.julia\packages\CategoricalArrays\qcwgl\src\deprecated.jl:101
in expression starting at C:\Users\.julia\packages\CategoricalArrays\qcwgl\src\CategoricalArrays.jl:1
ERROR: LoadError: Failed to precompile CategoricalArrays [324d7699-5711-5eae-9e2f-1d82baa6b597] to C:\Users\.julia\compiled\v1.7\CategoricalArrays\jl_A3E5.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997
[7] include
@ .\Base.jl:418 [inlined]
[8] 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, UInt64}}, source::Nothing)
@ Base .\loading.jl:1318
[9] top-level scope
@ none:1
[10] eval
@ .\boot.jl:373 [inlined]
[11] eval(x::Expr)
@ Base.MainInclude .\client.jl:453
[12] top-level scope
@ none:1
in expression starting at C:\Users\ .julia\packages\CSV\Jf3xI\src\CSV.jl:1
ERROR: Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1466
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1410
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1120
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:1013
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:997

I tried everything I can, updated Parsers, download new parsers, and other things from the previous CSV parser file error on git hub and stack overflow

Well everything except what I asked for - what’s the outpout of ]st for your environment?

2 Likes

[02898b10] Augmentor v0.6.5
[336ed68f] CSV v0.4.0
[5ae71ed2] CombinedParsers v0.2.1
[a93c6f00] DataFrames v0.19.4
[864edb3b] DataStructures v0.17.20
[aae7a2af] DiffEqFlux v0.7.0
[587475ba] Flux v0.8.3
[7e08b658] GeometricFlux v0.1.1
[7073ff75] IJulia v1.23.2
[682c06a0] JSON v0.21.2
[cc2ba9b6] MLDataUtils v0.5.4
[eb30cadb] MLDatasets v0.4.0
[dbeba491] Metalhead v0.4.0
[1d0525e4] Mill v1.0.0
[1af16e33] Omega v0.1.1
[69de0a69] Parsers v2.1.3
[91a5bcdd] Plots v0.28.4
[158674fc] ReinforcementLearning v0.3.0
[3646fa90] ScikitLearn v0.5.0
[1d978283] TensorFlow v0.11.0
[a2db99b7] TextAnalysis v0.6.0
[21ca0261] Transformers v0.1.1
[fce5fe82] Turing v0.7.4
[98cad3c8] ValueHistories v0.5.4
[5872b779] Yao v0.6.2

Almost all package versions you have installed are ancient. The current CSV release is 0.9, you are on 0.4. The same is true for many other installed packages (e.g. DataFrames is at 1.3 rather than 0.19 etc.).

It also looks like you are just dumping all your packages into the default environment, which is a bad idea and almost guaranteed to lead to versioning conflicts.

Please make a project specific environment, add CSV.jl and report back if there are still any errors.

1 Like