# Can't get CSV package working in 1.6.2

**URL:** <https://discourse.julialang.org/t/cant-get-csv-package-working-in-1-6-2/67490>\
**Category:** General Usage\
**Created:** [September 1, 2021, 10:34am UTC](https://discourse.julialang.org/t/cant-get-csv-package-working-in-1-6-2/67490 "2021-09-01T10:34:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [September 1, 2021, 10:34am UTC](https://discourse.julialang.org/t/cant-get-csv-package-working-in-1-6-2/67490/1 "2021-09-01T10:34:21Z")

</div>

After standard installation of 1.6.2 on Ubuntu 20,  
I tried adding and (later) building the CSV package. Each ran OK but failed on invocations of ‘using’.

```julia
using CSV

\u250c Info: Precompiling CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b]
\u2514 @ Base loading.jl:1342
ERROR: LoadError: LoadError: TypeError: in Type{...} expression, expected UnionAll, got Type{Parsers.Options}
Stacktrace:
  [1] top-level scope
    @ ~/.julia/packages/CSV/Zl2ww/src/detection.jl:164
  [2] include(mod::Module, _path::String)
    @ Base ./Base.jl:386
  [3] include(x::String)
    @ CSV ~/.julia/packages/CSV/Zl2ww/src/CSV.jl:1
  [4] top-level scope
    @ ~/.julia/packages/CSV/Zl2ww/src/CSV.jl:27
  [5] include
    @ ./Base.jl:386 [inlined]
  [6] 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:1235
  [7] top-level scope
    @ none:1
  [8] eval
    @ ./boot.jl:360 [inlined]
  [9] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [10] top-level scope
    @ none:1
in expression starting at /home/davide/.julia/packages/CSV/Zl2ww/src/detection.jl:164
in expression starting at /home/davide/.julia/packages/CSV/Zl2ww/src/CSV.jl:1

Failed to precompile CSV [336ed68f-0bac-5ca0-87d4-7b16caf5d00b] to /home/davide/.julia/compiled/v1.6/CSV/jl_JP0ySK.

Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IJulia.IJuliaStdio{Base.PipeEndpoint}, internal_stdout::IJulia.IJuliaStdio{Base.PipeEndpoint}, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:923
 [7] eval
   @ ./boot.jl:360 [inlined]
 [8] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
   @ Base ./loading.jl:1116

```

I have been away for a while, but I would have hoped such a basic function would not be still failing on basic installation by now. Or maybe I have missed something?

Thanks for any help or guidance

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [September 1, 2021, 11:33am UTC](https://discourse.julialang.org/t/cant-get-csv-package-working-in-1-6-2/67490/2 "2021-09-01T11:33:32Z")

</div>

This seems to be a new error and is active on another thread:

> [@CSV.jl fails precompling, TypeError: in Type{...} expression, expected UnionAll, got Type{Parsers.Options}](https://discourse.julialang.org/t/csv-jl-fails-precompling-typeerror-in-type-expression-expected-unionall-got-type-parsers-options/67195/4):
>
> Thank for the explanation. I kinda suspected what you mentioned from the line where the issue occurs and by looking through the master branch. But, I did not know IJulia can behave that way, so I ended up putting up this question. Good to know.
