# CSV Parser Error

**URL:** <https://discourse.julialang.org/t/csv-parser-error/74357>\
**Category:** General Usage\
**Tags:** question, csv\
**Created:** [January 10, 2022, 8:00pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357 "2022-01-10T20:00:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sumanth](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sumanth](https://discourse.julialang.org/u/Sumanth)\
**Post date:** [January 10, 2022, 8:00pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357/1 "2022-01-10T20:00:11Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 10, 2022, 9:43pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357/2 "2022-01-10T21:43:46Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sumanth](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sumanth](https://discourse.julialang.org/u/Sumanth)\
**Post date:** [January 10, 2022, 10:26pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357/3 "2022-01-10T22:26:53Z")

</div>

[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

---

<div class="post-metadata">

**Author:** ![Sumanth](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sumanth](https://discourse.julialang.org/u/Sumanth)\
**Post date:** [January 10, 2022, 10:28pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357/4 "2022-01-10T22:28:32Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 11, 2022, 8:50am UTC](https://discourse.julialang.org/t/csv-parser-error/74357/5 "2022-01-11T08:50:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Sumanth](https://avatars.discourse-cdn.com/v4/letter/s/43a26b/32.png) [@Sumanth](https://discourse.julialang.org/u/Sumanth)\
**Post date:** [January 11, 2022, 12:14pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357/6 "2022-01-11T12:14:40Z")

</div>

[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

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [January 11, 2022, 12:36pm UTC](https://discourse.julialang.org/t/csv-parser-error/74357/7 "2022-01-11T12:36:56Z")

</div>

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.
