# Invalid sink argument after upgrading to julia 1.6

**URL:** <https://discourse.julialang.org/t/invalid-sink-argument-after-upgrading-to-julia-1-6/60465>\
**Category:** General Usage\
**Tags:** csv, upgrades\
**Created:** [May 3, 2021, 2:56pm UTC](https://discourse.julialang.org/t/invalid-sink-argument-after-upgrading-to-julia-1-6/60465 "2021-05-03T14:56:03Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Luigi\_Marongiu](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/luigi_marongiu/32/7909_2.png) [@Luigi\_Marongiu](https://discourse.julialang.org/u/Luigi_Marongiu)\
**Post date:** [May 3, 2021, 2:56pm UTC](https://discourse.julialang.org/t/invalid-sink-argument-after-upgrading-to-julia-1-6/60465/1 "2021-05-03T14:56:03Z")

</div>

I updated to Julia 1.6 by downloading the generic linux and moving them in the folder I keep julia. I launched atom, reinstalled all the packages (I need to do it every time I update, so I try to upgrade as little as possible), but I got this error:

```julia
# from script
julia> using Pkg

julia> Pkg.add("DataFrames")
    Updating registry at `~/.julia/registries/General`
    Updating git-repo `https://github.com/JuliaRegistries/General.git`
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.6/Project.toml`
  No Changes to `~/.julia/environments/v1.6/Manifest.toml`

julia> Pkg.add("CSV")
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.6/Project.toml`
  No Changes to `~/.julia/environments/v1.6/Manifest.toml`

julia> Pkg.add("Statistics")
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.6/Project.toml`
  No Changes to `~/.julia/environments/v1.6/Manifest.toml`

julia> Pkg.add("DelimitedFiles")
   Resolving package versions...
  No Changes to `~/.julia/environments/v1.6/Project.toml`
  No Changes to `~/.julia/environments/v1.6/Manifest.toml`

> julia> # this is weird: smaller font, different shade -- is it pointing to another version of julia?
# paste again into REPL
julia> using DataFrames

julia> using CSV

julia> using Statistics

julia> using DelimitedFiles

julia> df = CSV.read("/home/gigiux/EXT/rslt/deNovo.tsv",
           delim='\t', decimal='.')
ERROR: ArgumentError: provide a valid sink argument, like `using DataFrames; CSV.read(source, DataFrame)`
Stacktrace:
 [1] read(source::String, sink::Nothing; copycols::Bool, kwargs::Base.Iterators.Pairs{Symbol, Char, Tuple{Symbol, Symbol}, NamedTuple{(:delim, :decimal), Tuple{Char, Char}}})
   @ CSV ~/.julia/packages/CSV/CJfFO/src/CSV.jl:43
 [2] top-level scope
   @ none:1

```

Essentially, I can’t open a tab-delimited file even if the packages are loaded.  
How can I solve this issue?  
Thank you

---

<div class="post-metadata">

**Author:** ![jling](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jling/32/212909_2.png) [@jling](https://discourse.julialang.org/u/jling)\
**Post date:** [May 3, 2021, 2:57pm UTC](https://discourse.julialang.org/t/invalid-sink-argument-after-upgrading-to-julia-1-6/60465/2 "2021-05-03T14:57:14Z")

</div>

the error msg said exactly what you should do?

btw, you should do `DataFrame(CSV.File())` now

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [May 3, 2021, 2:57pm UTC](https://discourse.julialang.org/t/invalid-sink-argument-after-upgrading-to-julia-1-6/60465/3 "2021-05-03T14:57:22Z")

</div>

Check out the docs for `CSV.read`. You need to tell the function what you want your output to be. `CSV.read(path, DataFrame)`.
